←  Programs

ComputerCraft | Programmable Computers for Minecraft

»

Pastebin Paste Downloader

Xtansia's Photo Xtansia 12 Feb 2012

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/#/
Attached File  Pastebin.zip (1.1K)
downloads: 989

License:
Spoiler
Quote

FuzzyPurp's Photo FuzzyPurp 12 Feb 2012

Badass! Now to upload to pastebin! ^_^/>
Quote

Selkitty's Photo Selkitty 12 Feb 2012

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 <.< >.>
Quote

Casper7526's Photo Casper7526 12 Feb 2012

Yeah, honestly the biggest problem is then having to type it into the program itself ;(
Still though nice work!
Quote

Espen's Photo Espen 12 Feb 2012

Nice work thomas.
Simple, short, useful. I like it.

View PostCasper7526, on 12 February 2012 - 12:04 PM, said:

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?
Quote

Advert's Photo Advert 12 Feb 2012

View PostEspen, on 12 February 2012 - 12:48 PM, said:

Nice work thomas.
Simple, short, useful. I like it.

View PostCasper7526, on 12 February 2012 - 12:04 PM, said:

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...me=paste%20name
it returns the pastebin code/url (or some error message, or a list of pastes, and authors, etc.), then you get that.

Nice work, tomass!
Quote

Espen's Photo Espen 12 Feb 2012

View PostAdvert, on 12 February 2012 - 01:56 PM, said:

It'd be possible if we had some registry of pastes; e.g first you get http://computercraft...me=paste%20name
it 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.^^
Quote

Advert's Photo Advert 12 Feb 2012

View PostEspen, on 12 February 2012 - 02:08 PM, said:

View PostAdvert, on 12 February 2012 - 01:56 PM, said:

It'd be possible if we had some registry of pastes; e.g first you get http://computercraft...me=paste%20name
it 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 ^_^/>
Quote

Espen's Photo Espen 12 Feb 2012

View PostAdvert, on 12 February 2012 - 02:12 PM, said:

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.com
Here's a screenie:
Spoiler
Quote

Advert's Photo Advert 12 Feb 2012

View PostEspen, on 12 February 2012 - 02:32 PM, said:

View PostAdvert, on 12 February 2012 - 02:12 PM, said:

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.com
Here's a screenie:
Spoiler

Awesome! I'll finish what I'm doing first, though, since it has some advantages :P/>
Quote

Parker's Photo Parker 12 Feb 2012

What about using pastebin via bit.ly? You can customize your short link and edit target every time you need.
Quote

rockymc's Photo rockymc 12 Feb 2012

We need a ComputerBin - Pastebin for CC. Btw, great work!
Quote

Xtansia's Photo Xtansia 12 Feb 2012

I see there was a whole conversation going on while I slept ^_^/>
Quote

Technolust's Photo Technolust 20 Mar 2012

Every time i try to use it it says Pastebin:22: attempt to index ? (a nil value)
Help?
Quote

Xtansia's Photo Xtansia 20 Mar 2012

View Postreagan209, on 20 March 2012 - 09:40 AM, said:

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?
Quote

Technolust's Photo Technolust 27 Mar 2012

Quote

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
Quote

Xtansia's Photo Xtansia 28 Mar 2012

Just in the shell run "help pastebin"
Quote

islanderon01's Photo islanderon01 31 Mar 2012

View Postrockymc, on 12 February 2012 - 04:30 PM, said:

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/
Quote

Webmetz's Photo Webmetz 14 Jan 2013

Does this work on servers?
Quote

remiX's Photo remiX 14 Jan 2013

Yes, only if http api is enabled.
Quote