Your favorite browser/mail client is locked? The same stupid window keeps opening, saying 'profile already in use'? Unlock your program in three steps (replace thunderbird by firefox if necessary):
vi $home/.mozilla-thunderbird/profiles.ini
[General] StartWithLastProfile=0 [Profile0] Name=default IsRelative=1 Path=1marg9sa.default Default=1
rm $home/.mozilla-thunderbird/1marg9sa.default/lock
The vim text editor is fast and highly configurable. C, html, php and perl code can be conveniently written with perfect syntax highlighting extremely quickly.
This tool was used to clean-up and indent the 'error-free' html code of these web-pages.
example :
tidy -indent <html_file>
tidy -indent -m <html_file>
mplayer <video_file>
mencoder <video_file_in> -oac lavc -ovc lavc \ -lavcopts vcodec=mpeg4:vbitrate=3000:acodec=mp3:abitrate=200 \ -o <video_file_out>
find <folder> -name "*.<suffix>" | xargs grep <string>
sed 's/pattern1/pattern2/g' <file>
Example : give me all the .eps files included in the .tex files in this directory
egrep "\.eps" *.tex | sed -e "s/.*{\(\/.*\.eps\)}.*/\1/g"
Thanks ImageMagick !! It has an embeded autocrop function!
mogrify -density 150 +antialiasing -crop 0x0 <eps_filename>
Thanks ImageMagick, again. With -density argument, the dpi resolution can be adjusted at will.
convert -density 150 <eps_filename> <png_filename>
Example : under debian, give me the swiss french qwertz keymap !.
loadkeys /usr/share/keymaps/i386/qwertz/fr_CH.kmap.gz