Skip to content

Instantly share code, notes, and snippets.

@jigpu
Created November 6, 2017 23:19
Show Gist options
  • Select an option

  • Save jigpu/83513fd8f2ac550c1d25e407799fdbe3 to your computer and use it in GitHub Desktop.

Select an option

Save jigpu/83513fd8f2ac550c1d25e407799fdbe3 to your computer and use it in GitHub Desktop.
Convert a space-separated list of hex bytes to a binary
python3 -c 'open(1,"wb").write(bytearray.fromhex(" ".join(open(0).read().split())))'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment