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 moreWanted 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 moreAt 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 moreSo the other day two of my book arrived in the mail. Pathfinder Advanced Player’s Guide An Introduction to Programming in Go The Go Programming book was so cheap I couldn’t say no (only $9.00), and the Pathfinder Players Guide offered new classes which my kids wanted to check out. So here is the question, does this make me a Nerd or a Geek ?
read moreWas able to pull out a victory last night against my two boys in Zombie Dice with some help from a little Homebrew. If you don’t know what Zombie Dice is, you should have a look at the Tabletop Video. It is a very inexpensive travel sized gamed, which is easy for younger players, and very exciting!
read moreDid some miniature painting over the weekend with my eldest son. I really like the kobold army with leader.
read more