Skip to content

Instantly share code, notes, and snippets.

View macmanes's full-sized avatar
🏠
Working from home

Matt MacManes macmanes

🏠
Working from home
View GitHub Profile
@macmanes
macmanes / tmux.md
Last active December 15, 2017 14:59 — forked from andreyvit/tmux.md
tmux cheatsheet

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

@macmanes
macmanes / snippet.mk
Last active August 29, 2015 14:18 — forked from lindenb/snippet.mk
define run_fastqc
$$(addsuffix .ok,$(1)) : $(1)
mkdir -p $$(dir $$@) ∧ \
unzip -p $$< $$(addsuffix .tmp_fastqc/fastqc_data.txt,$$(notdir $$<)) |\
grep ">>" | grep -v ">>END_MODULE" | cut -c 3- |\
awk -F ' ' 'BEGIN{N=0;} {if(($$$$1=="Basic Statistics" || $$$$1=="Per base sequence quality" || $$$$1=="Per base N content") ∧ $$$$2=="pass" ) N++;} END { if(N>2) {print "__PASS__"}}' |\
grep __PASS__ ∧ echo "FASTQC ok for $$<" $$@
#!/bin/bash
# Script for installing tmux on systems where you don't have root access.
# tmux will be installed in $HOME/local/bin.
# It's assumed that wget and a C/C++ compiler are installed.
# exit on error
set -e
TMUX_VERSION=1.8