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.
Share This
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.
Share This
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
Share This
On a unix box just type in the directory you want to search for changed files:
Share This
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.
Share This