This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set :application, "clever_name" | |
set :user, "deploy" | |
set :scm_username, "you" | |
set :repository, "[email protected]:#{scm_username}/#{application}.git" | |
set :deploy_to, "/var/www/apps/#{application}" | |
set :scm, :git | |
set :django_location, "/usr/local/django/trunk" | |
set :django_admin_media, "/django/contrib/admin/media" | |
set :domain, "example.com" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
You asked me to pull without telling me which branch you | |
want to merge with, and 'branch.master.merge' in | |
your configuration file does not tell me either. Please | |
name which branch you want to merge on the command line and | |
try again (e.g. 'git pull <repository> <refspec>'). | |
See git-pull(1) for details on the refspec. | |
If you often merge with the same branch, you may want to | |
configure the following variables in your configuration | |
file: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[core] | |
repositoryformatversion = 0 | |
filemode = true | |
bare = false | |
logallrefupdates = true | |
ignorecase = true | |
[remote "origin"] | |
url = [email protected]:paltman/<private_repo>.git | |
fetch = +refs/heads/*:refs/remotes/origin/* | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ git clone [email protected]:<USER>/<REPO>.git <PARENT> | |
Initialized empty Git repository in /path/to/<PARENT>/.git/ | |
fatal: exec index-pack failed. | |
fatal: index-pack failed | |
remote: Counting objects: 2093, done. | |
remote: Compressing objects: 100% (1842/1842), done. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# If there is not already a SITE_PACKAGES environment variable, then get it | |
# from Python. | |
if [[ -z $SITE_PACKAGES || ! -d $SITE_PACKAGES ]] | |
then | |
SITE_PACKAGES=`python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()"` | |
fi | |
# Parse the first argument |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Requires: | |
## svn checkout http://feedparser.googlecode.com/svn/trunk/ feedparser | |
## svn checkout http://pydelicious.googlecode.com/svn/trunk/ pydelicious | |
import sys, os, imaplib, email | |
from pydelicious import DeliciousAPI, DeliciousItemExistsError | |
MAIL_IMAP_SERVER = 'imap.gmail.com' | |
MAIL_IMAP_SSL_PORT = 993 | |
MAIL_IMAP_USERNAME = '[email protected]' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class kewlness(object): | |
def __init__(self, func): | |
self.func = func | |
def __call__(self, *args, **kwargs): | |
if len(args) > 0: | |
self.new_thing = args[0] | |
return self.func(*args, **kwargs) | |
def __repr__(self): | |
return self.func.__doc__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name githubugz | |
// @namespace paltman.com | |
// @description Show commit details in FogBugz Tickets | |
// @include https://*.fogbugz.com | |
// ==/UserScript== | |
// Set up configuration values by going to about:config in Firefox and changing | |
// the following parameters: | |
// | |
// greasemonkey.scriptvals.paltman.com/githubugz.user |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.db import models | |
from django.utils import simplejson as json | |
from django.conf import settings | |
from datetime import datetime | |
class JSONEncoder(json.JSONEncoder): | |
def default(self, obj): | |
if isinstance(obj, datetime): | |
return obj.strftime('%Y-%m-%d %H:%M:%S') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# pylink.sh - Link a Python module to your site packages directory. | |
# | |
# See http://gist.github.com/21649 for updates. | |
# Check that an argument has been given. If not, print usage string. | |
if [ -z $1 ] | |
then | |
echo "Usage: `basename $0` <path_to_module> [<link_name>]" |
OlderNewer