where i spend 95% of my time 02. Mar 2012

save a youtube video as mp4 with title 23. Feb 2012
The following one-liner fetches a video from Youtube and saves it to an mp4 container with a reasonably safe file name generated from the video title.
youtube-dl -q -o - http://www.youtube.com/watch?v=QH2-TGUlwu4 |
ffmpeg -i pipe:0 -vcodec copy -acodec copy "`curl -s \
http://gdata.youtube.com/feeds/api/videos/QH2-TGUlwu4 |
w3hxselect -c title | tr -sc '[A-Za-z0-9._{}\(\)\]\[\- ]' '_'`.mp4"
If you want to install the prerequisites via MacPorts: youtube-dl is available and w3hxselect is included in the html-xml-utils package.
forcing tidy to repair broken html 27. Jan 2012
$ curl -sL http://bit.ly/xpkkso | tidy 2>&1 | sed -n '105,106p'
This document has errors that must be fixed before
using HTML Tidy to generate a tidied up version.
$ tidy -help-config | grep force
force-output Boolean y/n, yes/no, t/f, true/false, 1/0
$ tidy -show-config | grep force-output
force-output Boolean no
$ curl -sL http://bit.ly/xpkkso | tidy --force-output true \
2>/dev/null | head -n 5
<!DOCTYPE html>
<html b:version='2' class='v2' dir='ltr'>
<head>
<meta name="generator" content=
"HTML Tidy for Mac OS X (vers 25 March 2009), see www.w3.org">
safariomnibar port for powerpc 13. Jan 2012
I did a port of Olivier Poitrey’s SafariOmnibar for Macs with PowerPC processor running Safari 5.0.6 on Mac OS 10.5.8. Go ahead and grab the current version over at Github.
sync 28c3 conference torrents 29. Dec 2011
Um die Server des 28C3 nicht unnötig zu belasten ziehe ich mir zwar nur die Torrent-Dateien der Mitschnitte, aber selbst das kann teilweise zu einem Geduldsspiel werden. Wie ich feststellen musste bekommt man bei jeder Verbindung zu mirror.fem-net.de einen anderen Mirror zugewiesen. Manche davon funktionieren gut, manche weniger gut und manche garnicht.
Insgesamt scheint es fünf Stück zu geben:
$ dig +short mirror.fem-net.de |\
xargs -n 1 dig +short -x | sed 's/.$//'
mirror.netcologne.de
bork.informatik.uni-erlangen.de
ramses.wh2.tu-dresden.de
ftp.uni-kl.de
mirror.selfnet.de
Bei meinen Versuchen erwiesen sich die Server der Uni Kaiserlautern und das Wohnheimnetzwerk Stuttgart (“Selfnet”) als recht performant. Mithilfe von Fuse4X und CurlFtpFS synchronisiere ich nun regelmäßig die Torrent-Dateien der Video-Mitschnitte.
$ sudo port install fuse4x curlftpfs
$ mkdir /Volumes/28C3
$ curlftpfs ftp://mirror.selfnet.de/CCC/28C3/mp4-h264-HQ/ \
/Volumes/28C3
$ rsync -hav --include '*/' --include '*.torrent' \
--exclude '*' /Volumes/28C3 ~/Desktop
Nachtrag: Die RWTH Aachen bietet auf ihrem inoffiziellem Mirror auch rsync an.
$ rsync -hav --include '*/' --include '*.torrent' --exclude '*'
rsync://ftp.halifax.rwth-aachen.de/ccc/28C3/mp4-h264-HQ/ ~/Desktop
Nachtrag: Mittlerweile gibt es auch einen Gesamttorrent (~48 GB).