Skip to content

Instantly share code, notes, and snippets.

@ouyi
ouyi / minikube-sierra.md
Created Dec 4, 2018 — forked from inadarei/minikube-sierra.md
Minikube Setup: Docker for Mac / Sierra
View minikube-sierra.md

Prerequisite: latest Docker for Mac on MacOS Sierra

$ brew update
$ brew install --HEAD xhyve
$ brew install docker-machine-driver-xhyve
$ sudo chown root:wheel $(brew --prefix)/opt/docker-machine-driver-xhyve/bin/docker-machine-driver-xhyve
$ sudo chmod u+s $(brew --prefix)/opt/docker-machine-driver-xhyve/bin/docker-machine-driver-xhyve

$ curl -Lo minikube https://storage.googleapis.com/minikube/releases/v0.18.0/minikube-darwin-amd64 && chmod +x minikube && sudo mv minikube /usr/local/bin/
@ouyi
ouyi / jinja2_file_less.py
Created Sep 7, 2018 — forked from wrunk/jinja2_file_less.py
python jinja2 examples
View jinja2_file_less.py
#!/usr/bin/env/python
#
# More of a reference of using jinaj2 without actual template files.
# This is great for a simple output transformation to standard out.
#
# Of course you will need to "sudo pip install jinja2" first!
#
# I like to refer to the following to remember how to use jinja2 :)
# http://jinja.pocoo.org/docs/templates/
#