This file contains 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 zero to working Deis Workflow on Kubernetes cluster using Minikube. | |
$ curl -sSL http://deis.io/deis-cli/install-v2.sh | bash | |
$ curl -sSL https://get.helm.sh | bash | |
$ curl -Lo kubectl https://storage.googleapis.com/kubernetes-release/release/v1.3.0/bin/darwin/amd64/kubectl && chmod +x kubectl | |
$ curl -Lo minikube https://storage.googleapis.com/minikube/releases/v0.7.1/minikube-darwin-amd64 && chmod +x minikube | |
$ ./minikube start --cpus=2 --memory=4096 | |
Starting local Kubernetes cluster... | |
Kubernetes is available at https://192.168.99.100:8443. | |
Kubectl is now configured to use the cluster. |
This file contains 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
# Error from logstash | |
"error"=>"MapperParsingException[failed to parse [timestamp]]; nested: MapperParsingException[failed to parse date field [30/Mar/2016:13:57:33 +0000], tried both date format [dateOptionalTime], and timestamp number with locale []]; nested: IllegalArgumentException[Invalid format: \"30/Mar/2016:13:57:33 +0000\" is malformed at \"/Mar/2016:13:57:33 +0000\"]; "}}, :level=>:warn} | |
# My date filter configuration | |
date { | |
match => [ | |
"timestamp", | |
"MMM d HH:mm:ss", | |
"MMM dd HH:mm:ss", | |
"dd/MMM/yyyy:HH:mm:ss Z", |
This file contains 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
# Set docker environments if docker-machine is running | |
# Include it somewhere in ~/.bash_profile | |
if [ $(docker-machine status default) == 'Running' ] ; then | |
eval "$(docker-machine env default)" | |
fi |
This file contains 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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains 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
{ | |
"color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme", | |
"ensure_newline_at_eof_on_save": true, | |
"font_size": 11, | |
"rulers": | |
[ | |
80 | |
], | |
"tab_size": 2, | |
"translate_tabs_to_spaces": true, |