4poc / toopaste

Simple (Tiny) Pastie Clone Using Sinatra & DataMapper

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Geekpaste

Pastebin forked from zapnap to play with Sinatra. Live Demo: paste.geekosphere.org

Features:

  • Optionally limited snippet retention

  • Randomly generated ids (36^4 possibilities)

  • Option to post private (unlisted) snippets

  • Announcing of new snippets to an IRC bot (4poc)

  • Include ultraviolet styles, switchable (4poc)

  • Change password in config, then delete snippets from the cli with

      curl -u <user>:<password> -X DELETE http://<domain>.<tld>/<snippetid>
    

Install:

  • git clone
  • cd toopaste
  • examine and trust .rvmrc (if you're not using rvm yet: you should)
  • gem install bundler
  • bundle install
  • cp toopaste.config.sample.rb toopaste.config.rb and edit it to your liking
  • run with ruby toopaste.rb

Heroku Deployment:

  • add dm-postgres-adapter to Gemfile and toopaste.rb
  • don't forget to add the config to the repository

TODO:

  • tags
  • line wrapping?
  • spam protection

About

Simple (Tiny) Pastie Clone Using Sinatra & DataMapper

License:MIT License


Languages

Language:JavaScript 66.6%Language:Ruby 33.4%