Skip to content

Instantly share code, notes, and snippets.

NoMethodError: undefined method `logger=' for ActionCable::Server::Base:Class
Did you mean? logger
/Users/austenito/.gem/ruby/2.3.1/gems/timber-2.0.4/lib/timber/frameworks/rails.rb:50:in `set_logger'
/Users/austenito/.gem/ruby/2.3.1/gems/timber-2.0.4/lib/timber/frameworks/rails.rb:14:in `block in <class:Railtie>'
/Users/austenito/.gem/ruby/2.3.1/gems/railties-5.0.0.1/lib/rails/initializable.rb:30:in `instance_exec'
/Users/austenito/.gem/ruby/2.3.1/gems/railties-5.0.0.1/lib/rails/initializable.rb:30:in `run'
/Users/austenito/.gem/ruby/2.3.1/gems/railties-5.0.0.1/lib/rails/initializable.rb:55:in `block in run_initializers'
/Users/austenito/.rubies/ruby-2.3.1/lib/ruby/2.3.0/tsort.rb:228:in `block in tsort_each'
/Users/austenito/.rubies/ruby-2.3.1/lib/ruby/2.3.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
/Users/austenito/.rubies/ruby-2.3.1/lib/ruby/2.3.0/tsort.rb:431:in `each_strongly_connected_component_from'
### Keybase proof
I hereby claim:
* I am austenito on github.
* I am austenito (https://keybase.io/austenito) on keybase.
* I have a public key whose fingerprint is BE7D D06E 9399 B7A5 38C3 1C95 600A F3AC 13F0 1194
To claim this, I am signing this object:

What I Wish I'd Known About Equity Before Joining A Unicorn

Disclaimer: This piece is written anonymously. The names of a few particular companies are mentioned, but as common examples only.

This is a short write-up on things that I wish I'd known and considered before joining a private company (aka startup, aka unicorn in some cases). I'm not trying to make the case that you should never join a private company, but the power imbalance between founder and employee is extreme, and that potential candidates would

; <<>> DiG 9.8.3-P1 <<>> bonobos.com TXT
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 59297
;; flags: qr rd ra; QUERY: 1, ANSWER: 4, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;bonobos.com. IN TXT
;; ANSWER SECTION:
analytics.track('Completed Order', {
orderId: '306167171',
total: 286.76,
revenue: 268,
discount: 0,
shipping: 0,
tax: 18.76,
currency: 'USD',
pants-fit: ['tailored', 'slim', 'athletic'],
color: ['blue','redrums'],
@austenito
austenito / readme.md
Created July 3, 2015 14:40
Knuth Posse Mentoring

How to Schedule Pairing

  1. Ask a mentor to be added to the Knuth Posse Pairing Calendar
  2. Find an available time from any of your mentors.
  3. Reserve your pairing session in the Knuth Posse Pairing Calendar by creating an appointment in an available timeslot

Pairing Etiquitte

  • Always bring something to pair on. Pairing time is limited and we want you to learn as much as possible during the session.
  • Pairing doesn't need to limited to Turing projects. We are available to pair on whatever you're interested in.
class InvoiceRepo
def initialize(invoices)
@invoices = invoices
end
def self.get_instance(invoices)
@invoice_repo ||= new(invoices)
end
def self.clear
@austenito
austenito / docker_helpers.md
Last active August 29, 2015 14:02
Docker Helpers

sudo docker stop $(sudo docker ps -a -q) &amp;&amp; sudo docker rm $(sudo docker ps -a -q)

sudo docker run -i -t --name="hsconsole" --volumes-from happiness-data --link="postgres:db" austenito/ruby-2.1.2 /bin/bash

source /usr/local/share/chruby/chruby.sh
git clone https://github.com/austenito/happiness_service.git
cd happiness_service
export GEM_HOME=/gems/ruby/2.1.2
mkdir pids
@austenito
austenito / keybase.md
Created March 14, 2014 18:43
Keybase Prove

Keybase proof

I hereby claim:

  • I am austenito on github.
  • I am austenito (https://keybase.io/austenito) on keybase.
  • I have a public key whose fingerprint is 5109 7196 F22F 5549 9B8B 3423 7A21 AEC2 BBA3 B752

To claim this, I am signing this object:

@austenito
austenito / query.rb
Created January 3, 2014 19:32
Logging Mongodb queries in rails console
if Moped.logger == Rails.logger
Moped.logger = Logger.new($stdout)
true
else
Moped.logger = Rails.logger
false
end