pb is a simple command to save something to pastebin from your terminal
using pastebinit for the most of the work
https://github.com/skorokithakis/pastebinit
Pastebinit
clone this repository ,
chmod pb
and then move it to your /bin folder very easy
pb "my fantastic new note"