Skip to content

Instantly share code, notes, and snippets.

View wesleym's full-sized avatar

Wesley Moy wesleym

View GitHub Profile
@wesleym
wesleym / gist:1839198
Created February 15, 2012 21:45
With link to forums
#!/usr/bin/env python3
from xml.dom.minidom import parse
doc = parse('SearchRequest.xml')
for item in doc.getElementsByTagName('item'):
title = item.getElementsByTagName('title')[0].firstChild.nodeValue
forum_url = None
for custom_field in item.getElementsByTagName('customfield'):
#!/bin/bash
#
# git-svn-diff originally by (http://mojodna.net/2009/02/24/my-work-git-workflow.html)
# modified by mike@mikepearce.net
# modified by aconway@[redacted] - handle diffs that introduce new files
#
# Generate an SVN-compatible diff against the tip of the tracking branch
# Get the tracking branch (if we're on a branch)
TRACKING_BRANCH=`git svn info | grep URL | sed -e 's/.*\/branches\///'`