Perl and LLDP

Dynamic discovery of switches and even mapping.  I will write a better post around this and clean up my code to repost, but this is getting posted quickly to share. Read the rest of this entry »

Simple Hangman Game

I was working though simple Perl with some guys that were interested in learning.  So I came up with the idea of making a simple hangman game as an example to work off of.  This is a working game that could use lots more refinement, but was a great teaching tool.  I will add comments to this code later, they were intentionally left out so that they couldn’t cheat.  Here is the code:

 Read the rest of this entry »

Finding Large Files

I was looking to delete some large files on my mac, but was having a hard time identifying the 1 Gig or larger files. I droped down to the Terminal because I knew the du command helps you identify file sizes, but it is a wealth of information since it is recursive. I sorted through this information with with the grep command. Read the rest of this entry »

Monitoring with GeekTool 3 and Perl on a Mac

I was running into issues where I was having power outages at my house.  My  IP address at home was changing a lot during due to the outages.  I wanted to keep track of the address changes as well as the outages.  I threw together a little script that keep track of things.

This script assumes a few things; that you have a dynamic DNS service running on your home router, as well as ping and host installed with the outputs structured as follows:

 Read the rest of this entry »

A Twitpic Script

I am impressed with the sheer volume of pictures from all over the world that get sent to I use them and so do many Twitter applications.  My only complaint with twitpic is that they don’t let you grab random photo’s out of the API.  Not even your own; you have to specify which photo you want to get and it will return that.  I was interested in the idea of a screen saver of sorts that pull random photos straight from twitpic, so I sat down and whipped this together.  This little Perl script grabs the first twitpic from the Public Timeline page and returns the web address to that picture and Read the rest of this entry »

Added Shortening to Sociable WordPress Plugin

I hacked url shortening into my Sociable WordPress Plugin.  Here is a diff of the two files if you want to add it to yours too (the .bak is the original file and the sociable.php is the one with the features in it): Read the rest of this entry »

Quick Setup of pfSense on an ALIX board

I have been hearing a lot about an Open Source Firewall/Router/VPN software package based on FreeBSD from @buraglio called pfSense.  The more and more I heard about it the more interested I became.  Some other guys I worked with have deployed pfSense boxes for other uses and seemed pleased, so 2 weeks ago I took the plunge.

I knew that I didn’t want to run a full-tower system with multiple NIC cards… I have done it and am over it; call it being fugal, saving space, “going green” or what ever you want… I knew I was going to use a single board computer.  I was recommended Read the rest of this entry »

Converting mkv to mp4

I was playing around with an .mkv video file and wanted to stream it to my playstation 3 and wasn’t really sure where to start.  I already have Mediatomb setup on my Fedora 11 box and it works great for avi, mpeg, mpeg2, mpeg4, divx, etc… but it didn’t natively have anything for mkv.  I found a couple sites that talked about how I could have mediatomb transcode the mkv down to mpeg2 or mpeg4, but I couldn’t get it to work quite right.  The best I was able to do was get it to Read the rest of this entry »

Make your own iPhone Ringtones… Free

I found this great article written by Mark Harris on that breaks down the steps to create your own iPhone Ringtones for free.  It only takes a couple of minutes and it really works.  I just made one for my iPhone 3GS using iTunes 8.2 (23). Check the article out here.

Startup Key Combinations for Intel-based Macs

Since I always have to look this up I thought that I would post it here.

Press C during startup Start up from a bootable CD or DVD, such as the Mac OS X Install disc that came with the computer.
Press D during startup Start up in Apple Hardware Test (AHT), if the Install DVD 1 is in the computer.
Press Option-Command-P-R until you hear two beeps. Reset NVRAM
Press Option during startup Starts into Startup Manager, where you can select a Mac OS X volume to start from. Note: Press N to make the the first bootable Network volume appear as well.
Press Eject, F12, or hold the mouse (/trackpad) button Ejects any removable media, such as an optical disc.
Press N during startup Attempt to start up from a compatible network server (NetBoot).
Press T during startup Start up in FireWire Target Disk mode.
Press Shift during startup Start up in Safe Boot mode and temporarily disable login items.
Press Command-V during startup Start up in Verbose mode.
Press Command-S during startup Start up in Single-User mode.
Press Option-N during startup Start from a NetBoot server using the default boot image.

This was pulled from this apple website: