Skip to content

Instantly share code, notes, and snippets.

#timing & run
system("echo " + simfile " >> timing.txt");
system("TIME /T >> timing.txt");
run;
system("TIME /T >> timing.txt");
@heywbj
heywbj / postactivate
Created February 10, 2015 00:14
virtualenv/bin/postactivate
#!/bin/bash
# This hook is sourced after this virtualenv is activated.
export DJANGO_SETTINGS_MODULE=gypsum.settings.dev
export GYPSUM_DB_NAME=gypsum
export PATH=$PATH:$PWD/node_modules/.bin
set hidden
set number
set background=dark
set ignorecase
set incsearch
set hlsearch
set autoindent
@heywbj
heywbj / .bash_aliases
Created December 25, 2014 21:29
.bash_aliases
export PROJECT_HOME=$HOME/projects
export EDITOR=/usr/bin/vim
source `which virtualenvwrapper.sh`
alias ls='ls -F --color'
alias less='less -Ri'
alias tree='tree -C'
alias grep='grep --color=always'
alias ack='ack --color'
@heywbj
heywbj / .vimrc
Created December 25, 2014 21:29
.vimrc
syntax enable
set hidden
set number
set ruler
set background=dark
set ignorecase
set incsearch
set hlsearch
@heywbj
heywbj / .bash_aliases
Created December 25, 2014 21:12
.bash_aliases
export PROJECT_HOME=$HOME/projects
export EDITOR=/usr/bin/vim
source `which virtualenvwrapper.sh`
alias ls='ls -F --color'
alias less='less -R'
alias tree='tree -C'
alias grep='grep --color=always'
alias ack='ack --color'
@heywbj
heywbj / gist:da10d99f66df6361db9f
Last active March 1, 2016 16:26
Get Elastic beanstalk environment information
import boto.utils
import boto.beanstalk
good_statuses = ('Launching', 'Updating', 'Ready')
def get_eb_environment_description():
identity_document = boto.utils.get_instance_identity()['document']
connection = boto.beanstalk.connect_to_region(identity_document['region'])
envs = (e for e in
@heywbj
heywbj / .vimrc
Created September 18, 2014 15:31
Vim configuratoin
syntax enable
set hidden
set number
set background=dark
set ignorecase
set incsearch
set hlsearch
@heywbj
heywbj / .Xmodmap
Created September 17, 2014 06:14
Xmodmap configuration
!Swap right control and right alt
remove Control = Control_R
remove Mod1 = Alt_R
keycode 105 = Alt_R
keycode 108 = Control_R
add Control = Control_R
add Mod1 = Alt_R
@heywbj
heywbj / .rtorrent.rc
Created September 17, 2014 06:12
rtorrent configuration
port_range=6999-6999
download_rate = 1600
upload_rate = 600
directory = ./torrents/
session = ./session/
schedule = watch_directory_1,10,10,"load_start=./watch/*.torrent,d.set_custom1=./done"
schedule = watch_directory_2,10,10,"load_start=./watch_music/*.torrent,d.set_custom1=./done_music"