Skip to content

Instantly share code, notes, and snippets.

thomasfedb@metis:~$ status flynn-host
flynn-host start/running, process 3474
thomasfedb@metis:~$ ps ax | grep flynn
3474 ? Ssl 0:13 /usr/local/bin/flynn-host daemon --manifest /etc/flynn/host-manifest.json
3502 pts/3 S+ 0:00 grep --color=auto flynn
thomasfedb@metis:~$ flynn-host ps
05:01:46.908615 host.go:131: Get http://127.0.0.1:1111/services/flynn-host/leader: dial tcp 127.0.0.1:1111: connection refused

A sample size of xx is proposed. This sample size is based on approaching all anaesthetists at Princess Margaret Hospital, with an expected participation rate of 80% (based on informal polling). This represents the maximum plausible sample, and is within limits of practicality and time constraints. As this pilot study does not involve a control group, it is not possible to perform a power analysis. It is expected that qualitative data will reach saturation within the given sample size.

129) Admin::TeachingGroups::SummariesController#show
Failure/Error: Unable to find matching line from backtrace
NoMethodError:
private method `new' called for RSpec::Mocks::ArgumentMatchers::AnyArgMatcher:Class
# ./spec/factories/teacher.rb:13:in `block (3 levels) in <top (required)>'
# /home/thomasfedb/.rvm/gems/ruby-2.1.2@arcadia/gems/factory_girl-4.5.0/lib/factory_girl/callback.rb:13:in `instance_exec'
# /home/thomasfedb/.rvm/gems/ruby-2.1.2@arcadia/gems/factory_girl-4.5.0/lib/factory_girl/callback.rb:13:in `run'
# /home/thomasfedb/.rvm/gems/ruby-2.1.2@arcadia/gems/factory_girl-4.5.0/lib/factory_girl/callbacks_observer.rb:11:in `block in update'
# /home/thomasfedb/.rvm/gems/ruby-2.1.2@arcadia/gems/factory_girl-4.5.0/lib/factory_girl/callbacks_observer.rb:10:in `each'
# /home/thomasfedb/.rvm/gems/ruby-2.1.2@arcadia/gems/factory_girl-4.5.0/lib/factory_girl/callbacks_observer.rb:10:in `update'
root@metis:/04e988796e2345be9f7ad7f358dbfef4# pwd
/04e988796e2345be9f7ad7f358dbfef4
root@metis:/04e988796e2345be9f7ad7f358dbfef4# ls
base pg_hba.conf pg_notify pg_stat pg_twophase postgresql.conf
global pg_ident.conf pg_replslot pg_stat_tmp PG_VERSION postmaster.opts
pg_clog pg_logical pg_serial pg_subtrans pg_xlog postmaster.pid
pg_dynshmem pg_multixact pg_snapshots pg_tblspc postgresql.auto.conf
# create a redis app
flynn create --remote "" redis
# create a release using the latest (at the time of writing) Docker Redis image
flynn -a redis release add -f config.json "https://registry.hub.docker.com?name=redis&id=868be653dea3ff6082b043c0f34b95bb180cc82ab14a18d9d6b8e27b7929762c"
# scale the server to one process. This may time out initially as the server pulls the image, but watch "flynn -a redis ps" and should come up.
flynn -a redis scale server=1
# redis should now be running in the cluster at redis.discoverd:6379
$ flynn -a postgres ps
ID TYPE
metis-97575f684f71462a846308e9b14bd39c postgres
metis-1b4f700580bb43b0b53fec2b283301f9 web
Failure/Error: Unable to find matching line from backtrace
ActionView::Template::Error:
undefined method `close_admin_state_path' for #<#<Class:0x00000007ef6a30>:0x000000070ecd90>
Fetching additional metadata from https://rubygems.org/..
Fetching [email protected]:rails-sqlserver/tiny_tds.git
Host key verification failed.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Retrying git clone '[email protected]:rails-sqlserver/tiny_tds.git' "/tmp/build/vendor/bundle/ruby/2.0.0/cache/bundler/git/tiny_tds-521850865c51a0e6c4eda4b5363c503473a8d6fa" --bare --no-hardlinks --quiet due to error (2/3): Bundler::Source::Git::GitCommandError Git error: command `git clone '[email protected]:rails-sqlserver/tiny_tds.git' "/tmp/build/vendor/bundle/ruby/2.0.0/cache/bundler/git/tiny_tds-521850865c51a0e6c4eda4b5363c503473a8d6fa" --bare --no-hardlinks --quiet` in directory /tmp/build has failed.
Host key verification failed.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
def valid_password?(password)
true
end
class Stream:
def __init__(self):
self.subscribers = []
def subscribe(self, subscriber):
self.subscribers.append(subscriber)
def publish(self, event):
for subscriber in subscribers:
subscriber(event)