Skip to content

Instantly share code, notes, and snippets.

@Eriner
Created January 23, 2016 03:28
Show Gist options
  • Save Eriner/84cfa37510ccc8b255a2 to your computer and use it in GitHub Desktop.
Save Eriner/84cfa37510ccc8b255a2 to your computer and use it in GitHub Desktop.
#!/usr/bin/env zsh
# xxd ignores the first byte for some reason, so pad it
hex="66 $(<${1})"
print ${hex} | xxd -r
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment