Skip to content

Instantly share code, notes, and snippets.

View rojotek's full-sized avatar

Rob Dawson rojotek

  • ConsenSys
  • Australia
View GitHub Profile
@rojotek
rojotek / migration.rb
Created September 7, 2014 22:48
rails models in migrations
class ModelClass < ActiveRecord::Base
attr_protected
end
def up
ModelClass.reset_column_information
end
@rojotek
rojotek / concepts-member-operation.rb
Created May 26, 2016 05:51
Trailblazer Operations
class Member::Index < Trailblazer::Operation
attr_reader :members
def process(params)
office = Office::Show.(params.merge(id: params[:office_id])).office
@members = office.office_members
end
end
# more stuff that extends from Member::Index
curl https://%ES-SERVER:PORT%/_nodes/stats/thread_pool |jq '.nodes |to_entries[].value.thread_pool.bulk'
@rojotek
rojotek / cla.txt
Last active September 5, 2020 08:45
ConsenSys Apache 2 based CLA
ConsenSys Software Inc
Individual Contributor License Agreement ("Agreement") V2.0
http://www.apache.org/licenses/
Thank you for your interest in ConsenSys Software Inc (ConsenSys).
In order to clarify the intellectual property license
granted with Contributions from any person or entity, ConsenSys
must have a Contributor License Agreement ("CLA") on file that has
been signed by each Contributor, indicating agreement to the license
terms below. This license is for your protection as a Contributor as