Skip to content

Instantly share code, notes, and snippets.

View stuarthicks's full-sized avatar

Stuart Hicks stuarthicks

View GitHub Profile
@haku
haku / gist:4509433
Last active December 10, 2015 23:28
jira-dark
@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document url-prefix("http://issues"),
url-prefix("https://jira") {
#announcement-banner {
display: none;
}
body,div,span,table,td,h1,h2,h3,h4,h5,h6,h7,a {
@thinkdevcode
thinkdevcode / gist:4106633
Created November 18, 2012 18:18
Route53 create record set example
r53 = AWS::Route53.new(
:access_key_id => 'KEY_ID',
:secret_access_key => 'ACCESS_KEY')
host_zone_id = "ZONE_ID"
resp = r53.client.change_resource_record_sets({ :hosted_zone_id => host_zone_id, :change_batch => {
:comment => "Creating new subdomain for user: #{name}", :changes => [{
:action => "CREATE", :resource_record_set => {
@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 = [email protected]: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:

@andsens
andsens / bootstrap_homeshick.sh
Last active December 13, 2024 17:55
Script that can set up an entire user account with homeshick automatically
#!/bin/bash -ex
# Paste this into ssh
# curl -sL https://gist.github.com/andsens/2913223/raw/bootstrap_homeshick.sh | tar -xzO | /bin/bash -ex
# When forking, you can get the URL from the raw (<>) button.
### Set some command variables depending on whether we are root or not ###
# This assumes you use a debian derivate, replace with yum, pacman etc.
aptget='sudo apt-get'
chsh='sudo chsh'
@erikh
erikh / hack.sh
Created March 31, 2012 07:02 — forked from DAddYE/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#