Skip to content

Instantly share code, notes, and snippets.

@glslang
Last active May 9, 2022 06:07
Show Gist options
  • Save glslang/2758396bd80ecee56ca403787e865067 to your computer and use it in GitHub Desktop.
Save glslang/2758396bd80ecee56ca403787e865067 to your computer and use it in GitHub Desktop.
zlib decompress from stdin
python -c "import zlib,sys;sys.stdout.write(zlib.decompress(sys.stdin.read()))" < 480569507a37df7731115a5888f91b145c189d
@sakurai-youhei
Copy link

Python 3 version:

python -c "import zlib,sys;sys.stdout.buffer.write(zlib.decompress(sys.stdin.buffer.read()))"

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