Skip to content

Instantly share code, notes, and snippets.

View allyouaskfor's full-sized avatar

Ethan Priest allyouaskfor

View GitHub Profile
@jinie
jinie / read.py
Created July 5, 2011 18:25
Read binary file in python and print hex output
#!/usr/bin/python
import sys,getopt
filename = None
blocksize = 1024
opts,args = getopt.getopt(sys.argv[1:],'f:b:')
for o,a in opts:
if o == '-f':