496 posts
Location
New Zealand
Posted 12 February 2012 - 08:18 AM
This program does just as it's title suggests allows you to download pastebin pastes from within CC saving you time, Obviously you need to have http api enabled.
Usage:
Pastebin <PasteIdent> <ToFileName>
Where PasteIdent is the code at the end of the paste url e.g.
http://pastebin.com/cW9y4rsT –> cW9y4rsT
And ToFileName is the name of the file to write to.
Install: Download the attached zip file and place the Pastebin file from inside in your computer folder i.e .minecraft/saves/WorldName/computer/#/
[attachment=15:Pastebin.zip]
License:
Spoiler
Copyright © 2012 Thomas Farr a.k.a tomass1996
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
associated documentation files (the "Software"), to deal in the Software without restriction,
including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
copies of the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
-The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-Visible credit is given to the original author.
-The software is distributed in a non-profit way.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
496 posts
Location
Harlem, NY
Posted 12 February 2012 - 08:19 AM
Badass! Now to upload to pastebin! ^_^/>/>
58 posts
Posted 12 February 2012 - 08:33 AM
Nice work! now we have a fast and easy variant on cc-get that doesn't require a login to post to ^_^/>/>
This'll be great for working the bugs out of code collaboratively. Now if only we could ctrl+v in CC <.< >.>
411 posts
Posted 12 February 2012 - 12:04 PM
Yeah, honestly the biggest problem is then having to type it into the program itself ;(
Still though nice work!
715 posts
Posted 12 February 2012 - 12:48 PM
Nice work thomas.
Simple, short, useful. I like it.
Yeah, honestly the biggest problem is then having to type it into the program itself ;(
Still though nice work!
Yeah, I see what you mean. Would be nice if one at least could assign custom names to pastebin dumps.
Or is that already possible with a registered account maybe?
454 posts
Location
London
Posted 12 February 2012 - 01:56 PM
Nice work thomas.
Simple, short, useful. I like it.
Yeah, honestly the biggest problem is then having to type it into the program itself ;(
Still though nice work!
Yeah, I see what you mean. Would be nice if one at least could assign custom names to pastebin dumps.
Or is that already possible with a registered account maybe?
It'd be possible if we had some registry of pastes; e.g first you get
http://computercraft.info/pasteregistry/?name=paste%20nameit returns the pastebin code/url (or some error message, or a list of pastes, and authors, etc.), then you get that.
Nice work, tomass!
715 posts
Posted 12 February 2012 - 02:08 PM
It'd be possible if we had some registry of pastes; e.g first you get
http://computercraft...me=paste%20nameit returns the pastebin code/url (or some error message, or a list of pastes, and authors, etc.), then you get that.
Nice work, tomass!
That's true, but then you're dependent on an additional website and it only works as long as someone maintains the list.
It would be nice if it could be stand-alone, only having to deal with the website it was made for; not needing a maintainer, nor requiring one to remember random alphanumeric codes.
Maybe another paste service supports custom names? There are plenty, for sure, but it should also be a well established one.
Hmm, I'm gonna have a look at some of them, my interest is piqued.^^
454 posts
Location
London
Posted 12 February 2012 - 02:12 PM
It'd be possible if we had some registry of pastes; e.g first you get
http://computercraft...me=paste%20nameit returns the pastebin code/url (or some error message, or a list of pastes, and authors, etc.), then you get that.
Nice work, tomass!
That's true, but then you're dependent on an additional website and it only works as long as someone maintains the list.
It would be nice if it could be stand-alone, only having to deal with the website it was made for; not needing a maintainer, nor requiring one to remember random alphanumeric codes.
Maybe another paste service supports custom names? There are plenty, for sure, but it should also be a well established one.
Hmm, I'm gonna have a look at some of them, my interest is piqued.^^
I'm already at work with something for this ^_^/>/>
715 posts
Posted 12 February 2012 - 02:32 PM
I'm already at work with something for this :P/>/>
Nah, I meant I wanted to look for a service which supports custom urls.
I wasn't my intention to say that I'm against your idea. To the contrary, it would be very useful in my opinion.
But I also would like versions which could be used independently.^^
Hmm, I went through some alternatives for pastebin over at
alternativeto.net, but they only seem to support random urls.
I found another paste service in one of my bookmarks though, which does indeed support custom urls.
The only problem though: It doesn't seem to support syntax highlighting. ^_^/>/>
Which isn't that big of a problem if its just for download through the OP's program anyway. But still, it's like a pie without a cherry on top.^^
The paste service I'm referring to is:
textsnip.comHere's a screenie:
Spoiler
454 posts
Location
London
Posted 12 February 2012 - 02:40 PM
I'm already at work with something for this B)/>/>
Nah, I meant I wanted to look for a service which supports custom urls.
I wasn't my intention to say that I'm against your idea. To the contrary, it would be very useful in my opinion.
But I also would like versions which could be used independently.^^
Hmm, I went through some alternatives for pastebin over at
alternativeto.net, but they only seem to support random urls.
I found another paste service in one of my bookmarks though, which does indeed support custom urls.
The only problem though: It doesn't seem to support syntax highlighting. ^_^/>/>
Which isn't that big of a problem if its just for download through the OP's program anyway. But still, it's like a pie without a cherry on top.^^
The paste service I'm referring to is:
textsnip.comHere's a screenie:
Spoiler
Awesome! I'll finish what I'm doing first, though, since it has some advantages :P/>/>
18 posts
Posted 12 February 2012 - 03:39 PM
What about using pastebin via
bit.ly? You can customize your short link and edit target every time you need.
99 posts
Posted 12 February 2012 - 04:30 PM
We need a ComputerBin - Pastebin for CC. Btw, great work!
496 posts
Location
New Zealand
Posted 12 February 2012 - 06:40 PM
I see there was a whole conversation going on while I slept ^_^/>/>
3 posts
Posted 20 March 2012 - 09:40 AM
Every time i try to use it it says Pastebin:22: attempt to index ? (a nil value)
Help?
496 posts
Location
New Zealand
Posted 20 March 2012 - 10:19 AM
Every time i try to use it it says Pastebin:22: attempt to index ? (a nil value)
Help?
I would assume you don't have http api enabled,
Also why don't you use CC's pastebin prog that is included in 1.31?
3 posts
Posted 28 March 2012 - 12:45 AM
I would assume you don't have http api enabled,
Also why don't you use CC's pastebin prog that is included in 1.31?
Did not know there was one
496 posts
Location
New Zealand
Posted 28 March 2012 - 01:26 AM
Just in the shell run "help pastebin"
16 posts
Posted 31 March 2012 - 04:27 PM
We need a ComputerBin - Pastebin for CC. Btw, great work!
Not the most pretty, but I'll improve it over time:
http://cctxt.x90x.net/
1 posts
Posted 14 January 2013 - 06:04 PM
Does this work on servers?
2088 posts
Location
South Africa
Posted 14 January 2013 - 06:15 PM
Yes, only if http api is enabled.
7508 posts
Location
Australia
Posted 14 January 2013 - 06:36 PM
Im assuming this script is now the one thats included with CC?
88 posts
Posted 15 January 2013 - 04:54 AM
Im assuming this script is now the one thats included with CC?
No, the one in CC has been the same one for several versions. This does exactly the same thing, but you have to install and download it.
1054 posts
Posted 15 January 2013 - 04:59 AM
Im assuming this script is now the one thats included with CC?
No, the one in CC has been the same one for several versions. This does exactly the same thing, but you have to install and download it.
I'm quite sure that's what he meant. :P/> I guess he wonders whether this is the script that has been bundled into CC (as do I).
496 posts
Location
New Zealand
Posted 15 January 2013 - 11:34 AM
While yes this was the first pastebin downloader, and one was added to CC shortly after with the addition of a put command, which I couldn't do due to no http.post at the time.
The one in CC isn't my doing, though I'd like to atleast think of this one as being the 'grandfather' to the current one.
But there is no reason to be using this one instead of the inbuilt one.
7508 posts
Location
Australia
Posted 15 January 2013 - 11:49 AM
While yes this was the first pastebin downloader, and one was added to CC shortly after with the addition of a put command, which I couldn't do due to no http.post at the time.
The one in CC isn't my doing, though I'd like to atleast think of this one as being the 'grandfather' to the current one.
But there is no reason to be using this one instead of the inbuilt one.
Maybe think of it as you inspired the one in-game ;)/>
686 posts
Posted 17 January 2013 - 11:21 AM
Why did we need to necro a year-old thread for an obsolete program? -_-/>
1054 posts
Posted 17 January 2013 - 11:24 AM
Why did we need to necro a year-old thread for an obsolete program? -_-/>
Because someone had a genuine question about it:
Does this work on servers?
And when it was up anyway, we felt a healthy curiosity about the origin of the pastebin program. :P/>
63 posts
Location
In a library that's in a village, huddling my advanced computer as zombies bang on the door.
Posted 17 January 2013 - 12:33 PM
Wait, you people are saying "good job" when all it is, is..the..same..thing…o_O but it get's uploaded?
Is it just me or did Smartpaste get worse replies?
7508 posts
Location
Australia
Posted 17 January 2013 - 12:44 PM
Wait, you people are saying "good job" when all it is, is..the..same..thing…o_O but it get's uploaded?
Is it just me or did Smartpaste get worse replies?
Why are you reading nice job/work posts from FEB and wondering why people were saying that when the pastebin program didn't exist in CC then?