This is the Public Knowledge Base — short, evergreen reference notes I've written for myself that are also useful in the open. Unlike the blog, notes here aren't dated narrative posts; they're reference material I expect to revisit and edit over time.
If you spot something wrong, let me know.
Code blocks render with syntax highlighting
The site already loads highlight.js on every page (GitHub-dark theme). Any fenced code block with a language tag picks it up automatically.
Bash
# Find all containers consuming more than 256 MiB
kubectl top pods --all-namespaces \
| awk '$4 ~ /Mi/ && $4+0 > 256 { print }'
JavaScript
/**
* Tail-recursive flatten — handles arbitrarily nested arrays without
* blowing the stack on V8.
*/
function flatten(input) {
const stack = [...input]
const out = []
while (stack.length) {
const next = stack.pop()
if (Array.isArray(next)) stack.push(...next)
else out.unshift(next)
}
return out
}
Go
package main
import "fmt"
func main() {
nums := []int{1, 2, 3, 4, 5}
sum := 0
for _, n := range nums {
sum += n
}
fmt.Println("sum:", sum)
}
YAML
apiVersion: apps/v1
kind: Deployment
metadata:
name: hello
spec:
replicas: 2
selector:
matchLabels: { app: hello }
template:
metadata:
labels: { app: hello }
spec:
containers:
- name: hello
image: nginx:alpine
ports:
- containerPort: 80
Inline `code`
You can also use inline code — it gets the same monospace treatment but skips the highlighter, since there's no language to detect on a single token.
What goes here
Loose rule of thumb:
- Notes — short ("how do I quickly grep across all my running pods?")
- Cheatsheets — commands I look up often enough to forget
- Postmortems-lite — small gotchas, not full incidents
- Snippets — code I want to keep handy without spinning up a gist
That's it. If you're looking for longer-form writing, the blog is the right place.