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 | |
while read oldrev newrev refname | |
do | |
if [ "$refname" == "refs/heads/master" ]; then | |
WORKDIR=/path/to/local/repo | |
export GIT_DIR=$WORKDIR/.git | |
pushd $WORKDIR >/dev/null | |
git pull --quiet >/dev/null | |
# run some code | |
popd >/dev/null |
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
[nosetests] | |
with-spec=1 | |
spec-color=1 | |
with-growl=1 |
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
name Gitalist | |
<Model::CollectionOfRepos> | |
#git /path/to/git | |
# Configure this to where your repositories are. | |
repo_dir /home/git/repositories/ | |
</Model::CollectionOfRepos> | |
sitename "Gitalist" |
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
" Remember last location in file | |
if has("autocmd") | |
au BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$") | |
\| exe "normal g'\"" | endif | |
endif |
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
<advancedsettings> | |
<moviestacking action="append"> | |
<regexp>(.+)\(([0-9])\)()(\.[^.]+)$</regexp> | |
</moviestacking> | |
</advancedsettings> |
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
#!/usr/bin/env python | |
""" | |
midwich_image_fix.py | |
Created by Lee Perry on 2011-10-30. | |
Copyright (c) 2011 iCode Solutions Ltd. All rights reserved. | |
""" | |
import sys | |
import csv |
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
[trove] | |
username=me | |
password=secret | |
url=http://trove.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
from django.template.defaultfilters import slugify | |
def generate_slug(cls, value): | |
count = 1 | |
slug = slugify(value) | |
if not isinstance(cls, type): | |
cls = cls.__class__ | |
def _get_query(cls, **kwargs): | |
if cls.objects.filter(**kwargs).count(): |
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
require 'rubygems' | |
require 'sinatra' | |
require 'pony' | |
require 'haml' | |
set :haml, {:format => :html5} | |
set :public, File.dirname(__FILE__) | |
set :views, File.dirname(__FILE__) | |
# Create the page class and give it a title of Contact for the layout |
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
AUTHENTICATION_BACKENDS = ( | |
'social_auth.backends.google.GoogleOAuth2Backend', | |
'django.contrib.auth.backends.ModelBackend', | |
) | |
LOGIN_REDIRECT_URL = '/' | |
GOOGLE_OAUTH2_CLIENT_ID = os.environ['GOOGLE_OAUTH2_CLIENT_ID'] | |
GOOGLE_OAUTH2_CLIENT_SECRET = os.environ['GOOGLE_OAUTH2_CLIENT_SECRET'] | |
GOOGLE_WHITE_LISTED_DOMAINS = ['incuna.com'] | |
SOCIAL_AUTH_USER_MODEL = 'auth.User' |