Snippets

Python

print line numbers in a Python script:

import sys
frame = sys._getframe()
print frame.f_lineno

Python - date from Unix ...

Feb 11, 2013