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
global !p | |
def first_blank_line(): | |
""" Search current vim buffer for first blank line. If not found return current line """ | |
b = snip.buffer | |
index = 0 | |
break_index = 100 | |
com_delim = re.compile(r'^(\s+)?(""")') | |
in_comment = False | |
for line in b: | |
index += 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
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
# vim:fenc=utf-8 tabstop=4 expandtab shiftwidth=4 softtabstop=4 | |
""" | |
#============================================================================# | |
# # | |
# AUTHOR: Michael D Dacre, [email protected] # | |
# ORGANIZATION: Stanford University # | |
# LICENSE: MIT License, property of Stanford, use as you wish # | |
# CREATED: 2015-12-13 10:07 # |
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
--- 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' |
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
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) |
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
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) |
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
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) |
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
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) |
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
"" 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 |
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 | |
if [ $# != 2 ]; then | |
echo "USAGE: watch_job <submit_script> <email_address>" | |
exit 1 | |
fi | |
job=$1 | |
email=$2 | |
while true; do |
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 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 """ |