Skip to content

Instantly share code, notes, and snippets.

@prokyon
Created December 4, 2024 17:54
Show Gist options
  • Select an option

  • Save prokyon/fa6ebac3189a859aab162a86227633d2 to your computer and use it in GitHub Desktop.

Select an option

Save prokyon/fa6ebac3189a859aab162a86227633d2 to your computer and use it in GitHub Desktop.
#!/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
@prokyon
Copy link
Author

prokyon commented Dec 4, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment