Created
August 19, 2021 23:48
-
-
Save artsi0m/bc41c3aadef61d22a12760c683d8311e to your computer and use it in GitHub Desktop.
My custom file uploader. Suggestions would be taken in ease.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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