% rebase('base.html')
<command> | curl -F "upload=<-" {{url}}/post && echo
curl -F "upload=<filename.ext" {{url}}/post && echo
curl -F "upload=<filename.ext" -F "syntax=python" \\ {{url}}/post && echo
curl -F "upload=<filename.ext" -F "password=humptydumpty" \\ {{url}}/post && echo
curl -F "upload=<filename.ext" \\ -F "password=$( echo -n 'bootcat' | sha1sum | cut -c 1-40 )" \\ -F "is_encrypted=yes" {{url}}/post && echo
curl {{url}}/raw/6
curl -d "password=foo" {{url}}/raw/7
curl -d "is_encrypted=yes" \\ -d "password=$( echo -n 'bootcat' | sha1sum | cut -c 1-40 )" \\ {{url}}/raw/7
There are a couple of helper functions in the link below for pasting and getting pastes. Import it from your ~/.bash_profile and you should be able to use these functions. Creating a ~/.pasttlerc helps you type less too.
LinkAn example of a ~/.pasttlerc is here:
#!/bin/bash checkupdate="no" apiurl="https://blegh.net" verbose=yes