Skip to content

seratch/gistub

develop
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
app
 
 
bin
 
 
 
 
db
 
 
lib
 
 
log
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Gistub : Sharing code snippets in-house

Gistub is a stand alone application for sharing snippet such as gist.github.com.

If you're familiar with Rails apps, you can set up Gistub in several minutes.

Many companies and organizations use Gistub for sharing code snippets safely in house.

Build Status Coverage Status Code Climate

Deploy

How to use

master branch is always the lastest stable version.

git clone git://github.com/seratch/gistub.git -b master
cd gistub
bin/bundle install
bin/rake db:migrate
bin/rails s

Access http://localhost:3000/ through web browser.

Live Demo

http://gistub.herokuapp.com/

Top page:

top

Rich Editor with Ace:

input

Configuration over environment variables

Specify settings in .bashrc or others.

export GISTUB_APP_NAME="MyGistub"
export GISTUB_OPENID_IDENTIFIER=https://your_auth_server/openid/
export GISTUB_AUTO_LINK=true
export GISTUB_ALLOWS_ANONYMOUS=false
export GISTUB_SECRET_TOKEN=xxx...
export GISTUB_SECRET_KEY_BASE=yyy...

Gistub Tools

For Emacs users

https://github.com/tototoshi/gistub-el

For Vimmers

https://github.com/glidenote/nogistub.vim

License

(The MIT License)

Copyright (c) 2012 Kazuhiro Sera <seratch__at__gmail.com>