MEWBIES@: Facebook Twitter G+ YouTube DeviantArt Forum Wall
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
██ ██
█▌ - COMMAND LINE OUTPUT TO A PASTEBIN SITE - LINUX - █▌
█▌ █▌
█ ▐▌
█ COMMAND LINE OUTPUT TO PASTEBIN - SPRUNGE.US ▐▌
█ COMMAND LINE OUTPUT TO PASTEBIN - PASTEBINIT ▐▌
█ ▐▌
█ ___________..___________ ▐▌
█ ▐▌
█ COMMAND LINE OUTPUT TO PASTEBIN - SPRUNGE.US: ▐▌
█ ````````````````````````````````````````````` ▐▌
█ Sprunge.us allows you to pastebin to their site direct output from the ▐▌
█ command line and outputs your URL in return. HERE is their github site. ▐▌
█ Super simple and straight forward. ♥♥♥ ▐▌
█ I don't know the size limit or the expiry time./? ▐▌
█ ▐▌
█ REQUIRED: curl (aptitude install curl) ▐▌
█ ▐▌
█ EXAMPLES: ▐▌
█ Anything with a text based output should be able to use: ▐▌
█ ls | curl -F 'sprunge=<-' http://sprunge.us ▐▌
█ The output will be the URL where your paste is. ▐▌
█ cowsay moo sprunge.us | curl -F 'sprunge=<-' http://sprunge.us ▐▌
█ ▐▌
█ If you want line numbers and syntax highlighting add '?[language]' to the ▐▌
█ end of the URL yourself, for example: ▐▌
█ cat index.php | curl -F 'sprunge=<-' http://sprunge.us ▐▌
█ Output: http://sprunge.us/abcd ▐▌
█ Go to: http://sprunge.us/abcd?php ▐▌
█ ▐▌
█ Create an alias for it if you like, for example: ▐▌
█ alias spaste="curl -F 'sprunge=<-' http://sprunge.us" ▐▌
█ Test the alias: ▐▌
█ ls | spaste ▐▌
█ http://sprunge.us/xxxx?log ▐▌
█ To list all aliases: alias ▐▌
█ To remove an alias: unalias spaste ▐▌
█ ▐▌
█ ___________..___________ ▐▌
█ ▐▌
█ COMMAND LINE OUTPUT TO PASTEBIN - PASTEBINIT: ▐▌
█ ````````````````````````````````````````````` ▐▌
█ Pastebinit "A software that lets you send anything you want directly to a ▐▌
█ pastebin from the command line. This software lets you send a file or ▐▌
█ simply the result of a command directly to the pastebin you want (if it's ▐▌
█ supported) and gives you the URL in return." ▐▌
█ Homepage HERE and project site HERE. ▐▌
█ ▐▌
█ PREREQUISITES: ▐▌
█ python and python-configobj ▐▌
█ ▐▌
█ Install those needed, for example: ▐▌
█ su ▐▌
█ aptitude install python-configobj ▐▌
█ exit ▐▌
█ ▐▌
█ STOP - READ THIS BEFORE INSTALLING PASTEBINIT - DEBIAN SQUEEZE USERS: ▐▌
█ These are my experiences, yours might be different. At the time of writing ▐▌
█ this using aptitude or apt-get install will install v1.1 of pastebinit. ▐▌
█ v1.1 has some issues and less features than v1.3. We can easily work ▐▌
█ around them if you are okay with that continue; I list out the issues. ▐▌
█ ▐▌
█ IF you want to install the latest v1.3 (for sid listed as unstable) where ▐▌
█ these issues are fixed and has more options SKIP v.1.1 section to v1.3. ▐▌
█ ▐▌
█ IF you have already installed v1.1 using package manager (aptitude or ▐▌
█ apt-get) and want to remove it SKIP v1.1 section to remove v1.1 first. ▐▌
█ ▐▌
█ INSTALL v1.1: ▐▌
█ Debian package info HERE; v1.1 (at the time of writing this): ▐▌
█ su ▐▌
█ aptitude install pastebinit ▐▌
█ exit ▐▌
█ ▐▌
█ pastebinit -h ▐▌
█ man pastebinit ▐▌
█ ▐▌
█ NOTES: ▐▌
█ Your $USER name (your login name on your shell) will show as the author if ▐▌
█ you don't specify a name (-a). ▐▌
█ Output is the URL where your output is pasted to. Using pastebinit default ▐▌
█ is set to expire in 7 days on most sites. ▐▌
█ ▐▌
█ EXAMPLES: ▐▌
█ man pastebinit | pastebinit -a test ▐▌
█ Output: THIS API HAS BEEN DISABLED. Please use Pastebin's new API. ▐▌
█ http://pastebin.com/api ▐▌
█ ▐▌
█ This is the problem on Debian since pastebin.com is the default URL. To ▐▌
█ get around that either: ▐▌
█ 1. Signup to pastebin: Pastebin.com FAQ: "Yes, we have got an API ▐▌
█ available, but we do require you to be a member of the website to access ▐▌
█ it." ▐▌
█ ▐▌
█ OR ▐▌
█ 2. Use another URL. From pastebinit man: ▐▌
█ Select another URL (-b) ('-a test' will show as the author test): ▐▌
█ man pastebinit | pastebinit -a test -b http://paste.ubuntu.com ▐▌
█ The output is the URL where your paste is. ▐▌
█ ▐▌
█ EXAMPLES: ▐▌
█ Paste the contents of a file: ▐▌
█ pastebinit -i /path/FILENAME -a test -b http://slexy.org ▐▌
█ Paste the output of command: ▐▌
█ [command] | pastebinit -a test -b http://paste2.org ▐▌
█ Format a paste, for example in PHP (on sites that support it): ▐▌
█ cat my.php| pastebinit -f php -a test -b http://paste.debian.net ▐▌
█ cat my.pl | pastebinit -f perl -a test -b http://paste.ubuntu.com ▐▌
█ On pastebin.com you can use one of their language subdomains to match and ▐▌
█ have its syntax highlighted. Example if you are going to paste C++ then ▐▌
█ use -b http://cpp.pastebin.com ▐▌
█ ▐▌
█ CREATE AN ALIAS FOR PASTEBINIT: ▐▌
█ Create an alias for it if you like then you don't need to enter extra info ▐▌
█ each time. For example: ▐▌
█ alias paste="pastebinit -a test -b http://paste.debian.net" ▐▌
█ ▐▌
█ Test the alias: ▐▌
█ cat my.php | paste -f php ▐▌
█ ▐▌
█ To list all aliases: alias ▐▌
█ To remove an alias: unalias spaste ▐▌
█ ▐▌
█ WORKING URLS (at the time of writing this): ▐▌
█ http://pastebin.com (if you sign up) ▐▌
█ http://pastebin.ca (if you sign up) ▐▌
█ http://slexy.org ▐▌
█ http://paste2.org ▐▌
█ http://paste.ubuntu.com (max size? is smaller, expire?) ▐▌
█ http://paste.debian.net ▐▌
█ ▐▌
█ NON-WORKING URLs (at the time of writing this): ▐▌
█ http://fpaste.org Output everytime: http://fpaste.org ▐▌
█ http://pastey.net Website gone ▐▌
█ http://stikked.com 403 Forbidden ▐▌
█ http://yourpaste.net Blank white page ▐▌
█ http://gist.github.com Reply is humorous: ▐▌
█ "Unknown website, please post a bugreport to request this pastebin to be ▐▌
█ added (http://gist.github.com)". ▐▌
█ ▐▌
█ That is because gist.github URL is not included with the release. ▐▌
█ These are the URL configuration files: ▐▌
█ ls /etc/pastebin.d ▐▌
█ ▐▌
█ Note: If you were to take .conf files from the latest tar ▐▌
█ (pastebinit-1.3.1.tar.gz) and use those it will not work. ▐▌
█ ▐▌
█ REMOVE V1.1: ▐▌
█ If you installed pastebinit v1.1 through the package manager (aptitude or ▐▌
█ apt-get) and want to remove it: ▐▌
█ su ▐▌
█ aptitude purge pastebinit -y ▐▌
█ exit ▐▌
█ ▐▌
█ INSTALL V1.3: ▐▌
█ If you want to install a package from sid for squeeze: ▐▌
█ We need to add some URLs to the sources list: ▐▌
█ su ▐▌
█ pico /etc/apt/sources.list ▐▌
█ Copy/paste in these two URLs to the bottom of the file and save changes: ▐▌
deb http://ftp.it.debian.org/debian unstable main contrib non-free
deb http://www.backports.org/debian squeeze-backports main contrib non-free
█ Then: ▐▌
█ apt-get update ▐▌
█ apt-cache policy pastebinit ▐▌
█ Note the reply for the v1.3 has 'unstable'. So instead of stating v1.3 we ▐▌
█ must state unstable: ▐▌
█ apt-get -t unstable install pastebinit ▐▌
█ Test it: ▐▌
█ pastebinit -h ▐▌
█ Output: pastebinit v1.3 [snip] ▐▌
█ Remove or comment out (#)the 2 lines we added: ▐▌
█ pico /etc/apt/sources.list ▐▌
█ apt-get update ▐▌
█ exit ▐▌
█ man pastebinit ▐▌
█ ls | pastebinit -a test ▐▌
█ Output: http://paste.debian.net/xxxx/ ▐▌
█ ▐▌
█ EXAMPLES: ▐▌
█ Paste the contents of a file: ▐▌
█ pastebinit -i /path/FILENAME -a test -b http://slexy.org ▐▌
█ Paste the output of command: ▐▌
█ [command] | pastebinit -a test -b http://paste2.org ▐▌
█ Format a paste, for example in PHP (on sites that support it): ▐▌
█ cat my.php| pastebinit -f php -a test -b http://paste.debian.net ▐▌
█ cat my.pl | pastebinit -f perl -a test -b http://paste.ubuntu.com ▐▌
█ On pastebin.com you can use one of their language subdomains to match and ▐▌
█ have its syntax highlighted. Example if you are going to paste C++ then ▐▌
█ use -b http://cpp.pastebin.com ▐▌
█ ▐▌
█ List available URLs to use: ▐▌
█ pasteitbin -l ▐▌
█ ▐▌
█ NON-WORKING URLs (at the time of writing this): ▐▌
█ http://fpaste.org Output everytime: http://fpaste.org ▐▌
█ http://paste.pocoo.org Closed ▐▌
█ http://yourpaste.net Blank white page ▐▌
█ ▐▌
█ WISH LIST: ▐▌
█ 1. Option to post private. ▐▌
█ 2. https pastebin sites. ▐▌
█ 3. Option to select expiry time. ▐▌
█ ▐▌
█ THE END ▐▌
█ ▐▌
█ //---------------------------------------------------------------------- ▐▌
█ ▐▌
█ If you find mistakes, have suggestions, and or questions please post at ▐▌
█ mewbies forum HERE - thank you. ▐▌
█ ▐▌
█ Last update on 21 May '10 ▐▌
█ ▐▌
█▌ █▌
█▌ - mewbies.com - █▌
█▌ █▌
██▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄██