Tag MPEG-4 meta data

Finally, I found a free, fast and easy tool to tag MPEG-4 files: MetaZ.

It’s pretty easy to use. One little detail to be mentioned though:
You can add chapter marks by pasting them in the following format:

00:00:00.000 Intro
00:00:30.000 Antihelden
00:5:00.000 Die Jungs Aus Dem Reihenhaus
00:15:00.000 Fenster Zum Berg
00:20:00.000 Affentanz
00:22:00.000 Manfred Mustermann
00:36:00.000 Solala
00:40:00.000 Safari
00:50:00.000 Liebe & Hass
00:55:45.000 6 Meter 90
01:00:00.000 Blattgold Auf Anthrazit

downloading Wikipedia

Wikipedia is a high quality resource for information. And it’s free. You can even download its complete content as XML dumps. For example for the German Wikipedia:

wget -c http://dumps.wikimedia.org/dewiki/latest/dewiki-latest-pages-articles.xml.bz2


Weihnachten 2012



Baam & Bua

interesting ports (MacPorts)

  • HandBrake – MPEG tool
  • hexfiend – hex editor
  • macfuse, sshfs – user space file systems
  • textmate2 – text editor
  • wget

unzip all zip files in the current dir to a separate folder

for file in `ls *.zip`; do unzip $file -d `echo $file | cut -d "." -f 1`; done

linux :: add a new hdd

e.g. /dev/sdb

partition disk:

fdisk /dev/sdb
new partition: key n
primary partition: key p
partition 1
default values
write: key w

format disk:
mkfs -t ext3 /dev/sdb1

edit /etc/fstab accordingly

convert between character sets on linux

to convert a file from utf-16 to utf-8 you can use recode (make a copy of the file first!):

recode UTF16..UTF8 myFile.txt

diff two folders on OSX

diff -qr "path/to/first/dir" "/path/to/second/dir" | grep -v -e 'Thumbs' -e 'DS_Store' | sort > diff.txt

openvpn resolv.conf

sudo rm /etc/resolv.conf
sudo ln -s /etc/resolvconf/run/resolv.conf /etc/resolv.conf

selecting a random file in the current folder

echo "${files[RANDOM % ${#files[@]}]}"