Skip to content

Instantly share code, notes, and snippets.

@jgagner
Created December 11, 2016 18:41
Show Gist options
  • Save jgagner/26452602adfbc4714eeacf6ebaff12c6 to your computer and use it in GitHub Desktop.
Save jgagner/26452602adfbc4714eeacf6ebaff12c6 to your computer and use it in GitHub Desktop.
echo "#\!/usr/bin/env python\nhbd = lambda x:\"\".join([chr(int(''.join(c), 16)) for c in zip(x[0::2],x[1::2])])\n\nprint(hbd(\"48617070792042697274686461792c204e65726421\"))" > hbd.py
chmod +x hbd.py
./hbd.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment