Skip to content

Instantly share code, notes, and snippets.

@zeisler
Created March 1, 2015 21:05
Show Gist options
  • Save zeisler/ed4784f95b8ec4061392 to your computer and use it in GitHub Desktop.
Save zeisler/ed4784f95b8ec4061392 to your computer and use it in GitHub Desktop.
How to Delete your hard drive in Ruby
$ sudo irb
irb(main):002:0> require 'fileutils'
=> true
irb(main):003:0> FileUtils.rm_rf("#{nil}/")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment