Skip to content

Instantly share code, notes, and snippets.

View labkey-tchad's full-sized avatar

Trey Chadick labkey-tchad

View GitHub Profile
function mddiff()
{
LEFT_REF=$1
RIGHT_REF=$2
NAME=$(basename ${PWD})
if [ -z "${LEFT_REF:-}" ] || [ -z "${RIGHT_REF:-}" ]; then
echo "Please specify the branches, tags, or commits to compare." >&2
echo " Usage: mddiff ref1 ref2" >&2
@labkey-tchad
labkey-tchad / teamcityVcsUpdate.py
Last active February 26, 2018 19:47
Convert TeamCity GitHub VCS roots to use password authentication
#!/usr/bin/env python3
#
from simple_rest_client.api import API
from simple_rest_client.resource import Resource
import xml.etree.ElementTree as ET
class VcsRootResource(Resource):
actions = {
'listRoots': {'method': 'GET', 'url': '/httpAuth/app/rest/vcs-roots'},