{{define "head-append"}} {{end}} {{define "body"}}

#RU paste-dump

Based on https://0x0.st/, this site allows you to easily upload files and shorten URLs using the command line.

Web-API

Command line API

    # Upload a file
    curl -F'file=@yourfile.png' {{.Host}}

    # Shorten a URL
    curl -F'shorten=http://example.com/some/long/url' {{.Host}}

    # The first line of the result will contain the shortened URL.
    #
    # In the other lines, you will find other information, including
    # information on how to delete the shortened object.

    # To upload a file and only extract the shortened URL (i.e. throw away the rest)
    curl -F'file=@yourfile.png' {{.Host}} | head -n 1
{{end}}