Skip to content

Instantly share code, notes, and snippets.

@aaronbronow
aaronbronow / tmux.conf
Last active October 13, 2020 03:08
My tmux.conf
# http://zanshin.net/2013/09/05/my-tmux-configuration/
# make tmux display things in 256 colors
# set -g default-terminal "screen-256color"
set -g default-terminal "xterm"
# set scrollback history to 10000 (10k)
set -g history-limit 10000
# set Ctrl-a as the default prefix key combination
@aaronbronow
aaronbronow / .vimrc
Last active May 25, 2018 05:48
My vimrc
execute pathogen#infect()
syntax on
filetype plugin indent on
filetype plugin on
"let g:NERDTreeDirArrows=0
let g:NERDTreeDirArrowExpandable="+"
let g:NERDTreeDirArrowCollapsible="~"
"set encoding=utf-8
" set tabs to spaces
@aaronbronow
aaronbronow / gist:b9f89b796c6c9dd1623f
Last active August 28, 2015 20:22
vagrant timezone
timezone = 'US/Pacific'
config.vm.provision "shell", :inline =>
"echo #{timezone} | sudo tee /etc/timezone && sudo dpkg-reconfigure --frontend noninteractive tzdata"
@aaronbronow
aaronbronow / .bashrc
Last active August 2, 2016 17:52
Chromebook Ubuntu bashrc
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
SELECT pg_terminate_backend(pg_stat_activity.pid) FROM pg_stat_activity WHERE pid <> pg_backend_pid() AND pg_stat_activity.datname = 'TARGET_DB';
@aaronbronow
aaronbronow / regex-up-to-last-slash
Created October 4, 2016 20:41
regex match URL up to last slash
.*\\(?=[^\\]*$)
Folders:
~/.vagrant.d/
~/Dropbox*
~/Google\ Drive*
~/Library/Containers/com.docker.docker/data/database/
~/Library/Ethereum/
~/megasync/
Extensions:
wab~,vmc,vhd,vhdx,vdi,vo1,vo2,vsv,vud,iso,dmg,sparseimage,sys,cab,exe,msi,dll,dl_,wim,ost,o,qtch,log,ithmb,vmdk,vmem,vmsd,vmsn,vmss,vmx,vmxf,menudata,appicon,appinfo,pva,pvs,pvi,pvm,fdd,hds,drk,mem,nvram,hdd,qcow2,swapfile,sav,box
# Set colors to match iTerm2 Terminal Colors
export TERM=xterm-256color
# if running bash
if [ -n "$BASH_VERSION" ]; then
# include .bashrc if it exists
if [ -f "$HOME/.bashrc" ]; then
. "$HOME/.bashrc"
fi
fi
mkdir -p ~/.vim/autoload ~/.vim/bundle && \
curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim
curl -LSso ~/.vimrc https://gist.githubusercontent.com/aaronbronow/4f25eaac9e6e43df8b62/raw
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
git clone https://github.com/ctrlpvim/ctrlp.vim.git ~/.vim/bundle/ctrlp.vim
git clone https://github.com/mattn/webapi-vim.git ~/.vim/bundle/webapi-vim
git clone https://github.com/mattn/gist-vim.git ~/.vim/bundle/gist-vim
git clone https://github.com/scrooloose/nerdtree.git ~/.vim/bundle/nerdtree
git clone https://github.com/altercation/vim-colors-solarized.git ~/.vim/bundle/vim-colors-solarized
0x43a1aa25aA535958dc1cD2E7A59A97B44174fb0D