Skip to content

Instantly share code, notes, and snippets.

View john-griffin's full-sized avatar

John Griffin john-griffin

View GitHub Profile
@john-griffin
john-griffin / auto-ts-ignore.ts
Created October 5, 2023 20:56 — forked from zorji/auto-ts-ignore.ts
A script to auto add // @ts-ignore to lines with TypeScript compilation error
/**
* A script to auto add // @ts-ignore to lines with TypeScript compilation error
* Example usage:
* $ npx tsc > compilation-errors.log
* $ npx ts-node auto-ts-ignore.ts compilation-errors.log
*/
import { readFile, writeFile } from 'fs/promises'
const errorLogFile = process.argv[2]
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 (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 July 13, 2015 19:37
Rails 4 catch all routes
match "(*path)", to: proc { [410, {}, ['']] }, via: :*
@john-griffin
john-griffin / gist:8689316
Created January 29, 2014 14:40
vagrant config in restricted networks
config.vm.provider "virtualbox" do |v|
v.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
v.customize ["modifyvm", :id, "--natdnsproxy1", "on"]
end
@john-griffin
john-griffin / Dockerfile
Created August 1, 2013 13:14
Basic rails 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
#!/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 January 23, 2012 09:49 — forked from fxn/Action Mailer
Ruby on Rails v3.2.0 CHANGELOGs

Rails 3.2.0 (January 20, 2012)

  • Upgrade mail version to 2.4.0 ML

  • Remove Old ActionMailer API Josh Kalderimis

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