Skip to content

Instantly share code, notes, and snippets.

@wompy
wompy / download.py
Created April 6, 2018 16:14 — forked from mjohnsullivan/download.py
Python HTTP download with resume and optional MD5 hash checking
import os.path
import urllib2
import shutil
import hashlib
import logging
def validate_file(file_path, hash):
"""
Validates a file against an MD5 hash value
@wompy
wompy / keybase.md
Created May 14, 2015 20:16
keybase.md

Keybase proof

I hereby claim:

  • I am wompy on github.
  • I am wompy (https://keybase.io/wompy) on keybase.
  • I have a public key whose fingerprint is 1DFA 5D5B 7F6D 78C5 9471 C263 7664 F078 CFA8 BCED

To claim this, I am signing this object: