# install and setup minikube
brew install minikube
minikube status
# if you need larger than default 16GB
#minikube start -p v1.15 --kubernetes-version='v1.15.11' --cpus=4 --memory=6000mb --disk-size=20GB
minikube start -p v1.15 --kubernetes-version='v1.15.11' --cpus=4 --memory=6000mb
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
| # combined two sample scripts, one for each sensor, into a single example | |
| import time | |
| import board | |
| import busio | |
| import adafruit_lis3mdl | |
| from os import system | |
| i2c = busio.I2C(board.SCL, board.SDA) | |
| sensor1 = adafruit_lis3mdl.LIS3MDL(i2c) |
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 | |
| ##################################################### | |
| # Name: Bash CheatSheet for Mac OSX | |
| # | |
| # A little overlook of the Bash basics | |
| # | |
| # Usage: | |
| # | |
| # Author: J. Le Coupanec | |
| # Date: 2014/11/04 |
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
| { | |
| "kind": "KubeletConfiguration", | |
| "apiVersion": "kubelet.config.k8s.io/v1beta1", | |
| "syncFrequency": "1m0s", | |
| "fileCheckFrequency": "20s", | |
| "httpCheckFrequency": "20s", | |
| "address": "0.0.0.0", | |
| "port": 10250, | |
| "tlsCertFile": "/root/cdk/server.crt", | |
| "tlsPrivateKeyFile": "/root/cdk/server.key", |
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 | |
| # start vault | |
| VAULT_UI=true vault server -dev -dev-root-token-id=root -dev-listen-address=127.0.0.1:8200 | |
| # login as root - DO NOT DO THIS IN PRODUCTION | |
| vault login root | |
| # write some secrets | |
| vault kv put secret/test color=blue number=eleventeen |
OlderNewer