Created
December 29, 2014 23:03
-
-
Save wolfgangmeyers/219d176493442581764f to your computer and use it in GitHub Desktop.
Use python to make sure that iTunes is never, ever allowed to run.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import psutil | |
import time | |
times = 0 | |
while True: | |
time.sleep(1) | |
lst = psutil.get_process_list() | |
for p in lst: | |
if p.name == "iTunes": | |
p.terminate() | |
times = times + 1 | |
print "DIE iTUNES!!! (killed for the " + str(times) + "th time)" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment