Skip to content

Instantly share code, notes, and snippets.

View jandrusk's full-sized avatar

Justin R. Andrusk jandrusk

View GitHub Profile
@jandrusk
jandrusk / gist:6c1085d007e77c84cd5b
Last active August 29, 2015 14:22
compute_hashes.py
# Name: compute_hashes.py
# 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):
@jandrusk
jandrusk / gist:671f4dce73d0252662f1
Last active August 29, 2015 14:22
get_hashes.py
def GetSHA512(filename):
# Function to return SHA512 hash of given file.
import hashlib
BLOCKSIZE = 65536
hasher = hashlib.sha512()
with open(filename, 'rb') as afile:
buf = afile.read(BLOCKSIZE)
while len(buf) > 0:
hasher.update(buf)
buf = afile.read(BLOCKSIZE)
@jandrusk
jandrusk / keybase.md
Created September 8, 2016 20:04
keybase.md

Keybase proof

I hereby claim:

  • I am jandrusk on github.
  • I am jandrusk (https://keybase.io/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: