Skip to content

Instantly share code, notes, and snippets.

@samsouder
Created March 31, 2009 20:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save samsouder/88381 to your computer and use it in GitHub Desktop.
Save samsouder/88381 to your computer and use it in GitHub Desktop.
Output a gzip-encoded stream for any standard input given.
#!/usr/bin/env bash
php -r "echo gzencode(file_get_contents('php://stdin'));"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment