amuck-landowner

Lua Pastebin

Nikki

New Member
Laravel's paste bucket went down earlier today and I've always wanted an extremely simple paste site (even though I still run http://paste.ee), so I threw this together. It's pretty cool considering a lua website is very rare.

It would take a bit of compiling to get it to work, so I suggest just looking through the code if you don't wish to spend an hour getting it to work right.

https://github.com/nikkiii/luapaste

Requires:

Lua 5.1 (LuaJIT-2.0 optional, edit the Makefile in luafcgid to use regular lua if you wish, easily available in apt and likely yum)

https://github.com/nikkiii/luafcgid (requires a fastcgi capable webserver, check the readme)

https://github.com/nikkiii/luadbi (only need to run 'make mysql', you will need to move dbdmysql.so to /usr/lib/lua/5.1 and dbi.lua to /usr/share/lua/5.1)

https://github.com/nikkiii/chariot
 

MannDude

Just a dude
vpsBoard Founder
Moderator
Pretty neat. What is Lua usually used for? This is first time that I recall seeing a web app written in it.

Also good move going to Piwik, we did the same months ago. :)
 

Shados

Professional Snake Miner
Pretty neat. What is Lua usually used for? This is first time that I recall seeing a web app written in it.


Also good move going to Piwik, we did the same months ago. :)
Lua is primarily used as an embedded scripting language, usually for things like games / game engines. Also, Prosody is written in it.
 

Nikki

New Member
Pretty neat. What is Lua usually used for? This is first time that I recall seeing a web app written in it.

Also good move going to Piwik, we did the same months ago. :)
Heh, I love it already. Google's user interface was never really that good for my taste, Piwik is nice and clear, and the mobile app is amazing :)

I'm also thinking about running this alongside the original paste.ee as a simpler solution, or even modifying it so paste.ee could also use this design for people who want a more simple interface

Curious why you wrote it in Lua over something like Ruby or something
 

I really don't like Ruby, it has a few nice features but it's too bloated for my taste. I'd rather use Lua and compile everything I need myself :)
 
Last edited by a moderator:
Top
amuck-landowner