I hereby claim:
- I am jeremyvdw on github.
- I am jeremyvdw (https://keybase.io/jeremyvdw) on keybase.
- I have a public key ASBe6KIUEymKPKaJFhbUX0YrRuNVGbRav5i_Xd24TGGafwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
#!/bin/bash | |
# | |
# | |
# init script for the Confluent schema-registry | |
# | |
# chkconfig: 2345 90 10 | |
# description: Confluent schema-registry | |
### BEGIN INIT INFO | |
# Provides: schema-registry |
curl -sSL https://s3.amazonaws.com/circle-downloads/wait-for-cassandra.sh | sh | |
Attempt 1 | |
nodetool: Failed to connect to '127.0.0.1:7199' - ConnectException: 'Connection refused'. | |
Attempt 2 | |
nodetool: Failed to connect to '127.0.0.1:7199' - ConnectException: 'Connection refused'. | |
Attempt 3 | |
nodetool: Failed to connect to '127.0.0.1:7199' - ConnectException: 'Connection refused'. | |
Attempt 4 | |
nodetool: Failed to connect to '127.0.0.1:7199' - ConnectException: 'Connection refused'. | |
Attempt 5 |
if [[ -e /usr/local/share/chruby ]]; then | |
# Load chruby | |
source '/usr/local/share/chruby/chruby.sh' | |
# Automatically switch rubies | |
source '/usr/local/share/chruby/auto.sh' | |
# Set a default ruby if a .ruby-version file exists in the home dir | |
if [[ -f ~/.ruby-version ]]; then | |
chruby $(cat ~/.ruby-version) |
> db.players.find( { team_id: { $in: ["phi"] } }).sort({last_name: 1}).explain() | |
{ | |
"cursor" : "BtreeCursor team_id_1", | |
"isMultiKey" : false, | |
"n" : 37, | |
"nscannedObjects" : 37, | |
"nscanned" : 37, | |
"nscannedObjectsAllPlans" : 74, | |
"nscannedAllPlans" : 74, | |
"scanAndOrder" : true, |
# delete all non-running container | |
docker ps -a | grep 'Exit' | awk '{print $1}' | xargs docker rm | |
# delete unused images | |
docker images | grep '<none>' | awk '{print $3}' | xargs docker rmi |
jeremy:preplaysports-api/ (rbx-2.0.testing) (master✗) $ foreman start worker=10 [18:47:20] | |
18:47:37 worker.1 | started with pid 34890 | |
18:47:37 worker.2 | started with pid 34891 | |
18:47:37 worker.3 | started with pid 34892 | |
18:47:37 worker.4 | started with pid 34893 | |
18:47:37 worker.5 | started with pid 34894 | |
18:47:37 worker.6 | started with pid 34895 | |
18:47:37 worker.7 | started with pid 34896 | |
18:47:37 worker.8 | started with pid 34897 | |
18:47:37 worker.9 | started with pid 34898 |
Redis::TimeoutError: Connection timed out | |
Collapse | |
vendor/bundle/ruby/1.9.1/bundler/gems/redis-rb-4f7eadc119ba/lib/redis/client.rb:198 • rescue in io | |
vendor/bundle/ruby/1.9.1/bundler/gems/redis-rb-4f7eadc119ba/lib/redis/client.rb:196 • io | |
vendor/bundle/ruby/1.9.1/bundler/gems/redis-rb-4f7eadc119ba/lib/redis/client.rb:204 • read | |
vendor/bundle/ruby/1.9.1/bundler/gems/redis-rb-4f7eadc119ba/lib/redis/client.rb:142 • block in call_pipelined | |
vendor/bundle/ruby/1.9.1/bundler/gems/redis-rb-4f7eadc119ba/lib/redis/client.rb:177 • block (2 levels) in process | |
vendor/bundle/ruby/1.9.1/bundler/gems/redis-rb-4f7eadc119ba/lib/redis/client.rb:281 • ensure_connected | |
vendor/bundle/ruby/1.9.1/bundler/gems/redis-rb-4f7eadc119ba/lib/redis/client.rb:167 • block in process | |
vendor/bundle/ruby/1.9.1/bundler/gems/redis-rb-4f7eadc119ba/lib/redis/client.rb:242 • logging |
Redis::TimeoutError: Connection timed out | |
vendor/bundle/ruby/1.9.1/bundler/gems/redis-rb-4f7eadc119ba/lib/redis/client.rb:198 • rescue in io | |
vendor/bundle/ruby/1.9.1/bundler/gems/redis-rb-4f7eadc119ba/lib/redis/client.rb:196 • io | |
vendor/bundle/ruby/1.9.1/bundler/gems/redis-rb-4f7eadc119ba/lib/redis/client.rb:204 • read | |
vendor/bundle/ruby/1.9.1/bundler/gems/redis-rb-4f7eadc119ba/lib/redis/client.rb:142 • block in call_pipelined | |
vendor/bundle/ruby/1.9.1/bundler/gems/redis-rb-4f7eadc119ba/lib/redis/client.rb:177 • block (2 levels) in process | |
vendor/bundle/ruby/1.9.1/bundler/gems/redis-rb-4f7eadc119ba/lib/redis/client.rb:281 • ensure_connected | |
vendor/bundle/ruby/1.9.1/bundler/gems/redis-rb-4f7eadc119ba/lib/redis/client.rb:167 • block in process | |
vendor/bundle/ruby/1.9.1/bundler/gems/redis-rb-4f7eadc119ba/lib/redis/client.rb:242 • logging |
require 'celluloid' | |
require 'awesome_print' | |
Celluloid.logger = Logger.new STDOUT | |
class Monitor | |
include Celluloid | |
attr_reader :name | |