Archive for February, 2009
Tuesday, February 17th, 2009
The brilliance of programming...
Last year I needed to tail a file in PHP. I whipped this out.
Today I needed to do it and came up with this:
$output = `tail -n 150 /var/log/messages`;
$tail_str = "<pre>$output</pre>";
Weee... don't know what the hell I was thinking last time.
Posted in Code | No Comments »
Saturday, February 7th, 2009
I had the need to convert a PDF to a JPG today. I searched around on Google and everything was pay to play. This is pure exploitation since this sort of conversion is a one liner for most Linux systems.
I wrote my own.
File:
Depending on your connection ...
Posted in Code | No Comments »
Saturday, February 7th, 2009
Simply reads a directory of images and rotates through them randomly. What makes it cool is the script is called from and HTML IMG tag. Neato.
Download Source!
Once downloaded, open the file and change $ad_dir to the path (not url) of your images. Then upload it to your web host. Call ...
Posted in Random | No Comments »
Thursday, February 5th, 2009
I took another trip to Eagle Butte. Twelve hours there, work for two days, and then twelve hours back. This trip was a lot better than the last one. I think because the weather was 'nice'. No real snow and temps in the 4s-30s. Brisk, baby. I expected it to ...
Posted in Me | 1 Comment »