Skip to content

Instantly share code, notes, and snippets.

View Aevin1387's full-sized avatar

Cory Stephenson Aevin1387

  • Datadog
  • Chicago, IL
View GitHub Profile
@Aevin1387
Aevin1387 / .screenrc
Created April 2, 2018 18:09
Screenrc for cap/environment
term screen-256color
defshell -bash
[aevin@freenas ~]$ zfs list
NAME USED AVAIL REFER MOUNTPOINT
freenas-boot 4.49G 23.6G 64K none
freenas-boot/.system-32a42cec 483M 23.6G 483M /var/db/system
freenas-boot/ROOT 4.00G 23.6G 29K none
freenas-boot/ROOT/10-MASTER-201703142112 296K 23.6G 1.11G /
freenas-boot/ROOT/Corral-10.0.2 221K 23.6G 1.11G /
freenas-boot/ROOT/Corral-10.0.4 3.99G 23.6G 1.11G /
freenas-boot/ROOT/Initial-Install 1K 23.6G 1.11G legacy
freenas-boot/ROOT/default 232K 23.6G 1.11G legacy
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
class AddPersonPlacesAndPeoplePlaces < ActiveRecord::Migration
def change
create_table :people do |t|
t.string :name
t.timestamps
end
create_table :places do |t|
t.string :name
t.timestamps
class Company < ActiveRecord::Base
has_many :people
end

Keybase proof

I hereby claim:

  • I am aevin1387 on github.
  • I am aevin (https://keybase.io/aevin) on keybase.
  • I have a public key whose fingerprint is 7D29 A038 7FAA 7542 E7E0 1FBA BC7C B54E EE2E 36CB

To claim this, I am signing this object:

@Aevin1387
Aevin1387 / .rubocop.yml
Created January 8, 2014 19:49
Example .rubocop.yml
StringLiterals:
# Set enforcement to double quotes instead of single
EnforcedStyle: double_quotes
ClassLength:
Max: 150
CyclomaticComplexity:
Max: 10
@Aevin1387
Aevin1387 / hstore_accessor.rb
Created June 6, 2013 21:14
Modify hstore accessor to allow some typing
module HstoreAccessor
def self.included(base)
base.extend(ClassMethods)
end
VALID_TYPES = [:string, :integer, :float, :array, :hash]
SERIALIZERS = {
:array => ->(val) { val.to_json },
:hash => ->(val) { val.to_json }
}