Code Dump: Icongen

Here’s a quick and dirty php script (using GD) that creates icons for my android phone. I got fed up at SimpleText, which no longer creates transparent images, and appears to have been abandoned by its developer. Images are created from the URL


into a

My 2013 End of Year Game's List

These are the games I played most in 2013.

10. Antichamber – This is a mind-bending puzzler, and kept me occupied for a good three weeks on my laptop. If you enjoy Portal and don’t mind being constantly messed with, this game is definitely for you. Walls appear and disappear

OSHA Label Generator


OSHA Label Generator
This is something I whipped up yesterday afternoon/this morning after an employee requested I help him create a template for OSHA labels, as apparently OSHA standards have changed or something. As he described what he wanted, I knew that it would be painful to create in

Recovering Private Key for a CRT file in Windows Server

To summarize what is here

  1. Import Certificate via MMC
  2. Get “serial number” of certificate
  3. certutil –repairstore my SERIAL
  4. Refresh certificate store and check for private key. If there isn’t one, you’ll need to generate a new certificate

Hopefully that site stays up.

"We need it"

At the company where I work, we have numerous CNC milling machines. I know very little, but I’ve been told by numerous people that we need very specific Dynex brand USB-floppy drives to run programs on them. Unfortunately, Dynex has discontinued them, and the replacements somebody bought are junk

Identifying mysterious wireless issues.

“The first drop was at 11, when lunch began.”

In my current position, I have been struggling to identify a particular wireless issue that was sporadically taking our wireless network down. At the moment, we have put APs our throughout the building, but only three people in one office are

Code Dump:

Building on, this downloads an entire youtube channel. Usefull for marathon viewing sessions.

#!/bin/bash if [ "x$1" = "x" ] then echo channeldown "(username)" exit fi if [ ! "x$2" = "x" ] then MAX=$2 else MAX=100 fi USER=$1 i=1 while [ $i -lt "$MAX" ] do wget http://gdata.
Code Dump:

Downloads youtube videos using youtube-dl. I built it to download multiple videos in a row. Put each url in a pair of single quotes.

#!/bin/bash SETDIR="/downloads/watch/misc" DIRFLAG=0 for ARG in $* do ARG="$(echo "$ARG" | sed 's/feature=[a-z_+]*&//')" #
Code Dump: Brighty

For some reason, on my Acer Aspire laptop, Ubuntu doesn’t seem to respond to the brightness settings, but this script works. It’s probably not terribly safe, but it add a good 20-30 minutes of battery life when I set it to the lowest setting I can see.

Code Dump:

Generates random strings. I got tired of having to go to, and this takes like 2 seconds.

for Y in $@  
        if [ $Y = "-n" ]
        elif [ $Y = "-s" ]