I use luan/vimfiles
He's also added a cheat sheet
# get vim set up
brew uninstall ctags
brew tap universal-ctags/universal-ctags
brew install universal-ctags --HEAD
set-window-option -g utf8 on | |
set -g mode-mouse on | |
set -g mouse-resize-pane on | |
set -g mouse-select-pane on | |
set -g mouse-select-window on | |
set-option -g prefix C-q | |
set -g history-limit 50000 | |
unbind-key C-b | |
bind-key q send-prefix | |
set -g base-index 1 |
set the clipboard to "" | |
set appname to "SecurID" | |
set thePin to RsaTokenPin() | |
activate application appname | |
do shell script "networksetup -setairportpower en0 on" | |
tell application appname | |
activate |
#!/bin/bash | |
# generate pub key | |
ssh-keygen -f ~/.ssh/id_rsa.pub -e -m PKCS8 > ~/.ssh/id_rsa.pem.pub | |
# encrypt | decrypt | |
openssl rsautl -encrypt -pubin -inkey ~/.ssh/id_rsa.pem.pub -ssl <<< somestring | | |
openssl rsautl -decrypt -inkey ~/.ssh/id_rsa |
#!/bin/sh | |
KEYDIR=~/.ssh/keys.d/github-deploy | |
CONFDIR=~/.ssh/config.d/github-deploy | |
github_username=noah | |
github_access_token=$(cat ~/.secret/github_access_token) | |
rp=$(git rev-parse --is-inside-work-tree 2>/dev/null) |
I use luan/vimfiles
He's also added a cheat sheet
# get vim set up
brew uninstall ctags
brew tap universal-ctags/universal-ctags
brew install universal-ctags --HEAD
This guide has moved to a GitHub repository to enable collaboration and community input via pull-requests.
https://github.com/alexellis/k8s-on-raspbian
Alex
The official guide for setting up Kubernetes using kubeadm
works well for clusters of one architecture. But, the main problem that crops up is the kube-proxy
image defaults to the architecture of the master node (where kubeadm
was run in the first place).
This causes issues when arm
nodes join the cluster, as they will try to execute the amd64
version of kube-proxy
, and will fail.
It turns out that the pod running kube-proxy
is configured using a DaemonSet. With a small edit to the configuration, it's possible to create multiple DaemonSets—one for each architecture.
Follow the instructions at https://kubernetes.io/docs/setup/independent/create-cluster-kubeadm/ for setting up the master node. I've been using Weave Net as the network plugin; it see
Why, that's simple! Copy this script to your USG, run chmod +x on it and then, as a user with sudo permission, execute it.
Shamelessly borrowed from Brittanic on the Ubiquiti Unifi forums
Simply run the following command (note, if you are at all security concious-don't run it and instead review the script, then copy it to your USG to execute).
curl https://gist.githubusercontent.com/troyfontaine/7e6f93e32621177fc9a94e823adc52b5/raw/fix_ddns.sh | sudo bash
# Apply the metallb manifests to Kubernetes | |
kubectl apply -f https://raw.githubusercontent.com/google/metallb/v0.8.1/manifests/metallb.yaml | |
# Apply a metallb configuration to Kubernetes | |
cat <<EOF | kubectl apply -f - | |
apiVersion: v1 | |
kind: ConfigMap | |
metadata: | |
namespace: metallb-system | |
name: config |
FROM alpine:3.11 AS build | |
ARG CHANNEL=unstable | |
ARG VERSION=0.99.1-127 | |
ARG ARCH=amd64 | |
RUN mkdir /build | |
WORKDIR /build | |
RUN apk add --no-cache curl tar |