Scripting
July 12, 2023 | Powershell, Scripting
I am working on a DHCP migration and it turns out that the people who managed the DHCP server previously weren’t that great at cleaning up old scopes when sites were closed. It’s next to impossible to identify from the number of leases because some of the live sites are only rarely used so I […]
Read more
Tags: automation, dhcp, housekeeping, powershell, scripts
July 17, 2020 | php, Scripting
I am working on a project that requires me to store publishers and subscribers in a DynamoDB table. As both elements are stored as integers and as I only ever need to find out the subscribers of a publisher (and not the publisher that a subscriber is subscribed to) it’s possible to use a list […]
Read more
Tags: aws, blok, DynamoDB, php, sdk
April 18, 2020 | Python, Scripting
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
Tags: Routing
November 7, 2018 | Python, Scripting
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. http://www.pi-dns.me I won’t go into the ‘how to use it’ because that’s all […]
Read more
Tags: aws, gists, Projects, Route53
September 4, 2018 | Python, Scripting
I wanted to use darksky.net 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
Tags: gists, Projects
August 3, 2017 | Python
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
Tags: gists, Projects
August 3, 2017 | Python
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
Tags: Projects
September 12, 2014 | Powershell, Scripting
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