Posts Tagged ‘compootin’’

Ugly shell scripting

Recently I developed a strange wear pattern on my car’s front passenger side tire (that’s front rightside tire for those driving on the “wrong” side”) – the outer surface of the tire was warn almost completely bald while the inside treat was fresh and meaty. This was rather odd, as I recently had the car [...]

How to update the PRL on your HTC Touch Pro 2

What is this PRL file do? It’s the Preferred Roaming List, and it’s a database that your phone uses to pick which cell phone towers to use, and which towers to consider “Roaming” and “Home”. With modern cell phone plans in the US, we rarely have to deal with “Roaming” charges, but this term is [...]

Online image editing

If you’re using a computer that is otherwise not your own, and need a good image editor to do a little photo manipulation, I’ve always found Pixlr to be a great stopgap between that full install of pirated Adobe Photoshop! (aaaaarg!)

cphulkd locked you out of cPanel/WHM?

Here’s a handy set of instructions that you can use if you accidentally got yourself banned or locked out of the cPanel/WHM login interface due to repeated failed login attempts. This assumes that you have access to the server’s command line and root access to the MySQL server, and will clear the IP address blacklist [...]

Root Login Notification

When administering a Linux server, especially when several people share root access (with sudo, don’t give out that root password!) – it’s important to know when other root users are logged in. This is also a simple form of intrusion detection, since as soon as someone logs into the root shell an email will be [...]

Automatic Ksplice updates

Here is a little bit of shell script as a crontab that you can use to automate the checking of Ksplice kernel updates.  This particular one does the following: Activates at midnight every day, server time Checks if there are updates If there are updates available to the kernel, to automatically apply the update Once [...]

Directron.com customer appreciation day

I visited the directron.com‘s customer appreciation day, browsed around, picked up some swag and met up with some old friends! Pictures below:

Going from hex to binary in Linux

If you find yourself with a block of \x encoded hex that you need converted back to it’s binary equivalent – in my particular case, an image encoded as a hex block back to it’s native JPEG file, you can use this short code snippit: cat <input file> | sed -e ‘s/\\x//g’ -e ‘s/”//g’ -e ‘s/^[ [...]

Installing miniDLNA on Ubuntu PowerPC

I don’t think I’ve seen anyone maintaining packages for the excellent MiniDLNA media server for Debian or Ubuntu. The instructions provided here should work for both Intel and PPC builds (maybe others?) of Ubuntu and Debian Linux. Run this command to get the pre-req packages needed to build MiniDLNA: sudo apt-get install libexif-dev libjpeg62-dev libid3tag0-dev [...]

MixRiot.com Music Ripper

Here’s a lazy liner that I cooked up to rip music from MixRiot.com – simply replace the URL variable with the page that contains the music and it will dump the music using wget with an MP3 extension! url=”http://www.mixriot.com/category/essential-mix/browse-show/broadcasts/bbc/radio-1/2009″; IFS=$’\n’;title=();id=();for i in `GET $url | grep FlashVars | egrep -o “mixriot.com%2Faudio%2Fplay%2F[0-9]{4}” | cut -b 30-`; [...]