Skip to content

Instantly share code, notes, and snippets.

studying cancer genomics

Isaac Pei ipstone

studying cancer genomics
View GitHub Profile
View converting bash aliases to fish functions
`cat ~/.bash_aliases | egrep '^alias' | sed 's/alias//'`.split("\n").each do |line|
parts = line.strip.split(/=/)
name, cmd = parts[0], parts[1].gsub(/('|")/,'')
file = '/home/%s/.config/fish/functions/' % [`whoami`.strip, name]
content = [ 'function %s' % name, ' %s $argv;' % cmd, 'end' ].join("\n"), 'w+'){|io| io.write(content) }
spicycode / tmux.conf
Created Sep 20, 2011
The best and greatest tmux.conf ever
View tmux.conf
# 0 is too far from ` ;)
set -g base-index 1
# Automatically set window title
set-window-option -g automatic-rename on
set-option -g set-titles on
#set -g default-terminal screen-256color
set -g status-keys vi
set -g history-limit 10000

tmux cheat sheet

(C-x means ctrl+x, M-x means alt+x)

Prefix key

The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:

# remap prefix to Control + a
sachac /
Created Mar 31, 2013
Source code for my Emacs conference talk


  • Emacs learning curve?

Meta information


  • Mix of Emacs geeks skewed towards people who’ve been using this for a while (after all, takes a certain commitment to come all the way to an Emacs conference!)


jacob-ogre / jacob-ogre_ST2.sublime-keymap
Created Jun 26, 2013
Sublime Text: Custom keybindings, mostly Vintage (Vim)
View jacob-ogre_ST2.sublime-keymap
// Working in some additional Vim or Vim-like bindings; using 'g' as <leader>
// because it's homerow and unused for most commands:
{ "keys": ["g", "t"], "command": "next_view", "context": [{"key": "setting.command_mode"}] },
{ "keys": ["g", "r"], "command": "prev_view", "context": [{"key": "setting.command_mode"}] },
{ "keys": ["g", "n"], "command": "focus_side_bar", "context": [{"key": "setting.command_mode"}] },
{ "keys": ["g", "w"], "command": "focus_group", "args": { "group": 0 } },
{ "keys": ["g", "m"], "command": "find_under_expand", "context": [{"key": "setting.command_mode"}] },
{ "keys": ["g", "s"], "command": "sftp_browse_server", "context": [{"key": "setting.command_mode"}] },
View benchmark1.lua
local function groupby(func, seq)
local t = {}
for _, val in ipairs(seq) do
local key = func(val)
t[key] = t[key] or {}
t[key][#t[key] + 1] = val
return t
lambdalisue /
Created Jul 7, 2014
GVim compile and install script for CentOS
#!/usr/bin/env bash
# GVim compile and install script for CentOS
# Description: Install VIM with +python/+python3 via pyenv installed pythons
# Author: Alisue <>
# License: MIT
# GistID: 01996ca7877f72b860b2
elucify /
Last active May 13, 2020
ClinVar sample


This directory contains:

  • ClinVar ( dataset reports, and ClinVar development documents
  • documents related to the NCBI collaboration with ClinGen (
  • - how to apply for expert panel status
  • data common to ClinVar and GTR
  • - terminology used by both GTR and ClinVar.
jennybc / yaml_frontmatter_r_github_document.yaml
Last active Mar 27, 2021
YAML frontmatter for R Markdown to cause rmarkdown::render() to retain intermediate Markdown file for .R and .Rmd files, respectively
View yaml_frontmatter_r_github_document.yaml
#' ---
#' title: "Something fascinating"
#' author: "Jenny Bryan"
#' date: "`r format(Sys.Date())`"
#' output: github_document
#' ---
harrifeng /
Last active Mar 17, 2021
Compile emacs on redhat and centos
yum -y groupinstall "Development Tools"
yum -y install gtk+-devel gtk2-devel
yum -y install libXpm-devel
yum -y install libpng-devel
yum -y install giflib-devel