Skip to content

Instantly share code, notes, and snippets.

Iain Connor iainconnor

Block or report user

Report or block iainconnor

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
iainconnor / git-cleanup
Last active Oct 20, 2017
Custom cleanup command for git.
View git-cleanup
source "$(git --exec-path)/git-sh-setup"
if git diff-index --quiet HEAD --; then
git checkout master
git remote update origin --prune
for remote in `git branch -r`; do git branch --track ${remote#origin/} $remote &> /dev/null; done
git pull --all
git branch -r --merged master | grep -v master | sed 's/origin\///' | xargs -n 1 git push --delete origin &> /dev/null
View swagger.yaml
openapi: "3.0.0"
version: a.bc
title: Swagger Petstore
description: Foobar
- url:
# Get Sudo.
if [ $EUID != 0 ]; then
sudo "$0" "$@"
exit $?
# Install Xcode command line tools.
xcode-select --install
iainconnor / Android Studio .gitignore
Created Jan 24, 2014
A .gitignore for use in Android Studio
View Android Studio .gitignore
# Built application files
# Crashlytics configuations
# Local configuration file (sdk path, etc)
# Gradle generated files
You can’t perform that action at this time.