Skip to content

Instantly share code, notes, and snippets.

@dkua
Created March 18, 2014 01:36
Show Gist options
  • Save dkua/9611953 to your computer and use it in GitHub Desktop.
Save dkua/9611953 to your computer and use it in GitHub Desktop.
Python script for killing processes in a funny way.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys, os
if len(sys.argv) == 3 and sys.argv[1] == "you":
regular = u"abcdefghijklmnopqrstuvqxyz"
irregular = u"ɐqɔpǝɟƃɥıɾʞʃɯuodbɹsʇnʌʍxʎz"
flipped = dict(zip(regular, irregular))
print u"\n (╯°□°)╯︵ %s" % "".join(flipped[c] for c in reversed(sys.argv[2]))
os.system("killall -9 %s" % sys.argv[2])
else:
sys.exit("Usage: fuck you [process name]")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment