This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# largely from here: https://gist.github.com/justin808/9493723 | |
set -g mode-mouse on | |
set -g mouse-resize-pane on | |
set -g mouse-select-pane on | |
set -g mouse-select-window on | |
# Toggle mouse on | |
bind m \ | |
set -g mode-mouse on \;\ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env bash | |
sudo apt-get --assume-yes install build-essential | |
sudo apt-get --assume-yes install gfortran | |
sudo apt-get --assume-yes install zlib1g-dev | |
sudo apt-get --assume-yes install libreadline-dev | |
sudo apt-get --assume-yes install libncursesw5-dev | |
sudo apt-get --assume-yes install lib32ncurses5-dev | |
sudo apt-get --assume-yes install libgdbm-dev | |
sudo apt-get --assume-yes install libsqlite3-dev |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\documentclass[a4paper,10pt]{article} | |
% make writing commands easier | |
\usepackage{xparse} | |
% colored text | |
\usepackage{color} | |
% include eps, pdf graphics | |
\usepackage{graphicx} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%%% | |
% Add spaces when necessary after commands | |
%%% | |
\usepackage{xspace} | |
%%% | |
% Make sure we can use colors | |
%%% | |
\usepackage{xcolor} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env bash | |
export STAR_VERSION=2.5.3a | |
export SAMTOOLS_VERSION=1.4.1 | |
export BOWTIE2_VERSION=2.3.2 | |
export SEQAN_VERSION=2.2.0 | |
export FLEXBAR_VERSION=3.0.3 | |
export BITSEQ_VERSION=0.7.5 | |
sudo apt-get install libtbb-dev |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env bash | |
### | |
# This is `Zarat`'s comment to `leo`'s answer from this SO thread: | |
# https://stackoverflow.com/questions/3497123 | |
# | |
# Plus some additional logic to checkout a branch, if specified | |
### | |
set -x # echo on |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env bash | |
find . -name "*eps" -exec sh -c 'eps2png "${0%.*}"' {} \; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env bash | |
while read p; do | |
getent hosts $p | cut -d' ' -f 1 | |
done <$1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
GCC_VERSION="10.1.0" | |
WORKDIR="$HOME/gcc/src/" | |
INSTALLDIR="/$HOME/gcc/install/gcc-${GCC_VERSION}" | |
set +h | |
unset LIBRARY_PATH CPATH C_INCLUDE_PATH PKG_CONFIG_PATH CPLUS_INCLUDE_PATH INCLUDE LD_LIBRARY_PATH |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env python3 | |
import argparse | |
import pickle | |
from pystan import StanModel | |
def main(): | |
parser = argparse.ArgumentParser(formatter_class=argparse.ArgumentDefaultsHelpFormatter, | |
description="This script compiles a stan model and pickles it to disc") | |
parser.add_argument("stan", help="The stan model file") |