Skip to content

Instantly share code, notes, and snippets.

View MikeDacre's full-sized avatar

Mike Dacre MikeDacre

View GitHub Profile
@MikeDacre
MikeDacre / stdout_eqtlbma.txt
Created October 23, 2014 22:45
stdout_eqtlbma.txt
START eqtlbma 2014-10-23 15:43:38
version 1.2 compiled Oct 23 2014 15:01:56
cmd-line: eqtlbma --geno list_genotypes.txt --scoord snp_coords.bed.gz --pheno list_explevels.txt --fcoord gene_coords.bed.gz --anchor TSS --cis 1000 --out out_eqtlbma --step 3 --covar list_covariates.txt --gridL grid_phi2_oma2_general.txt --gridS grid_phi2_oma2_with-configs.txt --bfs all --mvlr
cwd: /home/mike/my_packages/eqtlbma-git/eqtlbma_tutorial_data
load file list_explevels.txt ...
items loaded: 3
load file list_genotypes.txt ...
items loaded: 3
load samples ...
nb of samples (phenotypes): 200
@MikeDacre
MikeDacre / nfs_headnode.txt
Last active August 29, 2015 14:09
NFS Trouble
Server packet stats:
packets udp tcp tcpconn
506158 0 505786 106
Server rpc stats:
calls badcalls badauth badclnt xdrcall
506154 0 0 0 0
Server reply cache:
hits misses nocache
@MikeDacre
MikeDacre / jvarkit-install.py
Created January 27, 2015 23:11
Manage jvarkit files
#!/usr/bin/env python3
import subprocess, sys, os, re
from collections import OrderedDict
jvarkit="/usr/share/jvarkit"
install_location="/usr/local/bin"
def print_tools(tools):
""" Pretty print a list of running interactive jobs from create_queue """
@MikeDacre
MikeDacre / watch_job
Created March 21, 2015 16:41
Watch a submitted qsub job and email the results of qstat -f when complete
#!/bin/bash
if [ $# != 2 ]; then
echo "USAGE: watch_job <submit_script> <email_address>"
exit 1
fi
job=$1
email=$2
while true; do
@MikeDacre
MikeDacre / run-lines.vim
Created April 13, 2015 19:56
Vim-IPython IDE. Execute python and shell lines, cells (like matlab), selected text, and blocks in an interactive session using vim-screen.
"" This part runs commands in an interactive session, it requires
"" [vim-screen](https://github.com/ervandew/screen) to function
" Start Screen Session, Default to IPython in python files
fun StartScreenTmux()
if !g:ScreenShellActive
if &filetype == 'python'
:IPython
elseif &filetype == 'python3'
:IPython
@MikeDacre
MikeDacre / tmux-server-32072.log
Created July 23, 2015 18:22
tmux -vvvv server log output for Ubuntu machine; successfully executes tpm
server started, pid 32072
cmdq 0x1e8a6f0: bind-key C-b send-prefix (client -1)
cmdq 0x1e8a6f0: bind-key C-o rotate-window (client -1)
cmdq 0x1e8a6f0: bind-key C-z suspend-client (client -1)
cmdq 0x1e8a6f0: bind-key Space next-layout (client -1)
cmdq 0x1e8a6f0: bind-key ! break-pane (client -1)
cmdq 0x1e8a6f0: bind-key " split-window (client -1)
cmdq 0x1e8a6f0: bind-key # list-buffers (client -1)
cmdq 0x1e8a6f0: bind-key $ command-prompt -I#S "rename-session '%%'" (client -1)
cmdq 0x1e8a6f0: bind-key % split-window -h (client -1)
@MikeDacre
MikeDacre / tmux-server-12371.log
Created July 23, 2015 18:23
tmux -vvvv server log output for Arch Linux machine; fails to execute tpm
server started, pid 12371
cmdq 0x1b73ce0: bind-key C-b send-prefix (client -1)
cmdq 0x1b73ce0: bind-key C-o rotate-window (client -1)
cmdq 0x1b73ce0: bind-key C-z suspend-client (client -1)
cmdq 0x1b73ce0: bind-key Space next-layout (client -1)
cmdq 0x1b73ce0: bind-key ! break-pane (client -1)
cmdq 0x1b73ce0: bind-key " split-window (client -1)
cmdq 0x1b73ce0: bind-key # list-buffers (client -1)
cmdq 0x1b73ce0: bind-key $ command-prompt -I#S "rename-session '%%'" (client -1)
cmdq 0x1b73ce0: bind-key % split-window -h (client -1)
1,74c1,74
< server started, pid 12371
< cmdq 0x1b73ce0: bind-key C-b send-prefix (client -1)
< cmdq 0x1b73ce0: bind-key C-o rotate-window (client -1)
< cmdq 0x1b73ce0: bind-key C-z suspend-client (client -1)
< cmdq 0x1b73ce0: bind-key Space next-layout (client -1)
< cmdq 0x1b73ce0: bind-key ! break-pane (client -1)
< cmdq 0x1b73ce0: bind-key " split-window (client -1)
< cmdq 0x1b73ce0: bind-key # list-buffers (client -1)
< cmdq 0x1b73ce0: bind-key $ command-prompt -I#S "rename-session '%%'" (client -1)
@MikeDacre
MikeDacre / tmux-server-filtered.diff
Last active August 29, 2015 14:25
Diff of functioning and nonfunctioning tpm tmux server logs. Left file (>) is functional, right file (<) is not
75c75
< cmdq set-option -g default-shell /usr/bin/zsh (client -1)
---
> cmdq set-option -g default-shell /afs/ir/users/d/a/dacre/usr/bin/zsh (client -1)
113c113
< cmdq set-environment -g TMUX_PLUGIN_MANAGER_PATH /home/dacre/.tmux/plugins/ (client 11)
---
> cmdq set-environment -g TMUX_PLUGIN_MANAGER_PATH /afs/ir/users/d/a/dacre/.tmux/plugins/ (client 11)
115c115
< cmdq bind-key I run-shell /home/dacre/.tmux/plugins/tpm/scripts/install_plugins.sh >/dev/null 2>&1 (client 11)
@MikeDacre
MikeDacre / nicstat-PKGBUILD.patch
Created August 11, 2015 18:02
Patch for nicstat PKGBUILD from version 1.92 to 1.95
--- nicstat/PKGBUILD 2015-06-14 06:52:34.000000000 -0700
+++ PKGBUILD 2015-08-11 10:56:27.331639326 -0700
@@ -3,7 +3,7 @@
# vim:set ts=2 sw=2 et ft=sh tw=100: expandtab
pkgname=nicstat
-pkgver=1.92
+pkgver=1.95
pkgrel=3
pkgdesc='Network traffic statics utility'