From XKCD

posted 5 months ago

posted 9 months ago

VIM: tabs to spaces

:set expandtab
:retab!

Thanks to Daily Vim for this snippit.

posted 9 months ago

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

posted 9 months ago

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

posted 10 months ago

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!

posted 10 months ago

A good reason why NOT to drink soda.

posted 10 months ago

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.

posted 11 months ago

One smart mouse!

posted 11 months ago

Convert flv to avi using memcoder

mencoder -oac copy -ovc lavc -o video.avi video.flv

posted 1 year ago