==================================( Welcome )===================================
This is a console friendly pastebin that allows binary files.
No fancy website, no intermediate pages to click through, and no CAPTCHAs.
Submit a file using POST, or PUT, and get a URL back.
Access the URL to get your file, or share it with others.
The URL generator uses readable English word combinations that are easy to
remember, in case you happen to be running between terminals.
================================================================================
==================================( Settings )==================================
Maximum file size: 120M
Files expire after: 7 days
================================================================================
==================================( Examples )==================================
Upload text using curl:
$ curl -s --data 'Hello World!' 'http://paste.sensio.no/'
Upload text using wget:
$ wget --quiet -O- --post-data='Hello World!' 'http://paste.sensio.no/'
Upload a file using curl:
$ curl --upload-file '/tmp/file' 'http://paste.sensio.no/'
$ curl --upload-file - 'http://paste.sensio.no/' <'/tmp/file'
$ curl -s --data-binary @'/tmp/file' 'http://paste.sensio.no/'
Upload a file using wget:
$ wget --quiet -O- --post-file='/tmp/file' 'http://paste.sensio.no/'
Upload using nc:
$ echo 'Hello World!' | nc paste.sensio.no 9999
$ dmesg | nc paste.sensio.no 9999
$ nc paste.sensio.no 9999 <'/tmp/file'
Upload the output of a command or script using curl:
$ ls / | curl -s --data-binary @- 'http://paste.sensio.no/'
$ ./bin/hello_world | curl --upload-file - 'http://paste.sensio.no/'
$ ./bin/hello_world | curl -s --data-binary @- 'http://paste.sensio.no/'
Get a UUID paste name that's pretty much impossible to guess:
$ echo 'Hello World!' | curl -s -H "x-uuid;" --upload-file - 'http://paste.sensio.no/'
http://paste.sensio.no/adcf5eaa-dead-beef-cafe-13371bff862e
================================================================================
===============================( Bash Functions )===============================
You can easily upload and download files and text using Bash functions.
Put the following lines in, for instance, ~/.bashrc for your convenience:
pastebin()
{
local url='http://paste.sensio.no/'
if (( $# )); then
local file
for file; do
curl -s \
--data-binary @"$file" \
--header "X-FileName: ${file##*/}" \
"$url"
done
else
curl -s --data-binary @- "$url"
fi
}
pasteget()
{
local url='http://paste.sensio.no/'
if (( $# )); then
local arg
for arg; do
curl -s "${url}${arg##*/}"
done
else
local arg
while read -r arg; do
curl -s "${url}${arg##*/}"
done
fi
}
Usage:
$ pastebin ./my/file.bin ./my/file2.bin
http://paste.sensio.no/ExampleOne
http://paste.sensio.no/ExampleTwo
$ { printf '%s\n' "-- MY DMESG --"; dmesg; } | pastebin
http://paste.sensio.no/ExampleThree
$ pasteget http://paste.sensio.no/ExampleThree
-- MY DMESG --
[...]
$ pasteget ExampleThree
-- MY DMESG --
[...]
Insane usage:
$ echo "This is a test." | pastebin | pasteget
This is a test.
================================================================================
==============================( Terms of Service )==============================
This is written in plain English, so don't pretend you didn't understand it!
Don't break the law, don't post illegal shit, don't be an asshole.
You know this, we know you know this, and you know we know you know.
By using this service, you consent to these terms.
================================================================================
=========================( Obligatory XKCD Reference )==========================
This service exists because sending files to people on the Internet should not
be a daunting task of trial, error, and porn popups. XKCD explains it best:
================================================================================