I hereby claim:
- I am pdegenportnoy on github.
- I am pdegenportnoy (https://keybase.io/pdegenportnoy) on keybase.
- I have a public key ASBntOp0YhEc-A6YnhRSkvkRth-9WXq9RTwexOFEkgkIcwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
[node1] (swarm) [email protected] ~/orchestration-workshop/dockercoins | |
$ docker-compose up -d | |
Creating network "dockercoins_default" with the default driver | |
Starting dockercoins_webui_1 | |
Starting dockercoins_rng_1 | |
Starting dockercoins_worker_1 | |
Starting dockercoins_redis_1 | |
Starting dockercoins_hasher_1 |
def setup | |
@file = CSV.open() | |
@file.write(header) | |
end | |
def header | |
%w(account_id name url blah blorg is_spam) | |
end | |
def check_records |
links, entries = [], [] | |
data["entityView"].each do |elem| | |
case elem | |
when "links" | |
elem.each{|e| links << Link.new(e)} | |
when "entries" | |
elem.each{|e| entries << Entry.new(e)} | |
else | |
raise "Unknown Element!" |
def flush | |
return if @buffer.length < @max_length # don't flush yet | |
# ... rest of logic | |
end |
@buffer.each do |elem| | |
@output.write(elem) | |
@output_count += 1 | |
end |
[1] pry(main)> module Helper | |
[1] pry(main)* def set_stuff | |
[1] pry(main)* @stuff = 'something' | |
[1] pry(main)* end | |
[1] pry(main)* end | |
=> nil | |
[2] pry(main)> class Controller | |
[2] pry(main)* include Helper | |
[2] pry(main)* def index | |
[2] pry(main)* set_stuff |
pdp-mbp: ~ $ cat hostlist.txt | |
sfo-crawl-4 | |
sfo-crawl-5 | |
sfo-crawl-6 | |
sfo-crawl-7 | |
sfo-crawl-8 | |
sfo-crawl-9 | |
sfo-crawl-11 | |
sfo-crawl-14 | |
pdp-mbp: ~ $ csshX --host hostlist.txt |
class Tester < ActiveRecord::Base | |
include AASM | |
aasm_initial_state :inactive | |
aasm_state :inactive | |
aasm_state :active, | |
:after_enter => :after_active_state | |
aasm_event :activate, | |
:after => :after_event do | |
transitions :to => :active, |