Jump to content


KCat156's Content

There have been 12 items by KCat156 (Search limited from 10-February 22)


By content type

See this member's

Sort by                Order  

#259822 PBAPI - An API to access the pastebin api!

Posted by KCat156 on 24 September 2016 - 03:40 PM in APIs and Utilities

Hello! I made a computercraft API that allows you to easily make pastebin API requests!
It doesn't have very good error handling right now, but I will update it so that it does.
You can download it here: http://pastebin.com/MpZXv6Hz
You can get a devkey to use it here: http://pastebin.com/api
Here are some examples:
--Logging in and doing stuff.
os.loadAPI("pbapi")
--Pastebin with or without using its API sends passwords in plaintext which you can see if you use wireshark. Sign up with a password you don't use normally!'
local h = pbapi.getUserHandle("your api devkey here","any username here","password for that user")
--Creating a paste:
local url = h.newPaste("paste content here")
--Creating a paste with optional parameters
--0: Public, 1: Unlisted, 2: Private
--Languages are at http://pastebin.com/api#5
--Only certain expire strings are allowed, http://pastebin.com/api#6
local otherurl = h.newPaste("NSString* gato = [[Person getCat] description]","migato (paste title)",2,"objc","10M")
--Listing pastes:
print(textutils.serialise(pbapi.listPastes()))
--Listing trending pastes:
print(textutils.serialise(pbapi.listTrending()))
--Listing user details:
print(textutils.serialise(pbapi.userDetails()))
--Deleting a paste:
h.deletePaste("paste key that belongs to user")
--Finally, reading a paste.
local data = h.rawPaste("public or unlisted paste key, or private paste key belonging to the user.")
There is also pbapi.getGuestHandle which behaves the same, but functions like listPastes that require to be logged in will not work.



#248732 ComputerCraft College

Posted by KCat156 on 22 March 2016 - 11:00 PM in Servers

In Game Name: MeowCat156
Role Wanted: Bukkit Developer, assuming you are using Cauldron.
Skills you have that apply to that role: I write Java programs as a hobby and I have started to write bukkit / spigot plugins now.
How long you have been practicing the role: 1-2 years, I can't remember when I started.



#246415 [Not Whitelisted] [CC 1.79] [Back] VanillaCraft Survival

Posted by KCat156 on 22 February 2016 - 11:05 PM in Servers

IGN: MeowCat156
Age (Do not lie, we are open minded): 12
CC Experience: A lot, I've played for more than a year and can debug most programs.
Maturity: I get maturity from context, it depends whether the people around me are mature.
Have you been banned from another server? If so, which one, and why? (Do not lie, everyone makes mistakes): Nope. Only once because my brother shares my ip (NAT network).
How much are you going to play? Whenever I have free time which is about 1-3 hours on weekdays, and 4 hours on weekends. There will be days wher
Will you follow the rules? Yes.
What time zone do you live in? PST



#245496 Acora Server 2.1 [MC: 1.8.9][CC: 1.78]

Posted by KCat156 on 13 February 2016 - 03:34 PM in Servers

I can't connect using the technic pack, it times out after logging in for a while. What forge version does the server have?
-new username, MeowCat156



#236536 TechCorp World Of Corporations: We're Back!

Posted by KCat156 on 29 October 2015 - 01:54 AM in Servers

The server's down.



#234892 What is the editor you use?

Posted by KCat156 on 10 October 2015 - 11:17 PM in General

I use TACO in game (the text editor with flavor).



#234279 Backup Program!

Posted by KCat156 on 04 October 2015 - 01:58 PM in Programs

View PostGlass Systems, on 03 October 2015 - 03:57 PM, said:

Try using your pastebin account,that usually helps.
I said should I have because the server I was on to make the backup program reset, and I forgot to save the program to my SSD.



#234196 Backup Program!

Posted by KCat156 on 03 October 2015 - 03:17 PM in Programs

IDK why it's removed, I didn't remove it. I used pastebin put to upload it. Should I have used my pb account?



#234022 Really nice programming environment setup I've figured out

Posted by KCat156 on 01 October 2015 - 02:17 PM in Programs

View PostLupus590, on 01 October 2015 - 02:06 PM, said:

In computercraft APIs are loaded with os.loadAPI(apiPathAndName), require doesn't exist in computercraft
He's talking about using a lua IDE outside of computercraft.



#234021 Backup Program!

Posted by KCat156 on 01 October 2015 - 02:16 PM in Programs

I made a program to backup all your files and folders to a single pastebin file! Simply run this program, type save to save all your data to pastebin, and type load to load all files from a pastebin code. To download:

pastebin get NHkyjCTr market
market
Search Market: pastebin
Choose "Pastebin Backup"
Specify a file name to download to



#233994 CreeperCraft3 [CC 1.74][Plot World and City World][Creative][CC Only][NICE ST...

Posted by KCat156 on 01 October 2015 - 01:52 AM in Servers

Can you upload files from a computer I broke to pastebin? The files are called: TAAPITest and textattributesapi.



#233972 CreeperCraft3 [CC 1.74][Plot World and City World][Creative][CC Only][NICE ST...

Posted by KCat156 on 30 September 2015 - 09:34 PM in Servers

I get io.netty.handler.codec.DecoderException: java.io.IOException: Bad packet id 64