Category: www

  • Shell(s) for my Great Firewall Checker

    As my last shell has been disconnected in China (not because I was probing websites, but because the building the Guruplug was in got closed) I’m looking for shells. Linux or Unix. With Git installed. I’ll barely use any disk space and it will probe the websites at most once/day (at night, when you won’t…

  • The Datatank

        Via Pieter Colpaert.

  • Great Firewall checker

    An attempt to create a list of major blocked sites in China (or any other country/ISP). It’s written entirely in Bash. Github repo riiiiiiight here. It’s used by my PAC-generator. The Github page is updated once a day by three hosts. One in Belgium, one in The Netherlands, and a Guruplug in China. This way…

  • Proxy.pac generator

    I made a simple bash script that generates a proxy auto configuration file. The PAC file generated redirects all matching rules through the proxy. The only issue at the moment, is that, once the list gets big, it’s not very performance-friendly. Something I’ll try to fix in the coming days. I’m using this script to…

  • Compile wget on Mac OS X

    There’s a precompiled wget available on the net, but it’s not automatically accepting StartSSL’s certificates. And as it seems, there’s a wget update available that did. This is what I had to do to compile it on my Macbook Pro; Or you’ll get this error: configure: error: C compiler cannot create executables PATH=/Developer/usr/bin/:$PATH tar xvzf…

  • How to get rid of spambots on WP?

    Simple, start using SSL. Not entirely sure why this keeps spambots away, but a drop from ~100 spam comments/day (1/2) to at most 4 seems pretty cool. Edit: seems like they just do a POST request to an old URL (http://blog.tuinslak.org/some-post), which results in this reply: HTTP/1.1 301 Moved Permanently Server: nginx/0.9.4 Date: Tue, 22…

  • blog over ssl

    Starting a SSL test on this domain as of today. Free cert by StartSSL. SSL is clearly the new hype, and this time I won’t be last to join it! 😉 Just going to check how much (if any) SSL slows down my site. Every http requests gets automatically rewritten to https.

  • nginx: could not build the server_names_hash

    I’ve recently started switching my custom nginx installations to the Debian repository version. So from 0.9.4 to 0.6.32 (Lenny), which will be upgraded to 0.7.x in Squeeze. I’ve come across this error on certain servers: # /etc/init.d/nginx restart Restarting nginx: 2011/02/11 11:34:58 [emerg] 3624#0: could not build the server_names_hash, you should increase server_names_hash_bucket_size: 32 nginx.…

  • Bind mrtg stats

    Because I couldn’t find any that worked. (Dark blue: incoming queries, light blue: outgoing/recursive lookups) mrtg.cfg sample: # Bind Title[bind]: Bind Queries Target[bind]: `/etc/mrtg/bind-stats.sh` PageTop[bind]: <H1> Bind queries per minute on vm1 </H1> Options[bind]: growright,pngdate,nobanner,gauge,nopercent,noinfo MaxBytes[bind]: 50000 Ylegend[bind]: Queries/min ShortLegend[bind]: queries/min LegendO[bind]: Incoming Bind queries per minute LegendI[bind]: Outcoing Bind queries per minute Legend2[bind]: Incoming…