Jun
18
2009
Feb
13
2009
Feb
13
2009
Feb
13
2009
Linux fold command
Need to set a default width to a CLI output? Check out the fold command:$ echo “A B C D E F G H I J K L M N O P Q R S T U V W X Y Z” | fold -w 16
Output:A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Jan
07
2009
Speed up firefox
Firefox 3 utilizes sqlite database. Every once in awhile, these need to be vacuumed.
for f in ~/.mozilla/firefox/*/*.sqlite; do sqlite3 $f ‘VACUUM;’; done
Jan
06
2009
Want to show something on your machine to someone over the web? Don’t copy it or upload it somewhere. Just run “webshare” and the current directory and everything beneath it will be served from a new web server listening on port 8000. When your pal is finished, hit control-c.
alias webshare='python -c "import SimpleHTTPServer;SimpleHTTPServer.test()"'
thanks to shell-fu.org for this!
Jan
05
2009
Dec
13
2008
Converting ape audio files
ffmpeg now supports ape files!
to convert:
ffmpeg -i file.ape outfile.wav
I used ffmpeg to convert the ape to ogg.
Dec
13
2008
One smart mouse!
Aug
02
2008
Convert flv to avi using memcoder
mencoder -oac copy -ovc lavc -o video.avi video.flv
