Skip to content

Instantly share code, notes, and snippets.


Armin Widegreen awidegreen

View GitHub Profile
jbenet /
Last active Jul 5, 2022
a simple git branching model

a simple git branching model (written in 2013)

This is a very simple git workflow. It (and variants) is in use by many people. I settled on it after using it very effectively at Athena. GitHub does something similar; Zach Holman mentioned it in this talk.

Update: Woah, thanks for all the attention. Didn't expect this simple rant to get popular.

ivanoats /
Last active Feb 23, 2021
slang for various symbols
!  = bang
.  = dot
$  = bling
{} = mustaches
[] = brackets
() = parens
^  = caret
&  = and
* = asterik


  • C-a == Ctrl-a
  • M-a == Alt-a


:q        close
:w        write/saves
:wa[!]    write/save all windows [force]
:wq write/save and close
View tmux-cheatsheet.markdown

tmux shortcuts & cheatsheet

start new:


start new with session name:

tmux new -s myname
jcaraballo /
Created Mar 6, 2012
How to fork a github repository in bitbucket

#Create bitbucket branch

##Create local branch

$ git checkout -b sync
Switched to a new branch 'sync'
$ git branch
* sync
gudbergur / README.markdown
Created Feb 19, 2012
Bootstrap's Typeahead plugin extended (allowing for AJAX functionality) among other things
View README.markdown

This is a fork of Bootstrap Typeahead that adds minimal but powerful extensions.

For example, process typeahead list asynchronously and return objects

  # This example does an AJAX lookup and is in CoffeeScript
    # source can be a function
    source: (typeahead, query) ->
 # this function receives the typeahead object and the query string
prellele / gist:1825744
Created Feb 14, 2012
Using StartSSL Certs with Nginx-Webserver
View gist:1825744

NOTE: You can check, if your config here:

Decrypt the private key using the password you entered when you created your key:
openssl rsa -in ssl.key -out /etc/nginx/conf/ssl.key

Protect your key from prying eyes:
chmod 600 /etc/nginx/conf/ssl.key

sampsyo /
Created Jul 3, 2010
subcommand support for Python's optparse
"""A simple addition to Python's optparse module supporting subcommands
like those found in the svn or hg CLIs.
To use it, instantiate the Subcommand class for every subcommand you
want to support. Each subcommand has a name, aliases, a help message,
and a separate OptionParser instance. Then pass a list of Subcommands
to the constructor of SubcommandsOptionParser to make a subcommand-
aware parser. Calling parse_args on that parser gives you the
subcommand invoked, the subcommand's arguments and options, and the
global options all in one fell swoop. See the smoke test at the bottom
randito / example_note_keeping_app.rb
Created Feb 16, 2010 — forked from pietern/example_note_keeping_app.rb
Example Sintra app for note taking
View example_note_keeping_app.rb
require 'rubygems'
require 'sinatra'
require 'redis'
# To use, simply start your Redis server and boot this
# example app with:
# ruby example_note_keeping_app.rb
# Point your browser to http://localhost:4567 and enjoy!
kogakure / .gitignore
Created Jul 17, 2009
Git: .gitignore file for LaTeX projects
View .gitignore