paste.kuwaitnet.support is powered by dpaste, which is open source. You can find the source, contribute to it and leave ideas on Github: github.com/bartTC/dpaste
dpaste provides a simple API documented in detail on this page. For a quick start here is a code example (Python 2.x):
Save this script in /usr/local/bin/dpaste
and give it the executable bit: chmod +x /usr/local/bin/dpaste
.
Usage: cat foo.txt | dpaste
An alternative would be to just use curl
:
alias dpaste="curl -F 'content=<-' https://paste.kuwaitnet.support/api/"
There are 1770 snippets in the database. The most popular languages are:
PYTHON | 727 |
---|---|
PLAIN | 541 |
TEXT | 399 |
BASH | 63 |
CPP | 14 |
If you created a snippet with the API you can't delete it on the webpage since it's not in your history. You can delete a snippet here. Actually you can delete any snippet of anybody, as long as you know the short code.
If you deleted a snippet because of legal issues, please let me know that, I want to keep track of such things and try to avoid in future.
Type the 4 letter code of your snippet in the field and submit. Like this yellow one here: https://paste.kuwaitnet.support/SiZrT