Verifying SNMP Connectivity on Multiple Hosts

I needed to check if SNMP was accessible on whatever live servers that existed in a particular subnet. Here's a quick script to do...

Selecting Time Ranges from Logs, Part 2

A couple of years ago I wrote an article about selecting specific time ranges from log files. I proposed two options: either convert all...

Bulk-Adding IPTables Rules

I've been using my mod of this handy script to block countries with iptables. One issue with the script is that it is adding...

Late Night Rant: Trump, Bolton, Iran, Saudis

Usually I try to keep politics out of my blog, but this time I just can't resist. A few days after Trump fires Bolton...

Automatically Block Frequent Visitors

I had a few similar scripts floating around this site, but this one is a bit more all-inclusive and better organized. The script will...

Windows 10 Upgrades

I did the only sensible thing and disabled automatic updates on my two Windows 10 laptops. Microsoft's belated foray into the world of CI/CD for...

Detecting Blurry Photos with ImageMagick

Here's a typical scenario: I go to a birthday party where everyone knows I'm a shutterbug, so I have to bring my camera. As...

Working with iptables Logging

Most commonly iptables is used to allow, block, or redirect connections. However, it also has a logging feature that can be very useful for...

Copying File Attributes Across Servers

To make long story short, had to fix someone's chmod -R 777 /. A late-night copy-paste fail, it would seem. Needless to say, console...