Skip to content

Instantly share code, notes, and snippets.

View johnthedebs's full-sized avatar

John Debs johnthedebs

View GitHub Profile

Folder Structure

Motivations

  • Clear feature ownership
  • Module usage predictibility (refactoring, maintainence, you know what's shared, what's not, etc)
  • CI runs only the tests that matter (future)
@johnthedebs
johnthedebs / hack.sh
Created April 1, 2012 18:27 — forked from erikh/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#
@johnthedebs
johnthedebs / osx_developer_installation.rst
Created February 28, 2012 02:44 — forked from KristianOellegaard/osx_developer_installation.rst
Instructions on how to setup an OSX developer machine for (python/django) development
@johnthedebs
johnthedebs / osx_developer_installation.rst
Created August 23, 2011 15:27 — forked from stefanfoulis/osx_developer_installation.rst
Instructions on how to setup an OSX developer machine for (python/django) development

OSX Developer System installation

This guide assumes a fresh install of Mac OSX 10.6 Snow Leopard or 10.7 Lion.

Homebrew

Follow https://github.com/mxcl/homebrew/wiki/installation to get the basic setup up and running. (the default, not the alternate installs)

@johnthedebs
johnthedebs / Instructions.markdown
Last active April 18, 2017 18:34 — forked from valyagolev/Instructions.markdown
Virtualenv in new Terminal windows/tabs

Run these commands in your console, they will edit necessary files:

echo 'basename "$VIRTUAL_ENV" > ~/.last_venv' >> $VIRTUALENVWRAPPER_HOOK_DIR/postactivate
echo 'rm ~/.last_venv' >> $VIRTUALENVWRAPPER_HOOK_DIR/postdeactivate
touch ~/.last_venv

Then open your ~/.bashrc or ~/.profile or whatever your shell uses and append:

if [ -e ~/.last_venv ]; then

workon cat ~/.last_venv

"""
This fabric file makes setting up and deploying a django application much
easier, but it does make a few assumptions. Namely that you're using Git,
Apache and mod_wsgi and your using Debian or Ubuntu. Also you should have
Django installed on your local machine and SSH installed on both the local
machine and any servers you want to deploy to.
_note that I've used the name project_name throughout this example. Replace
this with whatever your project is called._