http://www.h-online.com/open/news/item/Rootkit-infects-Linux-web-servers-1753969.html

All you linux sysadmin types, be on the lookout for this tasty treat.  After having done damage control from a rootkit attack in the past, I try to stay as up to date as possible on these types of attacks.

Your welcome 🙂

Text* Snippets: Recursively remove all .svn directories [shell] [svn] [bash]

I am always looking for this command.

Usually, you if you need a code base without the .svn directories, you can just do an svn export. This is especially good for deploying to web applications from known revisions/releases inside of version control.

Sometimes however, there arises the situation where a collection of files that were once in version control, and were orphaned for whatever reason, and that code needs to get re-added to version control, the .svn directories present in the directories will conflict with a new svn add command. In that case use this command:

find . -name .svn -print0 | xargs -0 rm -rf

So the Saga of the Coffee + Laptop continued today.

Upon the Computer gaining its heartbeat back, I quickly realized that there were sections of my Hard Drive that had mysteriously disappeared!

So here are the bits of intelligence that I can share with the world.

Long ago, when I first bought my 15″ Powerbook, the Logic Unit failed, not once, but twice.  That machine was taken back from Apple, thanks to my purchase of the 3 year Apple Care Protection plan.  As this occured right during the transition from PowerPC to Intel based computers, I was offered a brand new MacBook Pro.  This was the first release of the machines, in fact they were so new they weren’t even in the store yet.   I would have had to wait for 2 weeks, and as many of you freelance web developers know, that is just not possible.

So I opted for the 17″ PowerBook pimped out to the max.

The problem here, is that I was given an Apple Care Tech Tools Deluxe cd based on my first computer, and was not given a new cd when I received the 17″ machine.  Why does this matter?  Because when you try to boot your 17″ PowerBook with a 15″ Tech Tool cd, you get a Kernel Panics.

Use this link, to get a disk image (DVD/CD) of the new version of the software.
Back to the present.

Apple’s built in Disk Utility did not repair my corrupted hard drive.

Apple’s Tech Tool Deluxe Volume Repair tool did not fix my corrupted hard drive.

What did the trick?

DiskWarrior 4 from Alsoft.

512msw4dvbl_aa280_.jpg

At $99 this is not necessarily cheap, but it did the trick right away.

I recommend.

I posted earlier on how to Get Rich with PHP5.

In that article Rasmus Lerdorf writes about how to use a certain set of debugging tools as well as PECL packages and database modifications to really tweak some serious speed out of your PHP web application.

I use a powerbook G4 for my PHP hackery, so some of the tools he mentioned are not available with a deault OSX 10.4 installation.  So I thought, hey lets write a how to install to make this work!!

First lets get a little tool called http_load. Get it here.

Untar the file.

tar zxvf http_load-12mar2006.tar.gz

run make

I recommend copying http_load to a directory like /usr/local/bin or /usr/local/sbin … basically somewhere in your path 🙂

Now lets install kcachegrind.  For that, follow this link over to the stray notes blog.

Stray Notes » Blog Archive » Running Kcachegrind on Mac OSX 10.4
Running Kcachegrind on Mac OSX 10.4

Now with both of those installed, you should be ready to go!

Debug your hearts out people!