I made a Python script the other day to upload files from the command line to Pastebin. Check the attachements to download.