From 9ffe68e31458b91e018a87485f0d169807606208 Mon Sep 17 00:00:00 2001 From: poslop Date: Tue, 8 Sep 2026 15:56:12 -0500 Subject: [PATCH] Add paste view, public history, can gallery, password unlock sketches --- sketches/003-paste-view/index.html | 132 ++++++++++++++++++++++++ sketches/004-public-history/index.html | 102 ++++++++++++++++++ sketches/005-can-gallery/index.html | 104 +++++++++++++++++++ sketches/006-password-unlock/index.html | 78 ++++++++++++++ 4 files changed, 416 insertions(+) create mode 100644 sketches/003-paste-view/index.html create mode 100644 sketches/004-public-history/index.html create mode 100644 sketches/005-can-gallery/index.html create mode 100644 sketches/006-password-unlock/index.html diff --git a/sketches/003-paste-view/index.html b/sketches/003-paste-view/index.html new file mode 100644 index 0000000..4268793 --- /dev/null +++ b/sketches/003-paste-view/index.html @@ -0,0 +1,132 @@ + + + + + +k3sYt2 — Palette + + + + +
+ + +
+
+
+
+
+

traefik redirect middleware snippet

+ palette/k3sYt2 + go + expires in 6d +
+ raw + copy + download + delete +
+
+
+
main.go · 18 lines · 412 bytes
+
+
1 +2 +3 +4 +5 +6 +7 +8 +9 +10 +11 +12 +13 +14 +15 +16 +17 +18
+
package main + +import ( + "net/http" +) + +// redirect http to https with noop middleware +func httpsRedirect() http.Handler { + return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + if r.TLS == nil { + target := "https://" + r.Host + r.URL.RequestURI() + http.Redirect(w, r, target, http.StatusMovedPermanently) + return + } + w.WriteHeader(http.StatusOK) + }) +}
+
+
+ Created 2m ago + 12 views + never expires + public +
+
+
+ + diff --git a/sketches/004-public-history/index.html b/sketches/004-public-history/index.html new file mode 100644 index 0000000..094b166 --- /dev/null +++ b/sketches/004-public-history/index.html @@ -0,0 +1,102 @@ + + + + + +Public history — Palette + + + + +
+ + +
+
+
+
+

Public pastes

+ 2,431 total +
+ +
+
+ + + + + + + + + + + +
PasteLanguageSizeViewsCreated
k3sYt2 — traefik redirect middleware snippetgo412 B122m ago
b7QwRn — nginx notes for stagingtxt1.2 KB314m ago
xT8vZc — csv parse helperpy890 B413h ago
9mQkLp — uptime kuma compose🔒yaml2.4 KB5h ago
can/9fL2m — incident screenshots + logs (4 items)can3.8 MB71h ago
vR4nWq — sql index checksql220 B26h ago
pL2xCa — todo: rewrite auth flow🔒md560 B1d ago
+
+ Showing 1–7 of 2,431 +
+
+
+
+ + diff --git a/sketches/005-can-gallery/index.html b/sketches/005-can-gallery/index.html new file mode 100644 index 0000000..4b35a36 --- /dev/null +++ b/sketches/005-can-gallery/index.html @@ -0,0 +1,104 @@ + + + + + +can/9fL2m — Palette + + + + +
+ + +
+
+
+
+
+

Incident 4412: disk pressure on node-3

+ palette/can/9fL2m + 4 items + expires in 29d +
+ download .zip + copy link +
+
Screenshots from Grafana + the relevant log excerpts and the kubectl output we used to confirm the disk pressure.
+
+
+
+
+
📊
+
grafana-disk-usage.png1.1 MB
+
+
+
📉
+
inode-trend.png830 KB
+
+
+
</>kubectl-describe.txt
+
kubectl-describe.txt4 KB
+
+
+
</>alerting-log.txt
+
alerting-log.txt12 KB
+
+
+
+ Created 1h ago + 7 views + public +
+
+
+ + diff --git a/sketches/006-password-unlock/index.html b/sketches/006-password-unlock/index.html new file mode 100644 index 0000000..07a18d3 --- /dev/null +++ b/sketches/006-password-unlock/index.html @@ -0,0 +1,78 @@ + + + + + +Locked paste — Palette + + + + +
+ +
+
+
+
+
+
🔒
+

This paste is locked

+

Enter the password to view palette/9mQkLp

+ + +

Wrong password. 2 attempts left before a 30s cooldown.

+
+
Expires in 6 days · created by an anonymous user
+
+
+ +