Skip to content

Instantly share code, notes, and snippets.

@artsi0m
Created August 19, 2021 23:48
Show Gist options
  • Select an option

  • Save artsi0m/bc41c3aadef61d22a12760c683d8311e to your computer and use it in GitHub Desktop.

Select an option

Save artsi0m/bc41c3aadef61d22a12760c683d8311e to your computer and use it in GitHub Desktop.
My custom file uploader. Suggestions would be taken in ease.
#!/usr/bin/env sh
# File uploader
FILENAME=$1
transfer_holder=https://transfer.sh
transfer_upload () {
curl --upload-file "$1" "$transfer_holder"/"$1"
}
transfer_upload "$FILENAME" | xclip -selection clipboard
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment