Simon PainterSomewhere to keep things


Route summarisation with python

There used to be a great little website for route summarisation and it did it far more intelligently than Cisco kit does it. It looks like the site has dropped off the internet which is a shame but there is a handy python library called netaddr with has the same capabilities. I have written a […]

Read more

Dynamic DNS built in AWS

I was playing around with some home automation with a Raspberry Pi and needed remote SSH access back to it. There are a bunch of free dynamic DNS providers out there but I couldn’t find one I liked so I made one. I won’t go into the ‘how to use it’ because that’s all […]

Read more

Python framework for

I wanted to use as a quick source for weather forecast data so put together a simple class to get at the properties I needed. As my needs changed I decided to implement the whole (very simple) api. You’ll need an api key but that’s about it. Here’s a few things you can do […]

Read more

Python IFTTT Trigger Class

I have started using Python a lot for day to day tasks and as I use IFTTT quite a lot I needed an class to trigger the webhooks feature to send myself alerts or whatever recipe I choose within IFTTT. To use the class just create a Trigger object with the trigger name and your […]

Read more

Python as a service

I use Raspberry Pi for all sorts of little jobs and automation and for this Python is the natural choice. It’s often useful to have your script running as a service and able to automatically start on boot. It’s quite easy to set up a new service using systemd on a Raspberry Pi running Raspbian. […]

Read more

Bulk MAC address lookup

I had a list of MAC addresses and was trying to identify them by finding out as much as I could about them. This was so I could document what devices I had found on which switchports in a datacenter. After looking them up in a router ARP table and doing a reverse DNS lookup […]

Read more