This file contains hidden or 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
sudo apt-get update | |
sudo apt-get install virtualbox -y | |
curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/darwin/amd64/kubectl | |
chmod +x ./kubectl | |
sudo mv ./kubectl /usr/local/bin/kubectl | |
curl -Lo minikube https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64 | |
chmod +x minikube | |
sudo mv minikube /usr/local/bin/ |
This file contains hidden or 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
#!/bin/bash | |
# needs to be executed as root | |
apt-get purge "lxc-docker*" | |
apt-get purge "docker.io*" | |
apt-get update | |
apt-get install -y apt-transport-https ca-certificates gnupg2 | |
apt-key adv \ |
This file contains hidden or 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
class Base(object): | |
def __new__(cls, *args, **kwargs): | |
obj = super(Base, cls).__new__(cls, *args, **kwargs) | |
tmpf = obj.f | |
def new_f(*args, **kwargs): | |
super(cls, obj).f(*args, **kwargs) | |
return tmpf(*args, **kwargs) | |
obj.f = new_f |