I hereby claim:
- I am cardmagic on github.
- I am lucascarlson (https://keybase.io/lucascarlson) on keybase.
- I have a public key ASDfe5U3o38gtZipTpzDwSsig5VtN4F3iq5EqrXMc1T-6go
To claim this, I am signing this object:
class AssociationLoader < GraphQL::Batch::Loader | |
def initialize(association_name) | |
@association_name = association_name | |
end | |
private | |
def perform(records) | |
::ActiveRecord::Associations::Preloader.new.preload(records, @association_name) | |
records.each { |record| fulfill(record, record.public_send(@association_name)) } |
I hereby claim:
To claim this, I am signing this object:
{ | |
"apiVersion": "v1beta1", | |
"kind": "Pod", | |
"id": "redis-master-pod", | |
"desiredState": { | |
"manifest": { | |
"version": "v1beta1", | |
"id": "redis-master-pod", | |
"containers": [{ | |
"name": "redis-master", |
{ | |
"id": "redisSlaveController", | |
"kind": "ReplicationController", | |
"apiVersion": "v1beta1", | |
"desiredState": { | |
"replicas": 2, | |
"replicaSelector": {"name": "redisslave"}, | |
"podTemplate": { | |
"desiredState": { | |
"manifest": { |
FROM centurylink/wetty-cli:0.0.8 | |
# Install CLIs | |
RUN apt-get update && apt-get install -y python-software-properties | |
RUN apt-get update && apt-get install -y python-keystoneclient && apt-get install -y python-swiftclient && apt-get install -y python-novaclient && apt-get install -y python-troveclient && apt-get install -y python-glanceclient && apt-get install -y python-cinderclient && apt-get install -y python-heatclient && apt-get install -y python-ceilometerclient && apt-get install -y python-neutronclient |
FROM ubuntu:14.04 MAINTAINER CenturyLink | |
# Install node & npm | |
RUN apt-get -qqy update && \ DEBIAN_FRONTEND=noninteractive apt-get -y install vim git nodejs npm RUN ln -s /usr/bin/nodejs /usr/bin/node | |
# Install Wetty | |
WORKDIR /opt/wetty RUN git clone https://github.com/krishnasrinivas/wetty.git . && \ git reset --hard 223b1b1 RUN npm install |
$ brew install maven boot2docker # on OS X | |
$ boot2docker init ; boot2docker up # on OS X | |
$ sudo gem install bundler highline building | |
$ git clone https://github.com/jesperfj/webapp-with-jndi | |
$ cd webapp-with-jndi | |
$ mvn package | |
$ cd target/my-webapp | |
$ building -b http://github.com/jesperfj/buildpack-tomcat.git myapp |
ambassador: | |
image: ctlc/ambassador | |
ports: | |
- 3306:3306 | |
links: | |
- db | |
db: | |
image: ctlc/mysql | |
ports: | |
- 3306 volumes: |
$ docker run -t -i -name mysql_ambassador -expose 3306 -e MYSQL_PORT_3306_TCP=tcp://192.168.1.52:3306 ctlc/ambassador |
$ docker run -t -i -link mysql:mysql -name mysql_ambassador -p 3306:3306 ctlc/ambassador |