{% extends "base.html" %} {% block headline %}

About dpaste.de

{% endblock %} {% block content %}

Description follows...

API

#!/usr/bin/env python
 
import urllib
import urllib2
import sys
 
def paste_code():
    request = urllib2.Request(
        'http://dpaste.de/api/',
        urllib.urlencode([('content', ''.join(sys.stdin.readlines()))]),
    )
    response = urllib2.urlopen(request)
    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

{% endblock %} {% block sidebar %}

Imprint

Address

Martin Mahner
Lauterbacher Str. 4
DE-18581 Putbus
Germany

Jabber/E-Mail:

martin@mahner.org

Phone:

+49 38301 890(770+8)1

1 Yes, that's math!

{% endblock %}