Skip to content

Instantly share code, notes, and snippets.


Justin R. Andrusk jandrusk

View GitHub Profile

Keybase proof

I hereby claim:

  • I am jandrusk on github.
  • I am jandrusk ( on keybase.
  • I have a public key whose fingerprint is 0B44 B8CD 543D C529 7B55 6475 873A 425D 7A58 7FA1

To claim this, I am signing this object:

View gist:6c1085d007e77c84cd5b
# Name:
# Author: Justin Andrusk
# Date: 08/23/12
# Purpose: Walk a directory tree recursivly in order to computer SHA512 checksums.
import sys, os
global filectr
filectr = 0
flist = []
def mylister(currdir):
View gist:671f4dce73d0252662f1
def GetSHA512(filename):
# Function to return SHA512 hash of given file.
import hashlib
hasher = hashlib.sha512()
with open(filename, 'rb') as afile:
buf =
while len(buf) > 0:
buf =