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
# Scroll History | |
set -g history-limit 30000 | |
# Set ability to capture on start and restore on exit window data when running an application | |
setw -g alternate-screen on | |
# Lower escape timing from 500ms to 50ms for quicker response to scroll-buffer access. | |
set -s escape-time 50 | |
# Status bar customization |
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
# Set up the prompt | |
autoload -Uz promptinit | |
promptinit | |
prompt adam1 | |
setopt histignorealldups sharehistory | |
# Use emacs keybindings even if our EDITOR is set to vi | |
bindkey -e |
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
" plugin | |
execute pathogen#infect() | |
" enable syntax highlighting | |
syntax enable | |
" enable support for 256K colors | |
set t_Co=256 | |
" set background dark |
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
import os | |
import pwd | |
def linePrepender(filename, line): | |
with open(filename, 'r+') as f: | |
content = f.read() | |
if content.split('\n')[0] == line: | |
return | |
f.seek(0, 0) | |
f.write(line.rstrip('\r\n') + '\n' + content) |
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
""" | |
Basic server settings ok for development and for production | |
""" | |
from subprocess import STDOUT, check_call, PIPE, Popen, call, check_output | |
import os | |
from zeroUtility import * | |
linuxVersion = check_output(['uname','-r']).split('\n')[0] | |
programs = (['vim-nox', 'tmux', 'python-pip', 'python-virtualenv', 'python-dev', |
NewerOlder