Install minikube following instructions here
minikube config set cpus 2
minikube config set memory 8192
minikube config set disk-size 50g
minikube start --vm=true
minikube config set cpus 2
minikube config set memory 8192
minikube config set disk-size 50g
minikube start --vm=true
#!/usr/bin/env bash | |
set -Eeo pipefail | |
patch=$(cat <<EOF | |
cGFyYW1ldGVyczoKICBhcHBsaWNhdGlvbi1uYW1lOgogICAgZGVzY3JpcHRpb246ICJOYW1lIG9m | |
IGFwcGxpY2F0aW9uIGZvbGRlciBpbiBhcHBzIHJlcG8iCiAgICB0eXBlOiBzdHJpbmcKICAgIGRl | |
ZmF1bHQ6ICJhcHBuYW1lIiAjIyBDSEFOR0UgTUUKCmV4ZWN1dG9yczoKICB0b3RlLWV4ZWN1dG9y | |
OgogICAgZG9ja2VyOgogICAgICAtIGltYWdlOiBnaGNyLmlvL3RoZXRvdGUvY2ljZC10b29sczpj | |
aXJjbGVjaS1nby1sYXRlc3QKICAgICAgICBhdXRoOgogICAgICAgICAgdXNlcm5hbWU6ICRDSVJD | |
TEVfUFJPSkVDVF9VU0VSTkFNRQogICAgICAgICAgcGFzc3dvcmQ6ICRHSENSX1RPS0VOCgpqb2Jz |
I hereby claim:
To claim this, I am signing this object:
kubectl run -i --tty --rm debug --image=ubuntu --restart=Never -- bash |
# Add a submodule tracking master | |
git submodule add -b <branch> <repo> <name> | |
# Update a submodule | |
git submodule update --remote | |
# Update a submodule from a parent repo | |
cd path/to/submodule | |
git add <files> | |
git commit -m "comment" |
# Install Python and PIP. | |
sudo apt-get install -y python python-pip | |
# Install Docker Compose into your user's home directory. | |
pip install --user docker-compose |
AWSConfigurationTemplateVersion: 1.1.0.0 | |
EnvironmentTier: | |
Type: Standard | |
Name: WebServer | |
SolutionStack: 64bit Amazon Linux 2016.03 v2.1.0 running Docker 1.9.1 | |
EnvironmentConfigurationMetadata: | |
Description: Configuration for my application. | |
DateCreated: '1461754412000' | |
DateModified: '1463744634' | |
Tags: |
var result = decorator3(decorator2(decorator1(source(someArgs), someOtherArgs), moreArgs), evenMoreArgs, andThenSome); |
var Promise = require('bluebird'); | |
module.exports = function create(taxService) { | |
function addTaxInformation(id, roomRates) { | |
return Promise.each(roomRates, function (roomRate) { | |
return taxService.getTaxInformation(id, roomRate.total.price) | |
.then(function (taxInformation) { | |
if (taxInformation) { | |
roomRate.total.priceBeforeTax = taxInformation.priceBeforeTax; | |
roomRate.taxes = taxInformation.taxBreakdown; |
var Promise = require('bluebird'); | |
module.exports = function roomRateSourceChain(originalSource, modifiers) { | |
return { | |
getRoomRates: function () { | |
var originalArguments = [].slice.call(arguments); | |
return originalSource.apply(null, originalArguments) | |
.then(function (roomRates) { | |
originalArguments.unshift(roomRates); | |
return Promise.reduce(modifiers, function (resultsFromPrevious, modifier) { |