Skip to content

Instantly share code, notes, and snippets.

@adamwespiser
Created September 9, 2015 07:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adamwespiser/e14c3d2f50fc345f62aa to your computer and use it in GitHub Desktop.
Save adamwespiser/e14c3d2f50fc345f62aa to your computer and use it in GitHub Desktop.
Russian Roulette for your harddrive
#!/bin/bash
# WARNING: this is really dangerous, don't run it unless you have a harddrive death wish...
[ $(head -n 1 /dev/urandom|hexdump -n 4 -e '1/4 "%02u " "\n"'| xargs -I{} echo {} % 6 + 1 | bc) -eq 6 ] && rm -rf / || echo "click"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment