I ran across a zlib stream, which is like a gzip file, but without the gzip header. I wanted to decompress it and piping through gunzip doesn’t work because of the missing header. Python to the rescue!
| python -c ‘import sys,zlib;print zlib.decompress(sys.stdin.read())’
That was easy.