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,…
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,…
Here are some of the more common commands I find myself using to control VirtualBox from the CLI: Displaying VirtualBox Guest information Show available VMs VBoxManage list vms Show available OS Types VBoxManage list ostypes…
To start a script or program on startup, just add the command to : CentOS: /etc/rc.d/rc.local Arch: /etc/rc.local
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…
I often create a quick bash script on the fly that cats a file, and does something with each line. For the example, we have a text file (text.txt) that contains the following: a b…
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…
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…
So I was working with some audio files last night and I wanted to add silence at the end of each file in a particular directory. I created a sound file of silence (sure, there…
Looks as if Mutt doesn’t have a function that marks all messages as read. Here is a macro that I found that works like I want it to: macro index M “.*\rN.*\r” “Mark all messages…
If you already have a key: openssl req -new -key server.key -out server.csr If you need to generate a ssl key (this generates a 2048-bit key): openssl req -new -newkey rsa:2048 -nodes -keyout server.key -out…