18 November 2011 ~ 0 Comments

Graphing SSH dictionary attacks with HighCharts

TweetAfter my 10-year-old basement Linux server died this week from a power outage, I took the sad step of giving up on it. It’s died before and I’ve patched it back together with a new power supply here or an addon PCI SATA card there, but I finally decided to throw in the towel since [...]

Continue Reading

21 October 2011 ~ 0 Comments

Displaying currently-playing iTunes track in the Mac menu bar

TweetIn an attempt to teach myself Objective C, and because I couldn’t find anything that did what I wanted, I wrote a little utility to display the currently-playing iTunes track in the Mac taskbar. Originally I had it display the full track name right in the taskbar but it was too much text for such [...]

Continue Reading

26 September 2011 ~ 0 Comments

Benchmarking DNS servers with Java

TweetI’m currently in the process of moving our DNS over to another provider and I was curious as to whether the old or new provider offers faster lookups. dig shows query times, but I didn’t want to just run that over and over. I decided to write something to do this, in Java since I [...]

Continue Reading

02 August 2011 ~ 2 Comments

Amazon SES: “illegal headers” with ses-send-email.pl (followup)

TweetA few people have emailed me asking me to integrate the perl code snippet into I wrote to strip illegal headers when sending email via Amazon SES into something actually usable. I’ve done so! I haven’t really tested this beyond sending some test emails, but here it is. Use this at your own risk, I [...]

Continue Reading

21 July 2011 ~ 0 Comments

MongoDB logrotate script

Daily mongodb log rotation via logrotate.

Continue Reading

23 June 2011 ~ 0 Comments

Teaching myself node.js: Part 3

Notes on MongoDB’s ObjectID vs sequential identifiers.

Continue Reading

22 June 2011 ~ 0 Comments

JavaScript regex for stripping leading & trailing whitespaces

str.replace(/^(\s*)((\S+\s*?)*)(\s*)$/,"$2");

Continue Reading

18 June 2011 ~ 0 Comments

Teaching myself node.js: Part 2

More work learning node.

Continue Reading