utilruntime "k8s.io/apimachinery/pkg/util/runtime"
func Must(err error) {
if err != nil {
panic(err)
}
}
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 | |
| set -eou pipefail | |
| export VERSION=14 | |
| export ARGS=0 | |
| export FILE= | |
| show_help() { | |
| echo "c++14 - builds and runs a c++ source file specified by the only argument" | |
| echo " " |
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 | |
| export MINIKUBE_VER=v1.0.0 | |
| export KUBECTL_VER=`curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt` | |
| show_help() { | |
| echo "mk-kc.sh - update minikube and kubectl" | |
| echo " " | |
| echo "mk-kc.sh [options]" | |
| echo " " |
System: Debian/Ubuntu/Fedora. Might work for others as well.
As mentioned here, to update a go version you will first need to uninstall the original version.
To uninstall, delete the /usr/local/go directory by:
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
| package main | |
| // http://play.golang.org/p/jZ5pa944O1 <- will not display the colors | |
| import "fmt" | |
| const ( | |
| InfoColor = "\033[1;34m%s\033[0m" | |
| NoticeColor = "\033[1;36m%s\033[0m" | |
| WarningColor = "\033[1;33m%s\033[0m" | |
| ErrorColor = "\033[1;31m%s\033[0m" | |
| DebugColor = "\033[0;36m%s\033[0m" |
OlderNewer