Skip to content

Instantly share code, notes, and snippets.

@rplevy
Created October 2, 2018 01:58
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rplevy/bc732e8ba12a9d750de02ed5680c70d0 to your computer and use it in GitHub Desktop.
Save rplevy/bc732e8ba12a9d750de02ed5680c70d0 to your computer and use it in GitHub Desktop.
filebin.net command-line example
export SHA=$(git rev-parse HEAD)
tar czfv $SHA.tgz resources/public/
curl --request POST --data-binary "@${SHA}.tgz" -H "filename: "$SHA.tgz -H "bin: "$SHA https://filebin.net
export T=$(curl -s https://filebin.net/$SHA | grep \?t= | tail -n 1 | sed -e 's/^.*zip.t=//' | cut -c1-8)
curl -s https://filebin.net/$SHA/$SHA.tgz?t=$T --output $SHA.tgz
tar -xzf $SHA.tgz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment