Skip to content

Instantly share code, notes, and snippets.

View petemounce's full-sized avatar

Peter Mounce petemounce

View GitHub Profile
@nulpunkt
nulpunkt / oldest_todo.bash
Created October 27, 2014 10:48
Find the oldest TODO in the codebase
git grep -n -w "FIXME\|TODO\|XXX" | awk '{ print $1 }' | while read fileline; do
filename=`echo $fileline | cut -d: -f1`
lineno=`echo $fileline | cut -d: -f2`
time=`git blame -p -t $filename -L$lineno,$lineno | grep author-time | cut -d' ' -f2`
msg=`git blame $filename -L$lineno,$lineno`
echo "$time $fileline $msg"
done | sort | cut -d' ' -f1-
@stuartf7
stuartf7 / install-teamcity.sh
Last active December 12, 2015 12:39
Installing TeamCity on Amazon Linux
# Download TeamCity 7.1.5
wget http://download.jetbrains.com/teamcity/TeamCity-7.1.5.tar.gz
# Extract the downloaded file
tar -xvzf TeamCity-7.1.5.tar.gz
# Tidy up the folder name and move it to a sensible location /var/teamcity
mv TeamCity teamcity
sudo mv teamcity /var/.
@jonorossi
jonorossi / gist:1397643
Created November 27, 2011 14:42
Sync TeamCity build configurations with Git branches
using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Net;
using System.Text;
using System.Xml.Linq;
using System.Xml.XPath;
using LibGit2Sharp;
namespace TCBuildConfigSync
@tankchintan
tankchintan / gist:1335220
Last active November 30, 2019 00:17
Procedure for installing and setting Sun JDK Java on Default Amazon Linux AMI
# First verify the version of Java being used is not SunJSK.
java -version
# Get the latest Sun Java SDK from Oracle http://www.oracle.com/technetwork/java/javase/downloads/jdk-7u1-download-513651.html
wget http://download.oracle.com/otn-pub/java/jdk/7u1-b08/jdk-7u1-linux-i586.rpm
# Rename the file downloaded, just to be nice
mv jdk-7u1-linux-i586.rpm\?e\=1320265424\&h\=916f87354faed15fe652d9f76d64c844 jdk-7u1-linux-i586.rpm
# Install Java