Skip to content

Instantly share code, notes, and snippets.

@boredzo
Created January 29, 2013 06:57
Show Gist options
  • Select an option

  • Save boredzo/4662356 to your computer and use it in GitHub Desktop.

Select an option

Save boredzo/4662356 to your computer and use it in GitHub Desktop.
Program to create deletion armor. IMPORTANT: Create, set as invisible, and cd into ~/#Deletion-armor.noindex before you run this. (# makes it sort high; .noindex makes Spotlight skip it.)
#!/usr/bin/env python
import os
assert os.getcwd() != os.getenv('HOME'), "You REALLY don't want to run this in your Home directory; consider running it within ~/#Deletion-armor.noindex instead (which you should set invisible so Finder doesn't try to examine it)"
for x in xrange(100000000):
f = open('Armor shard #' + str(x), 'w')
f.close()
del f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment