Mastering the VI editor

University of Hawaii at Manoa
College of Engineering
Mastering the VI editor in PDF
Read the rest of this entry »

100 Vim commands every programmer should know

Since the 70′s, Vi is one of the programmer’s best friend. Nevermind you’re new to Vi or not, here’s a big list of 100 useful commands, organized by topic, which will make your coder life better. Read the rest of this entry »

Logging Java in Syslog

Bonjour,
J’ai un serveur Tomcat contenant une dizaine de webapps. Chaque webapp a son propre fichier log4j.properties, et dans chacun de ces fichiers, il y a une section pour un syslogAppender : Read the rest of this entry »

CSS – Cameron Simpson’s Scripts

CSS is a large collection of scripts (over 1000) and their supporting modules. There are tools for a wide variety of tasks, many sysadmin and text manipulation related, some mere finger convenience. There are even a few manual entries.

Css scripts package

Read the rest of this entry »

RabbitMQ OpenSources Messages Service

Un Projet fort intéressant, supporté par la fondation Mozilla, qui permet de s’interfacer avec un grand nombre de langages. Et ce sur de nombreuse Plateforme (Windows, Linux, VMS …)

Je recopie la présentation des fonctionalités, en anglais, mais très complète.

Read the rest of this entry »

Portable Eclipse

The steps for a portablEclipse aren’t that hard:

  1. get Eclipse and extract it to your portable drive
  2. install a JDK on your or any other PC (I really mean the Java Development Kit, not the JRE – anyway, both should work).
    The default installation path should be something like “C:\Programs\Java”, containing a folder named “jdk1.5.0_xx”
  3. create a subfolder “JDKs” in your eclipse folder (depending on your drive letter and extraction path this should look like P:\someFolders\eclipse\JDKs
  4. copy the jdk1.5.0_xx folder into the JDKs folder. (like P:\someFolders\eclipse\JDKs\jdk1.5.0_xx)
  5. edit the file “P:\someFolders\eclipse\eclipse.ini” to
    -vm
    ..\JDKs\jdk1.5.0_xx\bin\javaw
    -vmargs
    -Xms40m
    -Xmx256m

    (replace “jdk1.5.0_xx” with the actual folder name)
    This is more elegant than using a batch file due to being independent from drive letters and path variables.

  6. go to a pc with OR WITHOUT java installed. Connect your portable drive and run “P:\someFolders\eclipse\eclipse.exe”
  7. when asked for a workspace location, you can enter “.\workspace”, which will create a workspace in your eclipse folder (like “P:\someFolders\eclipse\workspace\”)
  8. do javanese Eye-wink

Vi VimDiff

Usefull vimdiff commands to view diff and merge

October 15, 2008 @ 8:20 am · Filed under Linux

Diffing the files and merging them is one of the very common task we do everyday. Following are few very useful commands to view the diff using vim and merge them using the vimdiff commands instead of copying and pasting from one file to another.

Read the rest of this entry »

SVK versionning

SVK

Article publié dans Linux Magazine 94, mai 2007.

Copyright © 2007 – Nicolas Chuche

Read the rest of this entry »

Sed Text filtering

Quelques commandes utiles avec Sed:


  • filtrage des commantaires:
  • sed ‘/^#/d;; s/#.*$//’

  • Suppression des lignes vides ou pleine d’espace
  • sed ‘/^[[:space:]]*$/d’

  • Mise en colonnes avec Awk:
  • df -m | awk ‘{printf “%-20s \t %-9s \t %-4s \t %s\n”,$1,$3,$4,$7}’

Memo éditeur de texte VI et VIM

Commandes d’insertion de texte

- i insert insertion avant le curseur
- I insert insertion au début de la ligne
- a append insertion après le curseur
- A append insertion à la fin de la ligne
- o open ouvre une ligne blanche en dessous de la ligne courante
- O open ouvre une ligne blanche au dessus de la ligne courante

Read the rest of this entry »

 

Switch to our mobile site