techrobatics.com

Sysadmin Ex Machina

Browsing Posts in Sys Admin

I’ve been working on a project for a friend of mine, over the last couple weeks. He’s using a Windows 2003 Server, with IIS 6. I’m not uncomfortable working from a Windows command shell, but my own personal preference is bash. He’s also got a tight budget for bandwidth, so Cygwin is the way to [...]

The title of this post is actually an attempted SQL Injection I did against my own website, right here. It populated the title of a new post, just as you see here above. Fortunately, it was the only injection of about 600 that succeeded. Y’all might want to look for the “SQL Inject Me” Plugin [...]

The following script is a rudimentary attempt at ( 1 ) understanding the BOTO API kit for Amazon S3, and ( 2 ) ending up with something functionally useful for the average web system administrator. I’ll be using what I’ve learned from this, as the framework for a complete backup tool for DIY bloggers/web types. [...]

This, I got from pixelbeat.org. I’m reposting it here, so that I never ever lose it. #!/usr/bin/env python # Try to determine how much RAM is currently being used per program. # Note per _program_, not per process. So for example this script # will report RAM used by all httpd process together. In detail [...]

This bit of bash script tells me when the swap file on my servers exceeds a set maximum. I use it to let me know when storage becomes an issue on my site: #!/bin/bash # Notify me one time if my swap is over MAXSWAP and log the # swap usage as well in SWAPLOG. [...]