- local https://github.com/kubernetes-sigs/kind (or just use minikube if it works for you)
- cloud https://cloud.google.com/kubernetes-engine (for PersistentVolume and Ingress, I needed to try the real deal)
- practice environment: https://github.com/arush-sal/cka-practice-environment
#!/bin/sh | |
########################################################################## | |
# Note: you must have set up your Travis CI environment variables for this | |
# project to include both TELEGRAM_TOKEN and TELEGRAM_CHAT_ID | |
# For more details, see the Telegram documentation at: | |
# - https://core.telegram.org/bots/api | |
# and the blog posts at: | |
# - https://ansonvandoren.com/posts/telegram-notification-on-deploy/ | |
# - https://ansonvandoren.com/posts/travis-telegram-integration/ |
Use a live usb to try Ubuntu before installing. Boot from the live usb. On the GRUB screen highlight the "Try Ubuntu ...." option and press e
. Update kernel parameters by adding options before quiet splash
such that the line should read as below
nogpumanager nomodeset i915.modeset=1 quiet splash
Note: On HighDPI screen machines there is a known issue whereby Ubiquity (ubuntu installer) craashes at the copying files step i.e. immediatly after the user setup screen. The cause and workaround are discussed in other gist post
Post installation, to avoid updating the above mentioned kernel options each time the system is booted, edit GRUB configuration file sudo vi /etc/default/grub
and make th
#!/bin/sh | |
# Reset Parallels Desktop's trial and generate a casual email address to register a new user | |
rm /private/var/root/Library/Preferences/com.parallels.desktop.plist /Library/Preferences/Parallels/licenses.xml | |
jot -w pdu%d@gmail.com -r 1 |
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/
NOTE: This is outdated. Check the comments below for more up-to-date forks of this gist.
Improved YARD CHEATSHEET http://yardoc.org
forked from https://gist.github.com/chetan/1827484 which is from early 2012 and contains outdated information.
# instead of having dredd start up an endpoint, this will boot your endpoint up | |
# using capybara so that we can take advantage or ruby testing tools like FactoryGirl, DatabaseCleaner and SimpleCov | |
include DreddHooks::Methods | |
ENV["RAILS_ENV"] = "test" | |
require "rubygems" | |
require "bundler/setup" | |
unless ENV["SKIP_COVERAGE"] |
. | |
├── books | |
│ ├── handlers.go | |
│ └── models.go | |
├── config | |
│ └── db.go | |
└── main.go |
/* | |
******************************************************************************** | |
Golang - Asterisk and Ampersand Cheatsheet | |
******************************************************************************** | |
Also available at: https://play.golang.org/p/lNpnS9j1ma | |
Allowed: | |
-------- | |
p := Person{"Steve", 28} stores the value |