Skip to content

Instantly share code, notes, and snippets.

sudo apt-get install zlib1g-dev #ubuntu
git clone git://git.kernel.org/pub/scm/git/git.git
cd git
NO_EXPAT=yes NO_OPENSSL=yes NO_CURL=yes make -j4 prefix=~
NO_EXPAT=yes NO_OPENSSL=yes NO_CURL=yes make -j4 prefix=~ install
#!/usr/bin/env python
# This code was written by Krzysztof Kowalczyk (http://blog.kowalczyk.info)
# and is placed in public domain.
def v2fhelper(v, suff, version, weight):
parts = v.split(suff)
if 2 != len(parts):
return v
version[4] = weight
@nickfloyd
nickfloyd / create_branch_from_tag
Created January 27, 2011 05:38
To create a branch from a tag
-Go to the starting point of the project
>> git checkout origin master
-fetch all objects
>> git fetch origin
-Make the branch from the tag
>> git branch new_branch tag_name
-Checkout the branch
>> git checkout new_branch
-Push the branch up
>> git push origin new_branch
@pgib
pgib / bbedit_colours.sh
Created May 6, 2011 19:51
My BBEdit Color Scheme
defaults write com.barebones.bbedit Color:Background -string "rgb(0,0,0)"
defaults write com.barebones.bbedit Color:CTagsIdentifier -string "rgb(57825,39937,11422)"
defaults write com.barebones.bbedit Color:ColorAttributesSeparately -string 1
defaults write com.barebones.bbedit Color:Comment -string "rgb(21845,21845,21845)"
defaults write com.barebones.bbedit Color:Comment:Ruby -string "rgb(34992,34992,34992)"
defaults write com.barebones.bbedit Color:Foreground -string "rgb(65535,65535,65535)"
defaults write com.barebones.bbedit Color:Foreground:CSS -string "rgb(56342,56342,56342)"
defaults write com.barebones.bbedit Color:GuideContrast -string 7
defaults write com.barebones.bbedit Color:HTMLAnchor -string "rgb(43690,0,0)"
defaults write com.barebones.bbedit Color:HTMLAttributeName -string "rgb(57528,45076,5799)"
@perusio
perusio / gist:1087950
Created July 17, 2011 19:13
Adding ronn to the emacs auto-mode-alist for enabling markdown-mode as the major-mode
;;; This is to enable ronn files https://github.com/rtomayko/ronn to be treated as markdown files.
(add-to-list 'auto-mode-alist '("\\.ronn$" . markdown-mode))
@zircote
zircote / ssh.sh
Created September 26, 2011 21:45
Convert a AWS PEM into a ssh pub key
ssh-keygen -y -f private_key1.pem > public_key1.pub
@benspaulding
benspaulding / ReadMe.rst
Created October 16, 2011 04:33
Intelligently rename active document in BBEdit.

BBEdit Rename Active Document Script

The script itself has most of the documentation. Just know that there are two scripts here:

  1. A plain-text version (.applescript)
  2. A compiled version (.scpt)
@CristinaSolana
CristinaSolana / gist:1885435
Created February 22, 2012 14:56
Keeping a fork up to date

1. Clone your fork:

git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
@stephenturner
stephenturner / pathway.r
Created February 29, 2012 23:21
pathway.r
# These are bioconductor packages. See http://www.bioconductor.org/install/ for installation instructions
library(Biobase)
library(GEOquery)
library(limma)
library(SPIA)
library(hgu133plus2.db)
# load series and platform data from GEO:
# http://www.ncbi.nlm.nih.gov/projects/geo/query/acc.cgi?acc=GSE4107
eset <- getGEO("GSE4107", GSEMatrix =TRUE)[[1]]

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name: