Skip to content

Instantly share code, notes, and snippets.

View AaronO's full-sized avatar

Aaron O'Mullan AaronO

View GitHub Profile
@cyrusboadway
cyrusboadway / google-domains-dynamic-dns-update.sh
Created February 20, 2016 17:21
Script to update a Google Domains DNS record
#!/bin/bash
### Google Domains provides an API to update a DNS "Syntheitc record". This script
### updates a record with the script-runner's public IP, as resolved using a DNS
### lookup.
###
### Google Dynamic DNS: https://support.google.com/domains/answer/6147083
### Synthetic Records: https://support.google.com/domains/answer/6069273
USERNAME=""
@AaronO
AaronO / git-clean-branches.sh
Created September 1, 2015 13:07
A small utility script that remove merged branches it ignores current branch, master and gh-pages for security
#!/bin/sh
git branch --merged | grep -v "*" | grep -v master | grep -v gh-pages | xargs git branch -d
@dragan
dragan / build.libgit2sharp.mac.sh
Created November 7, 2013 20:42
LibGit2Sharp Changes
#!/bin/bash
PREVIOUS_DYLD_FALLBACK_LIBRARY_PATH=$DYLD_FALLBACK_LIBRARY_PATH
LIBGIT2SHA=`cat ./LibGit2Sharp/libgit2_hash.txt`
SHORTSHA=${LIBGIT2SHA:0:7}
rm -rf cmake-build
mkdir cmake-build && cd cmake-build
@dypsilon
dypsilon / frontendDevlopmentBookmarks.md
Last active June 13, 2024 10:59
A badass list of frontend development resources I collected over time.
@piscisaureus
piscisaureus / pr.md
Created August 13, 2012 16:12
Checkout github pull requests locally

Locate the section for your github remote in the .git/config file. It looks like this:

[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url = git@github.com:joyent/node.git

Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this: