Skip to content

Instantly share code, notes, and snippets.

@mutatrum
Created January 21, 2021 16:15
Show Gist options
  • Save mutatrum/9b2eecfe95dddeea2a778d99aa9c20f4 to your computer and use it in GitHub Desktop.
Save mutatrum/9b2eecfe95dddeea2a778d99aa9c20f4 to your computer and use it in GitHub Desktop.
Get bitcoin.pdf from the bitcoin blockchain in one line
bitcoin-cli getrawtransaction 54e48e5f5c656b26c3bca14a8c95aa583d07ebe84dde3b7dd4a78f4e4186e713 | sed 's/0100000000000000/\n/g' | tail -n +2 | cut -c7-136,139-268,271-400 | tr -d '\n' | cut -c17-368600 | xxd -p -r > bitcoin.pdf
@vindard
Copy link

vindard commented Jan 22, 2021

For fun, this is the bash history on how I got to the oneliner:

Love this! 😂

@mutatrum
Copy link
Author

mutatrum commented Jan 22, 2021

For fun, this is the bash history on how I got to the oneliner:

Love this!

Proof of work matters. 😉

@Djmondoent
Copy link

goat!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment