Skip to content

Instantly share code, notes, and snippets.

View royalsflush's full-sized avatar

Thomas Silva royalsflush

  • Developer's Cut/LabSynapse
  • London, UK
View GitHub Profile
@viniciusban
viniciusban / aws_eb_tuto.md
Created March 19, 2014 15:14
AWS EB tuto

AWS Elastic Beanstalk

This document is divided into 2 main parts:


@joachimhs
joachimhs / gist:3529609
Created August 30, 2012 14:27
Ember.js rerender on window resize issue
init: function() {
var view = this;
var resizeHandler = function() {
view.rerender();
};
this.set('resizeHandler', resizeHandler);
$(window).bind('resize', this.get('resizeHandler'));
},
@Simbul
Simbul / pre-commit
Created February 9, 2012 18:06
Git hook to prevent commits on a staging/production branch
#!/usr/bin/env ruby
# This pre-commit hook will prevent any commit to forbidden branches
# (by default, "staging" and "production").
# Put this file in your local repo, in the .git/hooks folder
# and make sure it is executable.
# The name of the file *must* be "pre-commit" for Git to pick it up.
FORBIDDEN_BRANCHES = ["staging", "production"]