Skip to content

Instantly share code, notes, and snippets.

View macroscopicentric's full-sized avatar

Rachel K. macroscopicentric

View GitHub Profile

Keybase proof

I hereby claim:

  • I am macroscopicentric on github.
  • I am magpieohmy (https://keybase.io/magpieohmy) on keybase.
  • I have a public key ASDSPscAzuW0Nl2YtFC-D3_ZC9M6ylv4ypvDA--9t-2Iiwo

To claim this, I am signing this object:

@macroscopicentric
macroscopicentric / .bashrc
Last active August 29, 2015 14:23
My dotfiles.
PATH=/usr/local/bin:$PATH
PATH=/Applications/Postgres93.app/Contents/MacOS/bin:$PATH
PATH=/usr/local/heroku/bin:$PATH
if [ -f $(brew --prefix)/etc/bash_completion ]; then
. $(brew --prefix)/etc/bash_completion
fi
if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi
@macroscopicentric
macroscopicentric / boilerplate.py
Created October 10, 2014 17:20
Boilerplate script for creating new project repos.
import sys
import subprocess
def make_boilerplate(directory):
#Don't split and add shell=True arg to subprocess to concatenate commands.
mkdir = 'mkdir {0}'
tests = 'mkdir {0}/tests && touch {0}/tests/__init__.py && touch {0}/__init__.py'
# virtualenv_config = 'mkvirtualenv {0} && pip install nose'
git_setup = 'git -C {0} init && echo "*.pyc" > {0}/.gitignore && git -C {0} add -A && git -C {0} commit -m "Boilerplate repo."'
commands = [mkdir, tests, git_setup]