THINK I'M GOING TO BE LATE TO WORK TODAY..

read more
ANOTHER FUNNY

read more
PANDEMIC AND SAMUEL ADAMS

Just got our copy of Pandemic in the mail, couldn’t pass up on this great deal. The wife has been really excited about this one, opened up the box and poured a beer. We just glanced over the rule book until the wife’s finals are over, but excited to see if we can save humanity, or die horribly! If you’ve not seen game play of Pandemic , check out this great video by TableTop :

read more
BARREL COLLECTION

Wife found a nice looking box set of Samuel Adams Barrel Collection.

read more
PREDICTABLE RANDOM NUMBERS

Well that title is odd, right? What I’m wanting to do here is demonstrate one way to generate random numbers using a seed . The requirement here is we need to test a number at any given time, this will be useful if we intend to use the process as a token of sort, think RSA SecureID . Anyways I wanted to make a implementation that used Python and didn’t cost me hundreds of dollars.

read more
LUCKY BUDDHA BEER

A new unique beer we found at the local convenience store.

read more
PYTHON CHROOT AND EXIT CHROOT

I know this has been written a few time online, but the last time I needed to read up on it, it took a little long to find the answer. What I wanted to do was to chroot in to a new root, then exit that chroot via python . Below we have my current working directory that is /root , take a look at what we have in the directory:

read more
JOKE OF THE DAY

read more
GET INTERFACE GOLANG PART 2

Wanted to share a few updates and tweaks to the original Get Interface name by hardware address code. The below is broken up in to functions to help with code re-useability . If also prints all interface names and hardware address when no command line argument are present. package main import ( "net" "fmt" "os" "strings" ) // Use the net library to return all Interfaces // and capture any errors.

read more
GET INTERFACE NAME BY HARDWARE ADDRESS

At work we have had a need for getting a interface name by mac address and are in a environment that doesn’t have many common Linux tools (nor would I want to regex it as the environment will constantly be changing). My first solution was to to write a C program (about 125 lines) which used the linux/rtnetlink library. However, now that I’m looking at Golang I figured why not rewrite this (which is only about 40 lines).

read more