Skip to content

Instantly share code, notes, and snippets.

@seocahill
seocahill / gist:75c13c79f236df250250ad664ac0680d
Last active April 5, 2019 13:58
Set timeout in current session
conn_config = ActiveRecord::Base.connection_config
conn_config[:variables]['statement_timeout'] = 60000
ActiveRecord::Base.establish_connection conn_config

Keybase proof

I hereby claim:

  • I am seocahill on github.
  • I am showkhill (https://keybase.io/showkhill) on keybase.
  • I have a public key ASB-N5nqUIDEyxmt_Jt56e9wKg8b14SSm9c7dDKfXNlomgo

To claim this, I am signing this object:

@seocahill
seocahill / whitespace-error.md
Last active September 14, 2017 09:01
Post mortem on iXBRL validation error 10/17

iXBRL whitespace error

I received the following error message when trying to validate an iXBRL document:

Schema validation error: {3}{}{}{}

The source of the error turned out to be whitespace between a flag type tag and a nested exclude tag, e.g.

@seocahill
seocahill / adapters.dog.js
Last active March 17, 2017 18:23
Bug: Mirage + each-in helper
import Ember from 'ember';
import DS from 'ember-data';
export default DS.RESTAdapter.extend({
});
@seocahill
seocahill / controllers.application.js
Created March 17, 2017 17:54
Ember mirage each-in bug
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
@seocahill
seocahill / Gemfile
Last active December 16, 2015 07:18 — forked from datenimperator/Gemfile
source :rubygems
gem 'shotgun', group: :development
gem 'rack-cache'
gem 'sinatra', require: 'sinatra/base'
gem 'sinatra-support'
gem 'sprockets'
gem 'sprockets-helpers'