Skip to content

Instantly share code, notes, and snippets.

@bcicen
Created June 14, 2015 00:33
Show Gist options
  • Save bcicen/b4a7d8fff4e0740dfeb2 to your computer and use it in GitHub Desktop.
Save bcicen/b4a7d8fff4e0740dfeb2 to your computer and use it in GitHub Desktop.
#!/usr/bin/env python
import signal
from random import randrange
large_dict = {}
def sig_handler(s,f):
pass
def loop():
while True:
large_dict[randrange(99999999999)] = randrange(99999999999)
signal.signal(signal.SIGTERM, sig_handler)
loop()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment