/images/me.jpg

Always busy. Never bored.

dirty python network graphite hacks

I’ve been pushing historical temperature data for Vancouver into a local graphite instance using python. While pushing the data, I received this error: 1 socket.error: [Errno 99] Cannot assign requested address This was strange, as I had been using the address in the loop many, many, MANY times before hitting this error. A little more sleuthing uncovered a ton of connections in the TIME_WAIT state. Around 26,000 open sockets was where I couldn’t open any more.

Sleep data graphs

I’ve been using the Sleep as Android app to track my sleep for a little while now. The application allows exporting to CSV files. I thought, “GREAT! I can bash in some, well, BASH and put this in Graphite". You know to look at it in relation to other things I’m tracking and wastes of time like that. I cracked open the CSV and immediately noticed it was REALLY whacky. Okay, well, not whacky, just not what I expected.

Bogons?

The other day, while wandering through dhcpd logs, I spied a message similar this one. 1 hostname arpwatch: bogon x.x.x.x 0:0:0:0:0:0 Bogons? What the heck is this about? A little Google-fu popped this post up from a OpenBSD mailing list: http://www.monkey.org/openbsd/archive/ports/0012/msg00098.html Along with pointing out this was just a message about an invalid IP address, it stated Others have already pointed out that ‘bogon’ means a particle of bogosity.

E212: Can’t open file for writing

I spend much time in vi/vim. As a good little Sysadmin, I seldom wander around file-systems as root. Of course, I often forget sudo before spending much time editing system files in vi. This leads me to seeing our friendly error message in the post’s title. In comes this command: :w !sudo tee % I’ve probably typed this enough times, that I’ll never forget it. That being said, having it lying around here will ensure that.

Crushing postfix

I have my home-lab set up to send all mail to my Google mail account. All of the hosts in my house are set to send mail to one host, which uses Gmail to relay out. Except, of course, for my Nagios host, which relays directly, but I digress… This is normally quite excellent. It’s not, when I accidentally something. If you send too much mail from your Gmail account, Google gives you a “time out”.

Motorola phones

In a recent conversation, I thought back to an old Motorola phone I bought in the 1990’s. It was old when I bought it. I paid $35 for the Motorola 8000. Upon leaving the gentleman’s apartment, I really came to suspect it was stolen. Mostly, it was the neighbour opening the door and yelling at me, “Did you buy stolen goods from him?” At the time of my purchase I was quite interested in phreaking.

FP!

The inaugural post. The first post. The kick-off. As do 6 billion others, I enjoy me some humour. Internet memes are a particular favourite. Here is an mouldy oldie in Internet time: http://knowyourmeme.com/memes/first