Skip to content

Instantly share code, notes, and snippets.

@jazzychad
jazzychad / gist:3723392
Created September 14, 2012 17:31
Why you can't change the shipping address for your new iPhone 5

Whilst trying to pre-order a new iPhone 5, I discovered I couldn't change the shipping address at checkout. This was rather annoying since I won't be at home to sign for it. I spun up a support chat and found out this info:

chat

@jazzychad
jazzychad / gist:3861848
Created October 9, 2012 22:28
git post-receive hook to tar the repo and send to s3 for backup
#!/bin/bash
# a post-receive hook for git servers to tar the current repo and send to s3 for backup
# save as 'post-receive' and put it in .git/hooks of desired repo(s), chmod +x
# assumes you have the s3cmd program installed and configured (sudo apt-get install s3cmd)
echo "thanks for the push. have a nice day."
# configure your S3BUCKET name, the rest should be automatic
@jazzychad
jazzychad / Makefile
Created December 4, 2012 01:19
A much saner Bootstrap makefile
BOOTSTRAP = ./docs/assets/css/bootstrap.css
BOOTSTRAP_LESS = ./less/bootstrap.less
BOOTSTRAP_RESPONSIVE = ./docs/assets/css/bootstrap-responsive.css
BOOTSTRAP_RESPONSIVE_LESS = ./less/responsive.less
DATE=$(shell date +%I:%M%p)
CHECK=\033[32m✔\033[39m
HR=\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#
all: bootstrap
@jazzychad
jazzychad / standup.sh
Last active December 17, 2015 08:18
stand ups with style!
#!/bin/bash
# stand ups with style!
# best when used with cron
# stand up - luda
songs[0]='spotify:track:2CtCwQhY0ZLvr8L2l8Bo6e'
# stand - rem
songs[1]='spotify:track:2WQ1MSvcFj0RyoEb9eK9bu#0:09'
# stand by me - ben e king
@jazzychad
jazzychad / .uncrustifyconfig
Created July 3, 2013 03:27
.uncrustifyconfig
#
# Uncrustify Configuration File
# File Created With UncrustifyX 0.4.2 (245)
#
# Alignment
# ---------
## Alignment
@jazzychad
jazzychad / gist:5979027
Created July 11, 2013 20:38
xcode weak/strongSelf auto-expand snippets
weakself => __weak typeof (self) weakSelf = self;
strongself => typeof (self) strongSelf = weakSelf;
{
"title": "Testing",
"visbility": "public"
}
{
"title": "First Post",
"timestamp": "2013-07-16T09:15:43.000Z",
"visbility": "public"
}
{
"title": "Testing private w caching",
"visbility": "public"
}
{
"title": "gistblog Features I Want",
"timestamp": "2013-07-16T19:51:15.000Z",
"visbility": "public"
}