Use pastebin from the commandline.
pastebin [-ch] [-f filename] -c Copy the text that is pasted to the pastebin before copying the pastebin.com url. -f Read from FILENAME instead of from STDIN -h Print this help message
I find it useful to put the script where it is readily available, like so:
$ ln -s ~/path/to/script/pastebin.sh /usr/local/bin/pastebin
/usr/local/bin/) with the appropriate paths.
-c to copy the contents of what is being posted first. This is useful if you are using a clipboard manager that can handle multiple items, such as Jumpcut.
OS X Service
automator/, there is an OS X Automator workflow. This can aid in using the pastebin script from the OS X Services menu. Put this workflow into
~/Library/Services (create that directory if it does not already exist.) Then open the Keyboard Shortcut preferences and make sure "Paste to pastebin.com" is checked under the Services item. See the
WORKFLOW.md help file under
automator/ for more instructions.