Find nifty Ubuntu Linux-based recipes here. ======= Python setup.py to DEB package ======= [[http://www.smallbulb.net/2011/194-python-setup-py-to-deb-package | Found]] it here. Often Python packages come with setup.py utility but you'd rather have a .deb file. sudo aptitude install python-stdeb python setup.py --command-packages=stdeb.command bdist_deb ======= Change encoding of a file ======= iconv -l # lists available encodings iconv -f -t ======= Convert images to AVI file ======= File names must contain sequence numbers (frame001.png, frame002.png etc.) mencoder "mf://*.PNG" -mf fps=10 -o output.avi -ovc lavc -lavcopts vcodec=mpeg4 ======= Rip a media stream ======= mplayer -dumpstream -dumpfile orgel.asf mms://apasf.apa.at/oe1_live_worldwide mplayer -vc null -vo null -ao pcm:file=orgel.wav orgel.asf oggenc -Q orgel.wav ogg123 orgel.ogg ======= Count occurences of pattern in multiple files ======= egrep -hc "ECO>101<" *xml | awk '{total+=$0}END{print total}'}}}