Archive for October, 2010
Google App Engine as a CDN
If you are looking to offloading some of your bandwidth costs to the great google, and were thinking of using the google app engine as a free content delivery network, then have a look at the cirrux cache project.
Installing it is pretty straightforward, considering you follow the quick installation guide as stated in the readme. If you are looking to use this along with your wordpress installation, then have a look at this link, which gives a much better and easier explanation and a step by step approach on what you really need in order to set up.
Using this technique may also help because the HTTP/1.1 specification suggests that browsers download no more than two components in parallel per hostname. If you serve your images from multiple hostnames, you can get more than two downloads to occur in parallel.
If you are feeling lazy and just want to use something, then have a look at http://cdn-cloud.appspot.com/.
Monokai Komodo Edit/IDE Color Scheme
Looking through the interwebs for a suitable dark color scheme for Komodo Edit did not turn up favorable results, other than the one three year old topic over at the Activestate forums.
The only one that did stand out was the Monokai theme (and the Django theme, but that was too green), but the fonts were too big and too italicized for my tastes.
Here is a file with saner values :
Hope you enjoy it.
Quick SSH Proxy
If you have access to ssh to a server, its very simple to use the connection as a proxy server. To do so go to the terminal and run the following command :
ssh -C2qTnN -D 8081 youruser@yourhost.com
The number after -D (8081) specifies which port to listen on. Change it to something else of your liking if something else is using this port.
Then use localhost with the port number you specified as the SOCKS proxy, like so :

You can use ipchicken.com to check that everything is set up correctly.
Download files from a 4chan post
If you need to download all images (or files) from a 4chan post, then here is a quick script to do it. You can run it using PHP on the command line. Saves a lot of time when you see interesting wallpapers and things like that.
Once you save the file, make it executable by using chmod a+x download-4chan.phpand then you can start downloading all the images using something like
./download-4chan.php http://boards.4chan.org/wg/res/2508871
-