Amazing what you can do with oneliners

Their hard to debug, but funny to write.

This Ruby oneliner will extract the files in a zip archive

Zip::ZipFile::open("test.zip") {|zf| zf.each {|f| zf.extract(f, "/tmp/#{f.name}") }}

In this case, the files will just be extracted to your tmp directory

the dojo

twits

RSS Fork me…

  • An error has occurred; the feed is probably down. Try again later.
Follow

Get every new post delivered to your Inbox.