This file contains 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 | |
set -e | |
# parse arguments | |
POSITIONAL_ARGS=() | |
while [[ $# -gt 0 ]]; do | |
case $1 in | |
-R|--restart) # fresh restart of a job with the current commit (previous work will be lost) | |
RESTART=Y |
This file contains 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
brew install qpdf # on mac | |
qpdf [pdf_file] --pages . [start_page]-[end_page] -- [new_pdf_file] | |
# example: | |
# qpdf paper_with_appendix.pdf --pages . 1-11 -- paper.pdf |
This file contains 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 | |
# Adapted from https://gist.github.com/ryin/3106801 | |
# 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 |
This file contains 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
defshell -bash | |
altscreen on | |
autodetach on | |
caption always "%{= kw}%-w%{= kG}%{+b}[%n %t]%{-b}%{= kw}%+w %=%d %M %0c %{g}%H%{-}" | |
# huge scrollback buffer | |
defscrollback 5000 | |
# switch windows with F3 (prev) and F4 (next) |
This file contains 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
" musts | |
scriptencoding utf-8 | |
set nocompatible | |
syntax on | |
" highlight search (ctrl+l to remove highlights) | |
set hlsearch | |
nnoremap <C-L> :nohl<CR><C-L> | |
" lower letter search ignore cases |