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…
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…
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…
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…
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…
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) *…
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…
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…
To view the items in a Postfix queue, type in the following command postqueue -p The first column is the Queue ID. You’re going to need to make note of that in order to view…