SVN blame snippet for VIM

Viewing who is to blame for a portion of code under SVN in VIM, add this to your .vimrc vmap gl :!svn blame =expand(“%:p”) \| sed -n =line(“‘< ") ,=line("'>“) p Then using Visual Block,…

Starting VirtualBox as a headless server

nohup VBoxHeadless –startvm <guestvmname> & Explanation: nohup – (NoHangups) Keep the process running, even when the terminal is closed <guestvmname> – the name of the VM you wish to start & – run the process…

Searching emails in mutt

Taken from http://www.mutt.org/doc/manual/manual-4.html Many of Mutt’s commands allow you to specify a pattern to match (limit, tag-pattern, delete-pattern, etc.). There are several ways to select messages: ~A all messages ~b EXPR messages which contain EXPR…

Converting wav to mp3

Needed to quickly convert a bunch of wav’s to mp3 files. ffmpeg -i audio.wav -acodec libmp3lame -ab 192k audio.mp3 -i audio.wav – the input wav file -acodec libmp3lame – the codec use in converting the…