Fail-ternet
How to setup a Squid proxy to redirect images to images piped through imagemagick.
This was just a fun experiment that extended a bit on the Upside-down-ternet experiment (http://ex-parrot.com/~pete/upside-down-ternet.html). In addition to mangled images, it serves up a specific YouTube video.
The packages you need (that are most likely not installed by default) are:
Squid apt://squid
Imagemagick apt://imagemagick
and a web server such as Apache apt://apache2
Create directory /var/local/upsidedownternet/
Place the redirector.py script in the directory above
Insert the following into /etc/squid/squid.conf:
redirect_program /var/local/upsidedownternet/redirector.py
redirect_children 3
Symlink /var/www/upsidedownternet to /var/local/upsidedownternet/
Symlink /var/local/upsidedownternet/images to /tmp/upsidedownternet/
Start up squid