— my toolbox is filled with perl, javascript, css and html

thorsen.pm

Mojopaste - A #pastebin based on #Mojolicious

Thursday, September 05, 2013

    // From errno.h
    #define EPASTEBINAGAIN 133 /* mojopaste */
    

    Today I released my 13th Mojolicious based project to CPAN, but the 1st open source Mojolicious based application.

    It feels good.

    The application is a pastebin. That is a web application which you can paste text to, hit the “Paste” button and it will save it and generate a unique URL which you can share with other people.

    Yes. A standard pastebin. So why?

    There’s about 20 million pastebin search results on Google and there’s about 40 pastebin related modules on CPAN, but I don’t think there’s any Mojolicious based. So that’s why I wrote it: mojopaste is super easy to install, as long as you have perl from this century.

    # install using cpanm
    $ curl -L http://cpanmin.us | perl - --sudo App::mojopaste
    
    # run
    $ PASTE_DIR=/path/to/paste/dir mojopaste daemon --listen http://*:8080
    

    Who could be interested?

    Want to try it out? Check out mojopaste on my server.

    What about the future: Version 0.04 will look better on the iPhone and will probably have different input names to make it a bit harder for robots to paste. Got other ideas for improvements? Comment below or contact batman @ irc.perl.org. (I’m usually in the #mojo channel)

    blog comments powered by Disqus