Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
simple and clean open source pastebin built on the sinatra microframework
Ruby
branch: master

This branch is 108 commits ahead of zapnap:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
public/javascripts
vendor
views
.gitignore
.gitmodules
.rvmrc
Gemfile
Gemfile.lock
MIT-LICENSE
README.md
config.ru
toopaste.config.sample.rb
toopaste.rb

README.md

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
  • git submodule update --init
  • cd vendor/bootstrap-sass
  • git checkout 2.0
  • examine and trust .rvmrc (if you're not using rvm: get it)
  • 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
Something went wrong with that request. Please try again.