Skip to content

Instantly share code, notes, and snippets.

@rallygroup
rallygroup / .gitconfig
Created November 4, 2010 00:14
Sample Git Config file
[user]
name = Your Name
email = email@example.com
[color]
diff = auto
status = auto
branch = auto
interactive = auto
ui = true
pager = true
@rallygroup
rallygroup / GitPullNewRepo.sh
Created September 17, 2010 22:59
Git config script for setting defaults
git config --global user.name "Your Name"
git config --global user.email your@email.com
cd your_project_dir
git init
git remote add origin git@github.com:switchyard/ocp-litprep.git
git config branch.master.remote origin
git config branch.master.merge refs/heads/master
# * * * * * command to be executed
# - - - - -
# | | | | |
# | | | | +- - - - day of week (0 - 6) (Sunday=0)
# | | | +- - - - - month (1 - 12)
# | | +- - - - - - day of month (1 - 31)
# | +- - - - - - - hour (0 - 23)
# +- - - - - - - - minute (0 - 59)
#!/usr/bin/env bash
# git-addremove
git add -A
git ls-files --deleted | xargs git rm
"""
Here's my sample Django settings for a project I recently did. Visit http://damonjablons.wordpress.com to see the explanation.
"""
import os
import socket
# Set DEBUG = True if on the production server
if socket.gethostname() == 'your.domain.com':
DEBUG = False