Skip to content

Instantly share code, notes, and snippets.

@aldavud
aldavud / keybase.md
Created October 28, 2014 23:28
keybase.io

Keybase proof

I hereby claim:

  • I am aldavud on github.
  • I am aldavud (https://keybase.io/aldavud) on keybase.
  • I have a public key whose fingerprint is 460F 8CCB DE56 BCB0 D018 0ACA 2C8B CE41 2154 0338

To claim this, I am signing this object:

def zap(dev)
# try to wipe out any GPT partition table backups.
# sgdisk isn't too thorough.
lba_size = 4096
size = 33 * lba_size
begin
dev_file = open(dev, 'wb'):
dev_file.seek(-size, IO::SEEK_END)
dev_file.write("\0" * size)
ensure