Welcome to scratch pad of usefull shell snippets
dpkg -l | grep php4 | awk '{ print $2 }' | xargs apt-get remove -y
socat - /dev/ttyS0,b9600,echo=0,raw
ls *.tar.gz *.tgz | xargs -i sh -c "ls -hs '{}' ; echo ; tar tvfz '{}' | head -10 ; echo" ls *.tar.bz2 *.tbz | xargs -i sh -c "ls -hs '{}' ; echo ; tar tvfj '{}' | head -10 ; echo"
Yes, it sucks that tar doesn't know how to handle compression formats automatically...
Useful to take a quick view into last lines, reload page (and capture newly created errors/infos) and store that in single file for easy review (in vim :-)
tail -f /var/log/apache2/*.log | tee ~/log
socat -d -d TCP4-LISTEN:1280,fork TCP4:192.168.212.5:80
echo 3 > /proc/sys/vm/drop_caches