Software Engineer

Jason Hancock

last update:

scale 9x

I attended the Southern California Linux Expo(SCALE 9x) conference for the last three days. It was awesome. I learned about some really cools stuff going on in the Linux/FOSS community, gained new insight into stuff I’m familiar with, and got some cool schwag from the vendors. I’m patiently waiting for the spam from the vendors to hit my inbox…I wonder who will be first? One of the things that I found at the conference was OpenShot - A non-linear video editor for Linux.

For a while there, all I wanted was to be a professional photographer. I attended workshops, experimented with stuff from Strobist, took some classes, shot a couple weddings, spent a fortune on gear, and thought what I wanted was to be a wedding photographer. All I saw were dollar signs thinking it was a quick way to earn some additional income on the weekends. I even had the audacity to print up some business cards.

I recently built a small squid proxy cluster. I wanted to see how the proxies were performing. Squid has a built in snmp service with all sorts of checks available. We have pnp4nagios configured to graph the performance data from any nagios checks, so all I needed to do was write a script to query the oid’s and report the results. Unfortunately, the items I wanted to report on (cacheProtoClientHttpRequests, cacheHttpInKb, cacheHttpOutKb, etc.

I’m in the process of building a web based rpm/yum repo management utility. I needed to be able to query an rpm file on disk and get the name, version, and release number of the package. I was hoping to find some sort of php interface to librpm, but my search didn’t turn up any existing code. I was hoping to avoid using a call to the exec function, but I ended up getting lazy.

feeling better

I was pretty stressed out in that last post. That day was really an inflection point…I’m feeling a lot better about stuff. Back to work….

My attitude lately hasn’t been great. I think I’m a little stressed out and it’s negatively impacting my mood and relations with my coworkers and family. All I see is doom and gloom pretty much everywhere I look. The littlest waves in my pool set me off. This isn’t good. I can’t keep going like this. Our vacation to Hawaii can’t get here soon enough, even though the vacation itself is causing me a good deal of stress because I just want everything to be perfect with regard to my photography while we’re there, yet I know already that I’m going to hate all of the images that I capture because I’m too critical of myself.

I’m going to assume that we need to sync some files to a remote server called as the user exampleUser and use a private ssh key located at /tmp/exampleUser_id_rsa First, create an ssh config file. I’m going to put it at /tmp/exampleUser_ssh_config with the following contents: IdentityFile /tmp/exampleUser_id_rsa Then, initiate your sftp command, but add the -F flag: sftp -F /tmp/exampleUser_ssh_config Why would you do this? Perhaps you don’t want to create a user called exampleUser on your system, or perhaps you don’t want to use your default ssh key for the file transfer.

I needed to extend the sudo password timeout for a group of users on our machines at work. Sebastien Wains had a great article on how to do it for individual users, but it didn’t cover groups. Here is how you would set the timeout to 60 minutes for a group of users called thegroup: Defaults:%thegroup timestamp_timeout=60

I’ve been doing a fair amount of work on my home network/servers lately. It started innocently enough with wanting some place to test puppet without breaking out development environment at work. I set puppet up on my server at home. I realized that there were several non-trivial configurations that I had applied to that server that I didn’t want to loose should I have to rebuild or migrate that server, so I started puppetizing everything.

If you use nfs, you’re probably familiar with the showmount command. It usually results in output like this: $ showmount -a All mount points on This is fine and dandy with only a couple of machines, but with 50 or 100 different machines in a complex network, using ip addresses can get a bit frustrating….if only there was a way to get the hostname instead of the IP.