Skip to content
accelerando

Monthly Archives: August 2007

Sad things in germany

31-Aug-07

Haltet die Fresse! Glotzt mehr TV!

“Shut up and watch tv”: Martin Schmitt ends his witty blog as a result §202c StGB that forbids “Hackertools” like wireshark, nmap and co as well as instructions for penetration tests for example.

German Heise News.

The post is well and sad written and i can totally understand him, although i really liked this blog. :(

Don’t make that sad smilie cry even more

22-Aug-07

Escaping single quotes in ruby is the same mess as in java:

puts ":'(".gsub('\'', '\\\\\'')

I needed this to make the smilies after my comment box (here) clickable.

Shortly after that, i found escape_javascript, maybe it still comes in handy.

Comment notification

18-Aug-07

I use Subscribe to Comments on all my wordpress blogs, even before Tante had askes so nicely for it…

The plugin broke with WP 2.2, if you try to change you subscriptions, you ended up with the following message: “You may not access this page without a valid key.”.

So please all your WordPress users who updated to 2.2 (you really should do this!), get the latest version of Subscribe to Comments here for satisfied readers and subscribers ;)

Find all files that changed in the last 24hours

16-Aug-07

On a unix box just type in the directory you want to search for changed files:

find . -mtime -1 -print

Remote hdd cloning

16-Aug-07

Some time ago i managed to clone the drive of my server over ssh. Although transmission was compressed with bzip2 it took awful long and i didn’t have a clue how long i would finally take.

Today i stumpled upon this post. The author uses a tool called pv: pv – monitor the progress of data through a pipe.

To clone a disk into a file over ssh:

dd if=/dev/hda bs=16065b | pv | gzip -c | ssh user@host "cat > clone.gz"

To restore the clone:

ssh user@host "gzip -d -c clone.gz" | pv | dd of=/dev/hda bs=16065b

Nevertheless, i mostly use

ssh foo@bar "dd if=/dev/sda | bzip2" > clone.bzip2

so i need not have my ssh private key laying around some server.

Close
E-mail It