Created
December 4, 2024 17:54
-
-
Save prokyon/fa6ebac3189a859aab162a86227633d2 to your computer and use it in GitHub Desktop.
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
| #!/bin/zsh | |
| if [[ $# -gt 1 ]]; then | |
| echo "USAGE: paste [File]" | |
| return 1 | |
| fi | |
| file=$1 | |
| if [[ -z $file ]]; then | |
| file=$(find $PWD -type f | fzf) | |
| if [[ -z $file ]]; then | |
| return 1 | |
| fi | |
| elif [[ ! -r "$file" ]]; then | |
| echo "[ERROR]: Cannot read file `$file`" | |
| return 1 | |
| fi; | |
| curl -F"file=@$file" http://0x0.st |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
iInstall qup
sudo curl -o '/usr/local/bin/qup' https://gist.githubusercontent.com/prokyon/fa6ebac3189a859aab162a86227633d2/raw/1d83791f791ee72083d6dbda7e7a8cfa9396937b/qup.sh && sudo chmod +x /usr/local/bin/qup