Skip to content

Instantly share code, notes, and snippets.

@sneak
Last active August 29, 2015 14:22
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 sneak/347c869f4dad965222cf to your computer and use it in GitHub Desktop.
Save sneak/347c869f4dad965222cf to your computer and use it in GitHub Desktop.
wipe disk
/usr/local/Cellar/openssl/1.0.2a-1/bin/openssl enc -aes-128-ctr \
-pass pass:"$(dd if=/dev/urandom bs=128 count=1 2>/dev/null | base64)" -nosalt < /dev/zero | \
pv -p -e -r --size 512G | \
dd of=/dev/rdisk2 bs=10m
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment