Jump to content




Run Pastebin Programs Directly


  • You cannot reply to this topic
5 replies to this topic

#1 Mailmanq!

  • Members
  • 123 posts
  • LocationI am omnipresent... DUH

Posted 06 March 2013 - 12:50 PM

Tired of downloading those programs you will only run once?
Like those 'OS' installers?

WELL WAIT NO MORE!!!!!

With this it you don't actually have to download it.

Just do <programname> <pastebin code> to run a program

pastbin get 4a5SNGnA


#2 SuicidalSTDz

    Permutator of Strings

  • Members
  • 1,308 posts
  • LocationPennsylvania

Posted 06 March 2013 - 12:54 PM

Why is this a clock pastebin link?

#3 Mailmanq!

  • Members
  • 123 posts
  • LocationI am omnipresent... DUH

Posted 06 March 2013 - 12:56 PM

View PostSuicidalSTDz, on 06 March 2013 - 12:54 PM, said:

Why is this a clock pastebin link?

Woops that is a test thing I tested the program with for pointing that out.

#4 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 06 March 2013 - 01:02 PM

So basically your code does this
loadstring( ( http.get("http://www.pastebin.com/raw.php?i="..( ... ) ) ).readAll() )()

I would maybe have it show usage if they did not supply an argument. makes it a little nicer.

EDIT: Also checking if http is enabled is always a good idea too
if not http then
  print('http api is not enabled')
  return
end


#5 Mailmanq!

  • Members
  • 123 posts
  • LocationI am omnipresent... DUH

Posted 06 March 2013 - 01:05 PM

View PostTheOriginalBIT, on 06 March 2013 - 01:02 PM, said:

So basically your code does this
loadstring( ( http.get("http://www.pastebin.com/raw.php?i="..( ... ) ) ).readAll() )()

I would maybe have it show usage if they did not supply an argument. makes it a little nicer.

Okay, sure. I just wrote this in like 3 seconds.

#6 SuicidalSTDz

    Permutator of Strings

  • Members
  • 1,308 posts
  • LocationPennsylvania

Posted 06 March 2013 - 01:36 PM

View Postmailmanq, on 06 March 2013 - 12:56 PM, said:

View PostSuicidalSTDz, on 06 March 2013 - 12:54 PM, said:

Why is this a clock pastebin link?

Woops that is a test thing I tested the program with for pointing that out.
That clock had 409 Hits on pastebin?!

EDIT: People must be getting too lazy or aren't reading the Lua Manual!

EDIT!: My mom just got in an accident... This day is going so well...

The necromancers must be on to me...





3 user(s) are reading this topic

0 members, 3 guests, 0 anonymous users