Skip to content

Instantly share code, notes, and snippets.

View kleinlieu's full-sized avatar

Klein Lieu kleinlieu

View GitHub Profile

Effective Engineer - Notes

What's an Effective Engineer?

  • They are the people who get things done. Effective Engineers produce results.

Adopt the Right Mindsets

@kleinlieu
kleinlieu / create_django_heroku_project.sh
Created October 7, 2012 05:59 — forked from sammyrulez/create_django_heroku_project.sh
Script to create a new Heroku-ready Django project.
#!/bin/bash
if [ $# -ne 2 ]
then
echo "Error in $0 - Invalid Argument Count"
echo "Syntax: $0 project_name desidered_heroku_name"
exit
fi
project_name=$1
@kleinlieu
kleinlieu / fabfile.py
Created October 7, 2012 05:55 — forked from IlianIliev/fabfile.py
Fabric script that eases the creation of new Django Project
"""
This fabric script automates the creation of a virtual environment and a Django
project. The result will be virtual environtment with the name of the project.
The folder namer where the project code will be placed is specified in
SOURCE_DIRECTORY_NAME, a static root folder will be created and settings.py
will be updated.
"""
try:
from fabric.api import env, run, local
from fabric.context_managers import lcd, prefix