Geek Reference

This is my page for geek reference information. Basically, I am getting old and I can’t remember everything. The consumption of beer might not help, but I am not willing to give it up.

Linux Reference

List directories with UTC time stamps

ls –time-style=”+%s” -o

Removing blank lines from output

grep -v “^$”

Mounting encrypted volumes

– generating the key from previous file

gpg -c -a -o vol.host.ID.asc vol.host.asc

– display the filesystem-key
gpg -d vol.host.ID.asc

– create loop for crypto device is using AES256
losetup -e AES256 /dev/loop0 /dev/sda5

– mount the loop device as normal
mount /dev/loop0 /home/

Transcode with ffmpeg for creatvie Zen players

ffmpeg -i $1 -s 320×240 -r 24 -acodec libmp3lame -vcodec libxvid -vtag XVID -f avi -qscale 3 -g 300 -deinterlace -ab 56k -ar 24000 -async 1 $2

Transcode with ffmpeg for Flash video embedding

ffmpeg -i $1 -y -b 800 -r 20 -f flv -vcodec flv -ab 128 -ar 44100 out.flv

Transcode with mencoder for flv to avi

I’ve tried the ffmpeg but the mencoder had far better quality.

mencoder -oac mp3lame -ovc lavc -lavcopts vcodec=mpeg4 -o dest_file.avi source_file.flv

BASH: Find files older then 10days and delete

/usr/bin/find /dir/to/delete/files/in -type f -mtime +10 -exec /bin/rm -f {} \;

TCPDUMP for HTTP Traffic Only

tcpdump -A 'src SOURCE_IP and tcp port 80 and (((ip[2:2] - ((ip[0]&0xf)<<2)) - ((tcp[12]&0xf0)>>2)) != 0)'

Speaking in tongues geek

http://www.koeln.de/

http://www.express.de

http://www.zeit.de

http://www.faz.net

http://www.sueddeutsche.de/

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload CAPTCHA.