Skip to content

Instantly share code, notes, and snippets.

@KPLauritzen
Created February 14, 2017 11:21
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 KPLauritzen/710305edb3ab2eb35237f9c82e6aae24 to your computer and use it in GitHub Desktop.
Save KPLauritzen/710305edb3ab2eb35237f9c82e6aae24 to your computer and use it in GitHub Desktop.
Kill random process with python
from subprocess import call
import random
while True:
try:
call(["kill", "-9", random.randint(0, 9999)]
except:
print("ayy lmao")
sleep(5)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment