Skip to content

Instantly share code, notes, and snippets.

@stuszynski
stuszynski / gist:03f31fe9bb68062d55cb84dba40cdaf3
Created August 11, 2016 10:54
TL;DR; Deis Workflow QuickStart (OSX version)
# 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.
# 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",
@stuszynski
stuszynski / docker-check.sh
Last active November 9, 2015 14:44
Set environment for docker-machine on terminal session startup. (Mac OSX, with Docker Toolbox)
# 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
@stuszynski
stuszynski / 0_reuse_code.js
Last active August 29, 2015 14:15
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
{
"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,