background preloader

VI and VIM editor: Tutorial and advanced features

VI and VIM editor: Tutorial and advanced features
Vim Intro: This "vi" tutorial is intended for those who wish to master and advance their skills beyond the basic features of the basic editor. It covers buffers, "vi" command line instructions, interfacing with UNIX commands, and ctags. The advantage of learning vi and learning it well is that one will find vi on all Unix based systems and it does not consume an inordinate amount of system resources. NOTE: Microsoft PC Notepad users who do not wish to use "vi" should use "gedit" (GNOME edit) or "gnp" (GNOME Note Pad) on Linux. See our list of Linux GUI editors Vim Installation: Red Hat / CentOS / Fedora: rpm -ivh vim-common-...rpm vim-minimal-...rpm vim-enhanced-...rpm vim-X11-...rpm yum install vim-common vim-minimal vim-enhanced vim-X11 Ubuntu / Debian: apt-get install vim vim-common vim-gnome vim-gui-common vim-runtime Compiling Vim from source: Download vim source from tar xzf vim-7.0.tar.gz cd vim70 . Vi/Vim Command Line Arguments: Basic "vi" features: Editing Commands: Related:  ADMIN. SYS.

Might - Kingdoms of Camelot Wiki - Knights, Buildings, Troops, Battle, Resources, and more! Might is a combined number of points for troops, buildings, Throne Room Cards, and Champion Cards, each of which give a certain amount of Might. In the case of the Cards you get more might with each Enhancement and Upgrade on a Card. Increasing your Might allows you to gain levels and improve your Title. Your Might is reduced when you lose battles as an attacker due to troop or wall losses. You can replace your lost Might by replacing the units and buildings lost in battle. To calculate total Might for one building use the following formula: (2^(Building Level-1)) x Base Might So if you have a level 9 Alchemy Lab with a base might of 30: (2^8)x30= 7680 Troops If you want to get the most Might for your ongoing Food cost, build Supply Wagons. As of August, 2012 the building times and might for buildings was revised by Kabam. Buildings A full city having all buildings and all fields, all to level 9, will thus give you 385805 might. Defensive Units Might per Minute Racing to get your might up?

