Software Engineer

Jason Hancock

last update:

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 sftp.example.com 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 exampleUser@sftp.example.com 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 nfs.example.com: 192.168.0.5:/nfs/path1 192.168.0.5:/nfs/some/other/path 192.168.0.6:/nfs/path1 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.

horchata

Found a decent recipe for horchata: 2 cups of milk 1 cup uncooked white long-grain rice 5 cups water 1⁄2 tablespoon vanilla extract 1 tablespoon ground cinnamon 2⁄3 cup sugar Blend the water and rice in a blender for about a minute. Let the water and rice mixture stand at room temperature for 45 minutes to an hour. Strain out the rice from the mixture so you are left with the rice water.

Puppet 25.4 and 25.5 leaks MySQL connections when using stored configurations and using MySQL as the database backend. This is a well known issue and appears to have been recently fixed for an upcoming release. I want to implement stored configurations, but I can’t have leaking MySQL connections in production, I don’t want to wait until the fix gets released, nor do I want to integrate the patch and build my own RPM.

one month old

Dexter is one month old today. It has been an amazing experience. The baby announcements will be in the mail soon….expect them in your mailbox sometime next week.