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
| ARG IMAGE=kindest/node | |
| ARG VERSION=1.19 | |
| ARG MINOR=1 | |
| ARG OS=xUbuntu_20.04 | |
| FROM ${IMAGE}:v${VERSION}.${MINOR} | |
| ARG VERSION | |
| ARG OS |
This content was presented at a sig-testing meeting on 8/25/2020, available as a video here
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 | |
| DEST_REPO=${DEST_REPO:-"gcr.io/k8s-staging-csi/"} | |
| images=( | |
| quay.io/k8scsi/csi-attacher:v2.2.0 | |
| quay.io/k8scsi/csi-attacher:v3.0.0-rc1 | |
| quay.io/k8scsi/csi-node-driver-registrar:v1.2.0 | |
| quay.io/k8scsi/csi-node-driver-registrar:v1.3.0 | |
| quay.io/k8scsi/csi-provisioner:v1.6.0 |
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
| import { useReducer, useCallback } from 'react'; | |
| // Usage | |
| function App() { | |
| const { state, set, undo, redo, clear, canUndo, canRedo } = useHistory({}); | |
| return ( | |
| <div className="container"> | |
| <div className="controls"> | |
| <div className="title">👩🎨 Click squares to draw</div> |
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
| # show commits from all branches for current git user. | |
| function my-commits-since() { | |
| git log --all --author=$(git config user.email) --since=$@ | |
| } | |
| # show commits from yesterday. | |
| # if none were found, assume it's Monday and show commits from Friday. | |
| function standup() { | |
| if [ -z "$(my-commits-since yesterday)" ]; then | |
| my-commits-since last.friday.midnight $@; |
(After cloning the wiki locally)
-
Add images to an
imagesdirectory (or subdirectory below it) in your wiki repo. -
In wiki page markup embed an image with this link format:
[[/images/path/to/image.ext|ALT TEXT]]
One machine, several git identities (personal vs work, GitHub vs GitLab, two accounts on one provider). Each repository picks its own name, email and credentials. In a hurry: Appendix B, once per rule.
A wrong identity does not fail: git commits and pushes under the wrong author. Part 1 ends with the check that catches it.
| Feature | Minimum git |
|---|
Ref: https://gist.github.com/rnwolf/e09ae9ad6d3ac759767d129d52cab1f1
| Key Binding | Description |
|---|---|
| SPC | < space > |
| RET | < return > |
| C | < ctrl > |
| M | < alt >, M stands for Meta |
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
| # This tells kubecfg to read its config from the local directory | |
| export KUBECONFIG=./kubeconfig | |
| # Looking at the cluster | |
| kubectl get nodes | |
| kubectl get pods --namespace=kube-system | |
| # Running a single pod | |
| kubectl run --generator=run-pod/v1 --image=gcr.io/kuar-demo/kuard-amd64:1 kuard | |
| kubectl get pods |
NewerOlder