Etape 1 : La création des certificats Connectez-vous sous root et allez dans le répertoire de configuration de votre serveur Apache2 /etc/apache2 (on peut évidemment choisir un autre répertoire) et créez un répertoire appelé ssl. Vous vous placerez dans ce répertoire afin que les clés et les certificats soient créés à l'intérieur avant d'effectuer les manipulations. Création du certificat serveur Génération de la clé privée On génère la clef privée avec la commande suivante en définissant un nom de fichier : openssl genrsa 1024 > servwiki.key La sortie attendue est la suivante : Generating RSA private key, 1024 bit long modulus ..................++++++ .................................................................++++++ e is 65537 (0x10001) Si vous souhaitez que cette clé ait un mot de passe (qui vous sera demandé à chaque démarrage d'apache, donc à éviter !) Ceci a pour effet de créer une clé SSL (fichier servwiki.key), ne la perdez pas... c'est votre clé privée... Vous pouvez observer son contenu : less servwiki.key

Basic vi Commands What is vi? The default editor that comes with the UNIX operating system is called vi (visual editor). [Alternate editors for UNIX environments include pico and emacs, a product of GNU.] The UNIX vi editor is a full screen editor and has two modes of operation: Command mode commands which cause action to be taken on the file, and Insert mode in which entered text is inserted into the file. In the command mode, every character typed is a command that does something to the text file being edited; a character typed in the command mode may even cause the vi editor to enter the insert mode. While there are a number of vi commands, just a handful of these is usually sufficient for beginning vi users. NOTE: Both UNIX and vi are case-sensitive. To Get Into and Out Of vi To Start vi To use vi on a file, type in vi filename. To Exit vi Usually the new or modified file is saved when you leave vi. Note: The cursor moves to bottom of screen whenever a colon (:) is typed. Moving the Cursor

How To Install VMware Server (Version 1.0.6) On A Fedora 9 Desktop Version 1.0 Author: Falko Timme <ft [at] falkotimme [dot] com> Last edited 06/02/2008 This tutorial provides step-by-step instructions on how to install VMware Server (version 1.0.6) on a Fedora 9 desktop system. With VMware Server you can create and run guest operating systems ("virtual machines") such as Linux, Windows, FreeBSD, etc. under a host operating system. Also, with VMware Server you can let your old Windows desktop (that you previously converted into a VMware virtual machine with VMware Converter, as described in this tutorial: run under your Fedora desktop. I want to say first that this is not the only way of setting up such a system. 1 Preliminary Note Prior to version 1.0.6, VMware Server needed to be patched in order to install/work properly on a Fedora 9 system because it did not support kernel 2.6.25 (see chapter 8.3.14 on Become root: su uname -r

Fucking. Awesome. - Imgur albums browse your computer drag and drop here Ctrl + V paste from your clipboard By uploading, you agree to our terms of service That file type is not supported! Supported formats: JPEG, GIF, PNG, APNG, TIFF, BMP, PDF, XCF Imgur is home to the web's most popular image content, curated in real time by a dedicated community through commenting, voting and sharing. View full resolution Download full resolution View full resolution Download full resolution View full resolution Download full resolution View full resolution Download full resolution View full resolution Download full resolution View full resolution Download full resolution View full resolution Download full resolution View full resolution Download full resolution View full resolution Download full resolution View full resolution Download full resolution View full resolution Download full resolution View full resolution Download full resolution View full resolution Download full resolution © 2014 Imgur, LLC. we're hiring! Album: 13 images Fucking. No way! I'm sure

materiel:connaitre_son_materiel Prérequis Il faut tout d'abord vérifier la présence des paquetage suivants : pciutils usbutils Smartmontools Pour avoir toutes les informations utiles sur sa carte mère et quelques informations diverses sur votre matériel. Utilisez la commande en root ( su ou en mode sudo ): dmidecode et vous obtiendrez ceci (bref exemple ): Handle 0x0001, DMI type 1, 27 bytes System Information Manufacturer: System manufacturer Product Name: P5Q DELUXE Version: System Version Serial Number: System Serial Number UUID: A041001E-8C00-01...etc ..... Handle 0x0002, DMI type 2, 15 bytes Base Board Information Manufacturer: ASUSTeK Computer INC. une autre méthode pour connaitre sa version de bios est en mode ROOT : dd if=/dev/mem bs=32k skip=31 count=1 | strings -n 8 | grep -i bios et vous obtiendrez donc : AMIBIOS 080012 1+0 enregistrements lus 1+0 enregistrements écrits 32768 octets (33 kB) copiésAMIBIOS(C)2006 American Megatrends, Inc. En console: Type de processeur pour lequel est compilé le noyau : $ uname -p top

vi: Petit guide de survie Quoi qu'on puisse en penser à notre époque d'interfaces graphiques, vi est un petit éditeur très pratique pour modifier des fichiers ASCII et il offre 2 gros avantages: on est sûr de le trouver partout et il fonctionne même dans une fenêtre telnet sous MS-Windows. Par contre, il est vrai que s'il était révolutionnaire à l'époque des téléscripteurs, on sent bien que beaucoup d'eau a coulé sous les ponts depuis... d'où la nécessité de ce petit guide! Première surprise: vi fonctionne dans 3 modes différents, le mode commande, le mode insertion et le mode sélection. Comme son nom l'indique, le mode insertion correspond au mode dans lequel on tape le texte à saisir. Le mode commande permet de se déplacer, de faire des recherches et eventuellement remplacements, de supprimer du texte et de passer dans les autres modes. Le mode sélection permet de sélectionner du texte librement, ligne par ligne ou sous forme de zone rectangulaire, et de le placer dans le presse-papiers ("couper" et "copier").

Howto run Windows with VMware Player in Linux for free OK, so you've bought a new PC and have Windows pre-installed. First, you shrank Windows partition to the minimum and installed your favorite Unix distribution. Then setup a dual boot to either operating systems and wondering if you really need to reboot to Windows each time you need to test how something looks on Windows or perhaps your girlfriend wants to do wicked stuff. This page explains how to run Windows in Linux environment without a need to reboot or reinstalling Windows. The solution is to run VMware Player from raw Windows partition under Linux. Everything on this page is pure hacking, even worse, not a single manual has been read. Here is a to-do list of this howto: Install VMware PlayerCreate a Virtual MachineCreate a Virtual DiskDecontaminate Hazardous Booting OptionsPrepare Windows for the Last JourneyBoot It Up and Install VMware Tools I've done this twice on two separate Debian machines: with Windows 2000 Professional and Windows XP Home Edition. Creating a Virtual Machine

Change font size quickly If you regularly switch to a larger or smaller font, for example because someone looking at your code thinks the letters are too small, or because you want to lay back in your chair while reading, this tip is for you. The following script defines two commands, :LargerFont and :SmallerFont, to allow quick adjustments to the font size used in the gtk2 gui. Change minfontsize and maxfontsize to suit your needs. See below for alternative solutions. To use this script, put the following code into ~/.vim/plugin/gtk2fontsize.vim or in your vimrc. let s:pattern = '^\(.* \)\([1-9][0-9]*\)$' let s:minfontsize = 6 let s:maxfontsize = 16 function! Related plugins Edit As an alternative, you could use one of these plugins which work with fonts on Unix and Windows systems: Mapping solution Another alternative is to use the following mappings which use a clever substitute (no functions are required). nnoremap <C-Up> :silent! Explanation Edit The replacement string \=eval(submatch(0)+1) uses: submatch(0) eval()

Installation de base - ArchwikiFR Les Arch Install Scripts sont un ensemble de scripts bash ayant pour but de simplifier l'installation d'Arch. Cette page donne un exemple d'installation basique. Vous y trouverez également des liens vers des pages wiki, documentation externe, ou lien vers le manuel pour les principales étapes de l'installation. Important: Il est vivement déconseillé d'avoir recours à des tutoriels lors de l'installation d'Arch Linux. Les tutoriels sont rarement mis-à-jour ce qui entre en conflit avec l'évolution constante de toute rolling release. L'utilisation d'un tutoriel périmé ou incorrect peut mener à de graves dysfonctionnements. Important: L'ensemble des commandes est donné à titre d'exemple. Astuce: Pour une installation en dual boot avec Windows, la lecture de cette page peut être utile. Astuce: L'installation sous MacBook présente quelques variantes par rapport à ce qui suit: MacBook. Live CD/USB La dernière iso inclut les scripts et permet uniquement d'installer un système x86_64 via le réseau.

NANO nano - Nano's ANOther editor, an enhanced free Pico clone nano[+LINE] [options] [file] This manual page documents briefly the nano command. nano is a small, free and friendly editor which aims to replace Pico, the default editor included in the non-free Pine package. Rather than just copying Pico's look and feel, nano also implements some missing (or disabled by default) features in Pico, such as "search and replace" and "go to line number". Places cursor at LINE on startup. -B (--backup) When saving a file, back up the previous version of it to the current filename suffixed with a ~. -D (--dos) Write file in DOS format. -F (--multibuffer) Enable multiple file buffers, if available. -H (--historylog) Log search and replace strings to ~/.nano_history so they may be stored for later editing, if nanorc support is configured. -I (--ignorercfiles) Don't look at $SYSCONFDIR/nanorc or ~/.nanorc, if nanorc support is available. -K (--keypad) Do not use the ncurses keypad() call unless necessary. -M (--mac)

GeeXboX uShare UPnP A/V Media Server HomePage List of the keyboard shortcuts that are available in Windows XP This article describes the keyboard shortcuts that you can use to complete tasks in Windows XP. General keyboard shortcuts Click here to show/hide list Dialog box keyboard shortcuts Click here to show/hide list If you press Shift+F8 in extended selection list boxes, you enable extended selection mode. Ctrl+Tab (Move forward through the tabs)Ctrl+Shift+Tab (Move backward through the tabs)Tab (Move forward through the options)Shift+Tab (Move backward through the options)Alt+Underlined letter (Perform the corresponding command, or select the corresponding option)Enter (Perform the command for the active option or button)Spacebar (Select or clear the check box if the active option is a check box)Arrow keys (Select a button if the active option is a group of option buttons)F1 key (Display Help)F4 key (Display the items in the active list)Backspace (Open a folder one level up if a folder is selected in the Save As or Open dialog box) Microsoft natural keyboard shortcuts Click here to show/hide list

Iptables par Arnaud de Bermingham révision par Jice, Fred, Jiel Introduction Cet article présente de façon pratique la mise en place d'un pare-feu (en anglais, firewall) ou d'un proxy sur une machine GNU/Linux tournant au minimum avec un noyau 2.4. Pour des informations plus théoriques sur les pare-feux et les proxys, vous pouvez lire l'article pare-feu. Présentation d'iptables iptables est une solution complète de pare-feu pour le système GNU/Linux depuis le noyau 2.4, remplaçant ipchains, le pare-feu du noyau 2.2. iptables permet de faire du firewalling à états (stateful), de la translation de port et d'adresse, du filtrage au niveau 2 et beaucoup d'autres choses que nous n'allons pas aborder comme le « mangle » ou modification des paquets à la volée (atchoum). iptables est fiable et dispose de très nombreuses options qui permettent de faire du filtrage très fin. Licence d'iptables iptables et le framework NetFilter sont sous licence libre GPL. 1/ Installation 1.1/ Prérequis et éventuellement : # chaîne

Related: