Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am jansichermann on github.
  • I am jansichermann (https://keybase.io/jansichermann) on keybase.
  • I have a public key whose fingerprint is 4A2B A9A0 8A74 6B89 9F8E 974F E06C 8D9D A971 9157

To claim this, I am signing this object:

@jansichermann
jansichermann / rename.py
Created December 16, 2014 02:02
Renames files in a folder after their creation time + md5 hash
#!/usr/bin/env python
import os
import time
import hashlib
def hashforfile(f):
md5 = hashlib.md5();
while True:
data = f.read(1024 * 1024)