Category Archives: Unix

I needed a catagory for stuff that was general unix, and not nessessarily linux specific

Fix/Tricks for plugin auto-update on Wordpress 2.5

One of the neat features of Wordpress 2.5 is the click to install plugin upgrades, assuming the plugin is registered in the Wordpress Plugin Directory. If certain conditions are correct on the server it can do it in place, otherwise it tries to do it via FTP.
To make it so wordpress could upgrade them [...]

Place shifting action

I’ve whipped up a quick ruby script that wraps ffmpeg to turn anything ffmpeg understand into something suitable for watching on an iPhone. It’ll work for a normal iPod too, probably, but I’ve got it fully keyed to the resolution of the iPhone.
Download it and check it out.
(Fear my non-twitter content!)

Preach on (about SSH,) Brother Dave

Dave Dribin wrote up a nice post about people breaking some of the first ’s’ in ssh and how that annoys him and ways to get around it. Its really a good read and really hammers home the point of using ssh-agent, which Dave initially exposed me to. Being able to ssh around [...]

CMake so far

I’ve been investigating cmake at work as a better build system for our cross platform C based projects. I’m thinking about starting up a third one, so now is the prefect time to really go after this as for one project we have a build system per platform and on the other we have [...]

zsh word splitting

Awhile ago, after I showed him how I indexed my mail with mairix, MARK gave me a zsh function to wrap a call to mairix and then invoke mutt.  For some reason, when using the function, I was never able to pass multiple search terms to mairix and have it return results.  It always failed.
It [...]

color grep

Every once in awhile I come across a feature of a piece of software, generally, a small utility that I hadn’t known about and that shows immediate value.  Today Jon showed me the –color flag for GNU grep.  It uses color to highlight the term you were searching for in the line returned.  For example:

# grep [...]

Concatenate PDFs

I often like to print out many web pages to read on the train.  To not waste paper I like to print them 2 up and double sided.  If the printer supports it, I also like to staple the pages.  On Linux, I use Firefox to print to postscript, then used a2ps to have [...]

Things we have relearned today

Regular backups are your friend. Also, if you can’t normally back something up (i.e. data in open ldap’s backend) do a regular dump and back that up.
rsync/unison/scp data off your co-loc to a local machine, and back it up again, just for good measure.
The new drive is the drive most likely to die first.
Losing [...]

LEAP

Jan 1 18:00:00 lithium kernel: Clock: inserting leap second 23:59:60 UTC

SSH files that can bite you in the ass

Today, I learned about the existence of ~/.ssh/rc and some of its side effects.
Today, Dave couldn’t figure out why he was unable to launch an X application from a machine with both use. We both started looking into it, and it looked like xauth wasn’t being called to update the .Xauthority file. We [...]