Archive for April, 2011

  1. Damn nice bag

    They people have some damn nice bags:

    http://shop.hardgraft.com/bags/2unfold-laptop-bag-brown

    By timc3 on the
    April 27th, 2011
  2. Webcasts to watch

    Recently I was unfortunately quite ill and away from work for an extended time, the only upside being that I had some time to spend learning some new things and watching web conferences on my Apple TV2. Of those that are of interest, I am going to note them down here:

    * LeWeb – Really quite good, european focused web event
    * PyCon 2011 – A must watch for anyone using Python.
    * JSConf – Good Javascript conference, though I got the feeling that it wasn’t quite as friendly as Pycon.
    * Webstock – New Zealand conference.
    * Future – Some interesting interviews.
    * Google Techtalks

    Of course I also watched quite a lot of Ted videos.

    I will keep adding to this list as I find more events to add, as there must be quite a few now.

    By timc3 on the
    April 15th, 2011
  3. My Jenkins nginx proxy script

    Here is a very simple configuration for nginx to proxy Jenkins (the new name for the un-Oracle’d Hudson)

    server {
            listen   80 default;
            server_name  bld-master localhost;
            root /var/lib/jenkins;

            access_log  /var/log/nginx/jenkins.access.log;

            location / {
                    proxy_pass        http://127.0.0.1:8080/;
                    proxy_redirect    off;
                    proxy_set_header  Host             $http_host;
                    proxy_set_header  X-Real-IP        $remote_addr;
                    proxy_set_header  X-Forwarded-For  $proxy_add_x_forwarded_for;
            }

    }
    By timc3 on the
    April 15th, 2011
  4. Setting MAC Addresses on Debian and Ubuntu

    I recently had a problem with having duplicate MAC addresses on my network for a couple of machines that I was using in a Linux KVM cluster. Flashing the firmware on the motherboards seem to have reset the MAC address to a default (thanks ASUS) that was the same on each board.

    Changing the MAC address back seems like quite a hard job and looking around on the internet it seems that many people are doing this the hard way with shell scripts and so forth. Instead its easy enough to do this using the scripts that are already setting up the network for Debian (and I am sure this will work for Ubuntu just as well).

    Edit /etc/network/interfaces like so:

    auto eth0
    iface eth0 inet manual
    pre-up ifconfig $IFACE hw ether 00:01:02:03:04:05
    pre-up ifconfig $IFACE up
    pre-down ifconfig $IFACE down

    What this is doing is manually controlling the startup and shutdown of the eth0 interface. I am using bridging on my KVM boxes, so I don’t actually have to set up the IP address (albeit DHCP or manual IP configuration), but that aside the interesting parts are what happens in pre-up. Firstly I set the hardware address to a new address (and please change it from the example above – thats not the actual one I used either), then we tell it to bring the interface up.

    We also use pre-down to tell it what happens when stopping the network service.

    Probably better than messing around with Shell scripts.

    By timc3 on the
    April 14th, 2011