Securely deleting files

I needed to switch cellphones, and given that my cell’s SD card had sensitive data, just formatting the card wasn’t sufficient — it’s trivial to recover files from high-level-formatted FAT file system.

I present to you the world’s most dangerous (unix) command:

 find /path/to/mounted/SDcard -type f -print0 | xargs -0 shred -z -u

(shred is part of the coreutils package, so it should be installed already)

Faster MySQL dumps and loads with –tab and –use-threads

By default, mysqldump writes a series of sql DDL and inserts to standard out, that you can then pipe to another database server to recreate a given database.

The problem is that this is all serial, and if you’re having to do this task regularly (because you’re sharing databases between different development environments, for example), it’d be nice if this could be sped up, and it certainly can with the current 5.1.x versions of MySQL.

Continue reading