Skip to content

Instantly share code, notes, and snippets.


Ryan Brodie brod-ie

View GitHub Profile
chrisjacob /
Created Feb 14, 2011
Setup GitHub Pages "gh-pages" branch as a subfolder within the "master" project on your local checkout - a step-by-step guide.


Setup GitHub Pages "gh-pages" branch as a subfolder within the "master" project on your local checkout.


If you plan on switching between different branches (e.g. git checkout master-experiment then revert back with git checkout master) you will loose your child folder from this tutorial (because it's in your .gitignore and is not part of your master branch).

funkatron / twitter-oauth-pin.html
Created May 19, 2011
A simple example of PIN-based oauth flow with Twitter and jsOAuth
View twitter-oauth-pin.html
<!DOCTYPE html>
A simple example of PIN-based oauth flow with Twitter and jsOAuth.
This is mostly based on/copied from <>.
Get jsOAuth at <>
oodavid /
Created Mar 26, 2012
Backup MySQL to Amazon S3

Backup MySQL to Amazon S3

This is a simple way to backup your MySQL tables to Amazon S3 for a nightly backup - this is all to be done on your server :-)

Sister Document - Restore MySQL from Amazon S3 - read that next

1 - Install s3cmd

this is for Centos 5.6, see for other systems like ubuntu etc

jbroadway /
Last active Aug 23, 2020
Slimdown - A simple regex-based Markdown parser.


A very basic regex-based Markdown parser. Supports the following elements (and can be extended via Slimdown::add_rule()):

  • Headers
  • Links
  • Bold
  • Emphasis
  • Deletions
ryanjbonnell / gist:4074061
Last active Mar 8, 2020
Install PHP APC on Mac OS X 10.8 "Mountain Lion"
View gist:4074061
# Compile PCRE - Perl Compatible Regular Expressions
cd /usr/local/src
curl -O
tar -xvzf pcre-8.31.tar.gz
cd pcre-8.31
sudo make install
# Compile Autoconf
jamesstout / verifyReceipt.php
Last active Sep 10, 2020
Verify iOS in-app purchase receipts
View verifyReceipt.php
// verifies receipt from iOS in-app purchase
// returns:
// 0 - if params missing
// 1 - if receipt is valid
// 2 - if invalid receipt, or invalid response from verification server
// or bundle/in-app IDs are incorrect
douglasduteil / .travis.yml
Last active May 11, 2019 — forked from lukewpatterson/gist:4242707
Here is how I allow Git SSH authentication in Travis CI. I'm using it to connect Travis to my repo organization AngularUI. This trick is a fork. The goal is to encode the RSA private deploy key in the .travis.yml as "-secure: xxxxx.....".
View .travis.yml
language: node_js
- '0.10'
- master
before_script: .travis/
script: echo -e " >>> Do something... \"grunt\" for example\n"
after_success: .travis/
brod-ie / example.sass
Created Aug 19, 2013
respond-to() SASS mixin for Bootstrap 3 grid system.
View example.sass
.profile-pic {
float: left;
width: 250px;
@include respond-to(xs) {
width: 100%;
@include respond-to(sm) {
width: 125px;
thomsbg / compile_templates.js
Last active Dec 22, 2015
Loop through all the view prototype objects in a namespace, transforming their templateId into a template function.
View compile_templates.js
var compileTemplates = function() {
_.each(App.Views, function(View) {
if (View.prototype.templateId) {
// The templateId references the id of a DOM element containing
// the content of the template
var html = jQuery('#' + View.prototype.templateId).html() || '';
View.prototype.template = _.template(html);
asugai / Install composer on Amazon AMI running on EC2
Last active Sep 11, 2020
Install composer on Amazon AMI running on EC2
View Install composer on Amazon AMI running on EC2
$ cd ~
$ sudo curl -sS | sudo php
$ sudo mv composer.phar /usr/local/bin/composer
$ sudo ln -s /usr/local/bin/composer /usr/bin/composer
then you can run
$ sudo composer install
You can’t perform that action at this time.