Skip to content

Instantly share code, notes, and snippets.

View dougmorato's full-sized avatar

Doug Morato dougmorato

View GitHub Profile
@dougmorato
dougmorato / fabfile.py
Created April 23, 2011 23:25 — forked from onyxfish/fabfile.py
Chicago Tribune News Applications fabric deployment script
from fabric.api import *
"""
Base configuration
"""
env.project_name = '$(project)'
env.database_password = '$(db_password)'
env.site_media_prefix = "site_media"
env.admin_media_prefix = "admin_media"
env.newsapps_media_prefix = "na_media"
"""
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._
@dougmorato
dougmorato / sphinx.conf
Created June 20, 2011 16:30
Sample sphinx.conf file to index Tryton product name and description
#
# Sphinx configuration file sample
#
# Please refer to doc/sphinx.html for details.
#
#############################################################################
## data source definition
#############################################################################
@dougmorato
dougmorato / search
Created July 13, 2011 14:54
Output os sphinx `search` command
@dougmorato
dougmorato / dfamorato.vim
Created July 19, 2011 22:40
dfamorato vim colorscheme
" Vim color file
"
" Author: Douglas Morato <dfamorato@gmail.com>
"
" Note:
" Based on the monokai theme for vim and textmate.
" Based on the darkmate theme orm vim by YearOfMoo Matias Niemelä <matias@yearofmoo.com>
"
" Based on the FRUITY theme by Armin Ronacher <armin.ronacher@active-4.com>
@dougmorato
dougmorato / gist:1166559
Created August 23, 2011 21:10 — forked from voodootikigod/gist:1155790
PyCodeConf Ticket Give-away
Day job: Software Developer and Security Expert
Favorite Python project: FABRIC
Favorite Conference: Pycon 2011
Python Experience Level: Intermediate
@dougmorato
dougmorato / securing_rails_updates.md
Created March 6, 2012 08:08 — forked from peternixey/securing_rails_updates.md
How Homakov hacked GitHub and how to protect your application

##How Homakov hacked GitHub and the line of code that could have prevented it


Please note: THIS ARTICLE IS NOT WRITTEN BY THE GITHUB TEAM or in any way associated with them. It's simply hosted as a Gist because the markdown formatting is excellent and far clearer than anything I could manage on my personal Tumblr at peternixey.com.

If you'd like to follow me on twitter my handle is @peternixey


@dougmorato
dougmorato / hack.sh
Created April 1, 2012 07:53 — 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
#
@dougmorato
dougmorato / tmux.conf
Created April 10, 2012 06:10 — forked from shinzui/tmux.conf
tmux.conf
# ~/.tmux.conf
#
# See the following files:
#
# /opt/local/share/doc/tmux/t-williams.conf
# /opt/local/share/doc/tmux/screen-keys.conf
# /opt/local/share/doc/tmux/vim-keys.conf
#
# URLs to read:
#
@dougmorato
dougmorato / mytmux.sh
Created April 10, 2012 06:10 — forked from jjt/mytmux.sh
My tmux.conf and a sample Django/compass/hamlpy shell script
#!/bin/bash
#
# tmux.sh - example for Django/compass/hamlpy tmux dev setup
#
mydir=/home/dev/movietempest
source $mydir/env-django-1.3.2/bin/activate
py=$mydir/env-django-1.3.2/bin/python
aliaspy=alias py="$py"
ses=mt