Tuesday, 12 June 2007

Recover Deleted Files

Many years ago I accidentally deleted a lot of files on a Linux ext2 partition. At the time, there were no decent data recovery tools for ext2 filesystems available. So, I put the drive in an electrostatic protective bag and stored it in a safe place. Fast forward to the present, there is still nothing for Linux as good as Ontrack's EasyRecovery Professional. However, there is The Sleuth Kit, an amazing set of file and volume system forensic analysis tools. It is the best tool for data recovery because you can non-intrusively access deleted files.

Surprisingly, there is no batch recover for deleted data.

So, I wrote recoup.pl, a perl script to recursively extract every deleted file.

Point it at a directory and it will automatically reconstruct as much as Sleuth Kit's fls and icat commands will let it.

Monday, 4 June 2007

Customize any and every webpage!

First get the GreaseMonkey Firefox extension.
Then write your own script or install some of the hundreds available at UserScripts.org.

Here are my recommendations:
User Scripts Search Sorting - With Install Rate improves the sorting on userscripts.org making it easier to find scripts. Use it to toggle between 'install rate' or 'installs'

After a secure login gmail defaults to HTTP so I got tired of manually switching it back into HTTPS. Secure-em-All automagically secures many webmail sites.

Sourceforge Direct Links saves time with direct download links from sourceforge projects. But save yourself some time and do not install either cleaner layout scripts because they no longer work.

Download Video allows you to download videos from youtube, gvideo, and myspace.

Textarea Backup w/Restore Buttons automatically backs up the text you type so you'll never accidentally loose another email. It has a restore button so it's better than the script that automatically restores text [when you do not want it to].

You'll find tons more for the sites you use and dont worry you can turn greasemonkey or any script on/off with a click of a button.

View the source before you install each script just to verify it doesnt do anything sketch and I hope you find it as useful as I do.