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.
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.
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.