Skip to content

Instantly share code, notes, and snippets.

@thomaspatzke
Last active August 29, 2015 14:20
Show Gist options
  • Save thomaspatzke/57a16a41b6687b291007 to your computer and use it in GitHub Desktop.
Save thomaspatzke/57a16a41b6687b291007 to your computer and use it in GitHub Desktop.
Hex-only dump in Python in one line
print("\n".join([" ".join(["{:02x}".format(c) for c in bin[i:i+16]]) for i in range(0, len(bin), 16)]))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment