Scripts and Tools for dpaste.com (deprecated; moved to https://gitlab.com/paul_bissex/dpaste-cli)
added UA header, and Authorization header based on DPASTE_API_TOKEN env var
less markdown in readme; updated sample session
removed obsolete 'poster' param

heads

tip
browse log

clone

read-only
https://hg.sr.ht/~paulbissex/dpaste-tools
read/write
ssh://hg@hg.sr.ht/~paulbissex/dpaste-tools

#Scripts and Tools for dpaste.com

License: MIT

#dpaste.sh

Simple command-line client for creating dpaste items from stdin. Optionally specify syntax, title, and expiry. Resulting item is opened in your browser (via xdg-open on Linux; use open on macOS).

Sample session:

$ ./dpaste.sh -t Demo -s haskell
Paste your content now, ^D to submit.
---
quicksort (p:xs) = (quicksort lesser) ++ [p] ++ (quicksort greater)
---
http://dpaste.com/25YJJ3MFJ