Skip to content

Instantly share code, notes, and snippets.

View Fi3's full-sized avatar

Fi3

  • anywhere
View GitHub Profile
# 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
@Fi3
Fi3 / .zshrc
Created February 4, 2016 13:05
# 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
@Fi3
Fi3 / .vimrc
Last active September 21, 2016 11:49
" plugin
execute pathogen#infect()
" enable syntax highlighting
syntax enable
" enable support for 256K colors
set t_Co=256
" set background dark
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)
@Fi3
Fi3 / zero.py
Last active October 26, 2016 18:47
"""
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',