Skip to content

Instantly share code, notes, and snippets.


John Griffin john-griffin

View GitHub Profile
View controllers.application.js
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'

Keybase proof

I hereby claim:

  • I am john-griffin on github.
  • I am johng ( on keybase.
  • I have a public key whose fingerprint is 19F9 1BF9 9CA2 90C2 9C12 869C 199B 1945 6C6D D8E1

To claim this, I am signing this object:

john-griffin / routes.rb
Created Jul 13, 2015
Rails 4 catch all routes
View routes.rb
match "(*path)", to: proc { [410, {}, ['']] }, via: :*
john-griffin / gist:8689316
Created Jan 29, 2014
vagrant config in restricted networks
View gist:8689316
config.vm.provider "virtualbox" do |v|
v.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
v.customize ["modifyvm", :id, "--natdnsproxy1", "on"]
View 0001-remove-turbo-links.patch
john-griffin / Dockerfile
Created Aug 1, 2013
Basic rails Dockerfile
View Dockerfile
FROM ubuntu:12.04
RUN apt-get -y install python-software-properties
RUN add-apt-repository "deb $(lsb_release -sc) main universe restricted multiverse"
RUN apt-add-repository -y ppa:brightbox/ruby-ng-experimental
RUN add-apt-repository -y ppa:chris-lea/node.js
RUN apt-get -y update
RUN apt-get -y install build-essential python g++ make ruby2.0 ruby2.0-dev nodejs
#!/usr/bin/env zsh
# -------------------------------------------------------------------------------- #
# 1304046900 Track changes to a skeleton Rails app since a given `base_version`
# -------------------------------------------------------------------------------- #
## Changelog
# - Update 7/7/2012:
# * rewrote to use Bundler instead of RubyGems
# * attempting to switch to a master branch for which no commit existing was causing a pathspec error
# * simplified rails new commands by running them on the current path (after changing directory to tmp/skeleton_check of course).
# * renamed `old_version` variable to `base_version` for clarity
john-griffin / Action
Created Jan 23, 2012 — forked from fxn/Action Mailer
Ruby on Rails v3.2.0 CHANGELOGs
View Action

Rails 3.2.0 (January 20, 2012)

  • Upgrade mail version to 2.4.0 ML

  • Remove Old ActionMailer API Josh Kalderimis

View crashreport.txt
Rubinius Crash Report #rbxcrashreport
Error: signal SIGILL
0 rbx 0x000000010000ff31 _ZN8rubiniusL12segv_handlerEi + 241
1 libSystem.B.dylib 0x00007fff81ef566a _sigtramp + 26
2 ??? 0x705e0ca000000000 0x0 + 8096923061393031168
3 rbx 0x00000001000161bb _ZN8rubinius5abortEv + 59
4 rbx 0x00000001001c495c _ZN8rubinius23NativeMethodEnvironment10get_objectEl + 172