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…

RAID 1 on FreeBSD using GMirror and GLabel

glabel label -v local1 /dev/da1 glabel label -v local2 /dev/da2 gmirror label -vh -b round-robin gm0 /dev/label/local1 /dev/label/local2 echo ‘glabel_load=”YES”‘ >> /boot/loader.conf echo ‘geom_mirror_load=”YES”‘ >> /boot/loader.conf Load the mirror: gmirror load Let’s verify that the…

Creating a SVN Repository

Create a Repository To create an empty repository: svnadmin create /path/to/repository Once the repository is created you need to import data. Typically, svn repositories are broken into 3 directories, /trunk, /branches, and /tags with the…

Burning an ISO to CD at the CLI

Often, I want to bypass firing up a GUI application to burn a simple ISO on a CD. To scan devices: cdrecord -scanbus You’ll get an output like this: cdrecord -scanbus scsibus0: 0,0,0 0) *…

Abook with Mutt

Since I’m now a mutt user, I needed to find an address book I could use for it. That’s where abook comes in. abook is a simple program designed for use with mutt; specifically to…

Spelling in VIM

To start spell check in Vim, use the command :set spell and turn off spell check with :set nospell With spell check activiated, misspelled words will be highlighted in Vim. Here are some commonly used…