Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@aorfanos
Created August 19, 2019 00:30
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 aorfanos/afb762682d1d9b2c86e389029ca128b7 to your computer and use it in GitHub Desktop.
Save aorfanos/afb762682d1d9b2c86e389029ca128b7 to your computer and use it in GitHub Desktop.
#A small gist to upload files from CLI, using the file.io API
#Usage: fupload.sh <file> <expiry>
#more info: https://www.file.io/
curl -sF "file=@$1" https://file.io/?expires=$2 | jq -r '.link'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment