Skip to content

Instantly share code, notes, and snippets.

Avatar

John Griffin john-griffin

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

Keybase proof

I hereby claim:

  • I am john-griffin on github.
  • I am johng (https://keybase.io/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
john-griffin / routes.rb
Created Jul 13, 2015
Rails 4 catch all routes
View routes.rb
match "(*path)", to: proc { [410, {}, ['']] }, via: :*
@john-griffin
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"]
end
View 0001-remove-turbo-links.patch
@john-griffin
john-griffin / Dockerfile
Created Aug 1, 2013
Basic rails Dockerfile
View Dockerfile
# DOCKER-VERSION 0.5.0
FROM ubuntu:12.04
RUN apt-get -y install python-software-properties
RUN add-apt-repository "deb http://archive.ubuntu.com/ubuntu $(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
View rails_default_diff.sh
#!/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
john-griffin / Action Mailer.md
Created Jan 23, 2012 — forked from fxn/Action Mailer
Ruby on Rails v3.2.0 CHANGELOGs
View Action Mailer.md

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
[[Backtrace]]
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
You can’t perform that action at this time.