Python 3 syntax on GNU/Linux*:
sys.exit(1)
Exit out of script from anywhere
datetime.datetime.now().strftime("%Y%m%d%I")
Timestamp with year, month, day and 12 hour format
sorted(list,reverse=True)
Sort list in reverse
sorted(list,key=lambda x:list[x],reverse=True):
Sort by key in reverse
*Primarily I run on GNU/Linux as a standard. Much of my stuff fuses the OS and the code, so even BSD-ish is a bit off. Strangely, the world seems to be moving more and more over to this.