{% extends "dpaste/base.html" %} {% load i18n %} {% load url from future %} {% block title %}About dpaste.de{% endblock %} {% block headline %}About dpaste.de{% endblock %} {% block dpaste_nav_about %}active{% endblock %} {% block page %}
dpaste is open source. You can find the source, contribute to it and leave ideas on Github: github.com/bartTC/dpaste
- #!/usr/bin/env python
- import urllib
- import urllib2
- import sys
- def paste_code():
- request = urllib2.Request(
- 'https://dpaste.de/api/',
- urllib.urlencode([('content', sys.stdin.read())]),
- )
- response = urllib2.urlopen(request)
- # Strip surrounding quotes (NB: response has no trailing newline)
- print response.read()[1:-1]
- if __name__ == '__main__':
- paste_code()
Save this script in /usr/local/bin/dpaste
and chmod +x ..filepath
.
Usage: cat foo.txt | dpaste
Or you could use curl
:
alias dpaste="curl -F 'content=<-' https://dpaste.de/api/"
{% blocktrans %}There are {{ total }} snippets in the database. The most popular languages are:{% endblocktrans %}
{{ s.lexer|upper }} | {{ s.count }} |
---|
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 auf 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: http://dpaste.de/SiZrT