I hereby claim:
- I am lmars on github.
- I am lmars (https://keybase.io/lmars) on keybase.
- I have a public key whose fingerprint is 6BFE 8AC3 30EA B9F9 317D 5837 9E4F E42F D94C 0795
To claim this, I am signing this object:
| # flynn scale web=2 | |
| now=2014-06-02T15:14:46+0000 app=controller-scheduler fn=watchFormations app.id=6f98d85441b94de0bf003a40882db52a release.id=7afc7da66395445fa7a8372cdb915001 at=new | |
| now=2014-06-02T15:14:46+0000 fn=rectify app.id=6f98d85441b94de0bf003a40882db52a release.id=7afc7da66395445fa7a8372cdb915001 type=web expected=2 actual=0 app=controller-scheduler at=update diff=2 | |
| now=2014-06-02T15:14:46+0000 app=controller-scheduler fn=add app.id=6f98d85441b94de0bf003a40882db52a release.id=7afc7da66395445fa7a8372cdb915001 host.id=00687624bf25 job.id=032bb075d20a44eb8108117be085b5cb | |
| now=2014-06-02T15:14:46+0000 app=controller-scheduler fn=add app.id=6f98d85441b94de0bf003a40882db52a release.id=7afc7da66395445fa7a8372cdb915001 host.id=00687624bf25 job.id=75197216462545ed9d5cb0d84081fe12 | |
| # docker kill flynn-032bb075d20a44eb8108117be085b5cb | |
| # job restarted immediately | |
| now=2014-06-02T15:15:32+0000 app=controller-scheduler fn=watchHost host.id=00687624bf25 at=remove job.id=032bb075d20a44eb8108117be085b5cb event=stop | |
| no |
I hereby claim:
To claim this, I am signing this object:
| require "socket" | |
| require "openssl" | |
| puts OpenSSL::OPENSSL_VERSION | |
| socket = TCPSocket.new("127.0.0.1", 8081) | |
| ssl_version = ARGV[0].to_sym | |
| ssl_context = OpenSSL::SSL::SSLContext.new |
| #!/usr/local/bin/ruby | |
| # | |
| # config-exec will render any files in /config and then exec | |
| # whatever command was given on the command line. | |
| # | |
| # For example, if /config/etc/redis.conf.erb exists, then to | |
| # render it into /etc/redis.conf and run Redis with the result: | |
| # | |
| # $ config-exec redis-server /etc/redis.conf |
| FROM ubuntu:precise | |
| # Set DEBIAN_FRONTEND to non-interactive to avoid useless warnings | |
| ENV DEBIAN_FRONTEND noninteractive | |
| # Update apt sources | |
| RUN apt-get update | |
| # Support adding PPAs | |
| RUN apt-get install -y python-software-properties |
| class Deployer | |
| attr_accessor :current_id | |
| attr_reader :image | |
| def initalize(image) | |
| @image = image | |
| end | |
| def start | |
| self.current_id = run "docker run #{image}" |
| source "https://rubygems.org" | |
| gem "em-http-request" | |
| gem "eventmachine" | |
| gem "json" | |
| gem "rack" | |
| gem "thin" |
| Thread.start do | |
| loop do | |
| objects = Hash.new(0) | |
| ObjectSpace.each_object { |obj| objects[obj.class] += 1 } | |
| File.open("/tmp/top_ten_objects.txt", "a") do |file| | |
| file.puts "-" * 50 | |
| file.puts "PID: #{Process.pid} - #{Time.now.strftime("%c")}" | |
| file.puts "-" * 50 |
| namespace :resque do | |
| task :setup do | |
| ENV["MY_CUSTOM_KEY"] = "MY CUSTOM VALUE" | |
| end | |
| end |
| require 'net/http' | |
| require 'uri' | |
| random_url = URI('http://www.random.org/integers/?num=1&min=1&max=6&col=1&base=10&format=plain&rnd=new') | |
| ints = [] | |
| resp = Ne |