SendToPastebin

Discuss and share scripts and script files...
Post Reply
bdeshi
Posts: 4256
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612
Contact:

SendToPastebin

Post by bdeshi »

Presenting an XYScripted interface for creating new Pastebin pastes.
SendtoPasteBin.xys
(15.28 KiB) Downloaded 235 times
[/size]
::FEATURES::
  • Creates a new paste with selected textual file content.
  • If no files were selected, an empty new paste is created.
  • Paste can be edited before submission.
  • All New Paste options provided by Pastebin are available.
::NON-FEATURES::
  • clipboard is modified. beware.
  • there may be issues with text encoding. However, in pre-submission paste editor, what-you-see-is-what-you-paste.
  • Ugly GUI. :P
  • YOU, AND *NOT* THIS SCRIPT, ARE RESPONSIBLE FOR SAFEKEEPING OF API KEYS.
Some amount of preliminary setup is required.
  • You need to log in to http://www.pastebin.com and then go to http://pastebin.com/api to obtain a dev_key.
  • Next, log in to http://pastebin.com/api/api_user_key.html to generate a usr_key.
    (This step is only required if you want to paste under your account. It's not required to paste as a guest.)
  • YOU, AND *NOT* THIS SCRIPT, ARE RESPONSIBLE FOR SAFEKEEPING OF API KEYS.
  • the script creates a perm variable $SendToPastebin_RecallKeys. If you set it's value to 'Y' and save your dev_key and user_key in permavars $SendToPastebin_devkey & $SendToPastebin_usrkey, they will be automatically used.
    • However I don't recommend it because your permavars list is not particularly secure.You can use a password manager (I suggest the excellent KeePass) to fill out the keys. In that case, the inputboxes may be disposed of entirely in favor of filling out keys right in the paste submission form (can be based on submit form's title).
::USAGE::
  • enter dev key into devkey inputbox
  • enter usr key into usrkey inputbox or keep it empty to paste as guest (don't paste sensitive data this way!)
  • edit paste options
  • click submit.
  • If successful, paste's URL will be displayed in the same html window
Attachments
paste body is filled up with selected file content
paste body is filled up with selected file content
1.submit.png (36.36 KiB) Viewed 1777 times
url to created paste appears after SUBMITting
url to created paste appears after SUBMITting
2.result.png (26.27 KiB) Viewed 1777 times
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

Post Reply