docker-machine create -d virtualbox kv
docker $(docker-machine config kv) login
docker $(docker-machine config kv) run -d -p 8500:8500 -h consul progrium/consul -server -bootstrap
docker-machine create -d virtualbox --swarm --swarm-master --swarm-discovery="consul://$(docker-machine ip kv):8500" --engine-opt="cluster-store=consul://$(docker-machine
ip kv):8500" --engine-opt="cluster-advertise=eth1:2376" swarm-manager
docker-machine create -d virtualbox --swarm --swarm-discovery="consul://$(docker-machine ip kv):8500" --engine-opt="cluster-store=consul://$(docker-machine ip kv):8500" -
-engine-opt="cluster-advertise=eth1:2376" node1
docker-machine create -d virtualbox --swarm --swarm-discovery="consul://$(docker-machine ip kv):8500" --engine-opt="cluster-store=consul://$(docker-machine ip kv):8500" --engine-opt="cluster-advertise=eth1:2376" node2
eval "$(docker-machine env --swarm swarm-manager)"
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Y18Who's hiring? - November - by - @jordinl83 Filter: | |
hurdleress on Wed Nov 06 2013 at 09:26:05 | |
Counsyl - South San Francisco, CA | |
REMOTE, H1B, INTERN | |
Our goal is to make the human genome practically useful for life-altering decisions. | |
We've invented the Counsyl Test, a breakthrough diagnostic intended for parents planning to start a family. The test won the Wall Street Journal Innovation Award for Medicine, was named one of Scientific American's "Top 10 World Changing Ideas," and was featured in the New York Times. Our test is now prescribed by physicians for more than 12% of all carrier screens in the United States. | |
The cost of sequencing human genomes is plunging - over 5x faster than the cost of computing; the potential impact on preventive healthcare and the medical landscape is boundless. The science is there but the scale isn't. That's where Counsyl comes in. We are building the technology platform to make genomics useful and accessible to everyone. | |
TechCrunch article: http://techcrunch.com/2013/04/23/c |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<% | |
cost = product.product_costs.first | |
hide_qty ||= '' | |
unless cost.nil? | |
%> | |
<%= form_for :cart, :url => {:controller => "cart"}, :html => {:multipart => true, :class => "form", :id => "product_form"} do |form| %> | |
<% unless !hide_qty.blank? %> | |
<label><%= t :quantity %></label> | |
<select name="quantity"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
context "render_page_label" do | |
specify " doesnt render partial if article has only one body" do | |
article = stub_model(Article) | |
bodies = article.bodies.paginate(:page => @page, :per_page => 1) | |
expect(helper.render_article_pager(bodies)).to eq nil | |
end | |
specify " renders partial if article has more than one body" do | |
article = stub_model(Article) | |
bodies = [article.bodies,article.bodies].paginate(:page => @page, :per_page => 1) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
using namespace std; | |
int main () | |
{ | |
int user_input; | |
cout << "Please enter an integer and strike return: "; | |
cin >> user_input; | |
cout << "The integer you input is: " << user_input << endl; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Cookbook Name:: db2 | |
# Recipe:: default | |
# | |
# Copyright (c) 2015 The Authors, All Rights Reserved. | |
group "db2iadm1" do | |
end | |
group "db2fadm1" do |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:14.04 | |
FROM ruby:2.0.0 | |
MAINTAINER James Denman <[email protected]> | |
EXPOSE 3000 | |
ENV RUBY_MAJOR 2.2 | |
ENV RUBY_VERSION 2.2.3 | |
ENV RUBY_DOWNLOAD_SHA256 df795f2f99860745a416092a4004b016ccf77e8b82dec956b120f18bdc71edce | |
ENV RUBYGEMS_VERSION 2.5.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo: required | |
services: | |
- docker | |
- postgresql | |
language: ruby | |
rvm: | |
- 2.2.3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root@lb1:~# docker ps | |
CONTAINER ID IMAGE COMMAND CREATED STATUS | |
PORTS NAMES | |
e64708af135c nginx:latest "nginx -g 'daemon off" 23 hours ago Up 22 | |
hours 0.0.0.0:80->80/tcp, 443/tcp nginx-lb1 | |
9797b30402df gliderlabs/registrator:latest "/bin/registrator -ip" 23 hours ago Up 23 | |
hours registrator-lb1 |