Overview:
- Install hypervisor (Virtualbox)
- Get and install Kubectl (repositories)
- Get and install Minikube last version
- Start and Test Minikube local cluster and expose demo service
#!/usr/bin/env bash | |
set -e | |
CONTEXT="$1" | |
if [[ -z ${CONTEXT} ]]; then | |
echo "Usage: $0 KUBE-CONTEXT" | |
exit 1 | |
fi |
package main | |
import ( | |
"go/ast" | |
"go/parser" | |
"go/token" | |
"go/format" | |
"os" | |
"reflect" | |
sudo vi /etc/sysctl.conf | |
# Add the following to sysctl.conf: | |
# Decrease TIME_WAIT seconds | |
net.ipv4.tcp_fin_timeout = 30 | |
# Recycle and Reuse TIME_WAIT sockets faster | |
net.ipv4.tcp_tw_recycle = 1 |
// Found at https://play.golang.org/p/pQn_doizkn_L | |
package main | |
import ( | |
"fmt" | |
"reflect" | |
) | |
var strs = make(map[reflect.Type]map[int]string) |
See also, http://libraryofalexandria.io/cgo/
cgo
has a lot of trap.
but Not "C" pkg also directory in $GOROOT/src
. IDE's(vim) Goto command not works.
So, Here collect materials.
Updated 4/11/2018
Here's my experience of installing the NVIDIA CUDA kit 9.0 on a fresh install of Ubuntu Desktop 16.04.4 LTS.
# Add this snippet to the top of your playbook. | |
# It will install python2 if missing (but checks first so no expensive repeated apt updates) | |
# [email protected] | |
- hosts: all | |
gather_facts: False | |
tasks: | |
- name: install python 2 | |
raw: test -e /usr/bin/python || (apt -y update && apt install -y python-minimal) |