Skip to content

Instantly share code, notes, and snippets.

View thenigan's full-sized avatar

Tim Henigan thenigan

View GitHub Profile
#!/bin/sh -e
# Copyright 2010, Tim Henigan <tim.henigan@gmail.com>
#
# Perform a directory diff between commits in the repository using
# the external diff tool specified in the 'diff.tool' configuration
# option.
USAGE='<options> <commit>{0,2} -- <path>*
--cached Compare to the index rather than the working tree
#!/bin/sh -e
# Copyright 2010, Tim Henigan <tim.henigan@gmail.com>
#
# A simple launcher for gitk which will print usage instructions
# if requested
for i in $*
do
case "$i" in
-h|--h|--he|--hel|--help)
class ExampleClass:
classVar = "classVar"
def __init__(self):
self.instanceVar = "instanceVar"
class BorgClass:
__shared_state = {}
classVar = "classVar"
def __init__(self):
self.__dict__ = self.__shared_state
@thenigan
thenigan / gist:1854688
Created February 17, 2012 18:13
git-mergetool--lib.sh mod to use defaults if no custom merge tool config file is found
#!/bin/sh
# git-mergetool--lib is a library for common merge tool functions
diff_mode() {
test "$TOOL_MODE" = diff
}
merge_mode() {
test "$TOOL_MODE" = merge
}
@thenigan
thenigan / deltawalker
Created February 19, 2012 03:44
DeltaWalker config file for git diff and merge
diff_cmd () {
"$merge_tool_path" "$LOCAL" "$REMOTE" >/dev/null 2>&1
}
merge_cmd () {
if $base_present
then
"$merge_tool_path" "$LOCAL" "$REMOTE" "$BASE" "$MERGED" >/dev/null 2>&1
status=$?
else
@thenigan
thenigan / 0001-mergetools-add-support-for-DeltaWalker-dw.patch
Created March 1, 2012 02:57
Git patch to add DeltaWalker support
From 8d1944e1c408030bab2ebb90b8c24fb4294c7fea Mon Sep 17 00:00:00 2001
From: Tim Henigan <tim.henigan@gmail.com>
Date: Thu, 1 Mar 2012 14:19:32 -0500
Subject: [PATCH] mergetools: add support for DeltaWalker
Since bc7a96a8965d, integration with external diff/merge tools requires
a mergetools/$tool file to be present.
This commits adds DeltaWalker support.
@thenigan
thenigan / hs_err_pid7636.log
Created March 4, 2012 03:48
JRE Exception when DeltaWalker is used to merge without $PWD in -merged option
#
# A fatal error has been detected by the Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6d89019f, pid=7636, tid=1388
#
# JRE version: 6.0_31-b05
# Java VM: Java HotSpot(TM) Client VM (20.6-b01 mixed mode, sharing windows-x86 )
# Problematic frame:
# V [jvm.dll+0xa019f]
#
@thenigan
thenigan / site_map.txt
Created April 24, 2015 16:34
AGA online ratings site map
Rough site map (split up by account type):
- Anonymous
* List of game servers
* List of recent games played by anyone on any server
* List of recent games played by anyone on specific server
* List of games for specific Player account (single nick on single server)(includes Total #, W/L, %)
* NOT ALLOWED to view User profiles
* NOT ALLOWED to see all nicks for User on server
* NOT ALLOWED to see AGA ID of player nicks