Skip to content

Instantly share code, notes, and snippets.

Avatar

Armin Widegreen awidegreen

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

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
ivanoats / slang.md
Last active Feb 23, 2021
slang for various symbols
View slang.md
!  = bang
.  = dot
$  = bling
{} = mustaches
[] = brackets
() = parens
^  = caret
&  = and
* = asterik
View vim_cheatsheet.md

Introduction

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

General

: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:

tmux

start new with session name:

tmux new -s myname
@jcaraballo
jcaraballo / git-branch-between-different-repositories.md
Created Mar 6, 2012
How to fork a github repository in bitbucket
View git-branch-between-different-repositories.md

#Create bitbucket branch

##Create local branch

$ git checkout -b sync
Switched to a new branch 'sync'
$ git branch
  master
* sync
@gudbergur
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
  $('.typeahead').typeahead(
    # source can be a function
    source: (typeahead, query) ->
 # this function receives the typeahead object and the query string
@prellele
prellele / gist:1825744
Created Feb 14, 2012
Using StartSSL Certs with Nginx-Webserver
View gist:1825744

NOTE: You can check, if your config here:
http://www.sslshopper.com/ssl-checker.html

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
sampsyo / subcommand.py
Created Jul 3, 2010
subcommand support for Python's optparse
View subcommand.py
"""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
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
kogakure / .gitignore
Created Jul 17, 2009
Git: .gitignore file for LaTeX projects
View .gitignore
*.aux
*.glo
*.idx
*.log
*.toc
*.ist
*.acn
*.acr
*.alg
*.bbl