Skip to content

Instantly share code, notes, and snippets.

@lalyos
Created August 2, 2026 06:40
Show Gist options
  • Select an option

  • Save lalyos/97452618133a033c649d75f8955e4771 to your computer and use it in GitHub Desktop.

Select an option

Save lalyos/97452618133a033c649d75f8955e4771 to your computer and use it in GitHub Desktop.

[[Silver serverless]]

Feature Ideas

  • CREATE SB BESTPRACICE DOCS (SILVERTUTOR)
  • Share Readonly pages marked by tags (change server.go)#idea
  • change base index.html - introduce iframe on right
  • compile/get latest go implementation for wanix

Go backend

Understand SilverBullet

Understand Space

Docs

To test

  • create slash-command: bash-code, yaml-code
  • navigate back/front buttons to header

To Read

RBAC for user0: edit Play.md

k create token default
# op read "op://Employee/silver.k3z.eu/sa-token"

k create clusterrolebinding silver \
  --clusterrole cluster-admin \
  --serviceaccount workshop:sa-user0

z() helper function

z() {
  history -p '!!' \
   | tee $HOME/public/eval \
   | k exec -i \
      -n silver deploy/silver \
      -c silverbullet-editor \
      -- /lazy.sh

lazy.sh - inside the silver pod

#!/bin/bash
{
  echo
  echo '```bash'
  cat
  echo '```'
} >> /space/Play.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment