Skip to content

Instantly share code, notes, and snippets.

Nosön - personal notes 👋

Tips

  • quick note command alt-sh-N: create new Page: 2025-12-05...
  • varok ra command alt-sh-V:

Shared pages

${query[[ from p = index.contentPages() select templates.mypage(p) where p.share

[[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

Test Page v1.2

function term() 
  -- url = "https://obligations-monitoring-sized-breakdown.trycloudflare.com/)"
  url = "https://user0.k3z.eu"
  return widget.html("<iframe src='" .. url .."' width=500 height=400 style='border: 1px solid #ccc;'></iframe>")
end
@lalyos
lalyos / 00-k8s-prompt.md
Last active July 11, 2026 10:30
simple shell based prompt generated with promptline.vim

Sometimes a very simple prompt is useful - like creating documentation, or github issues. In those cases its still important to be able to tell the k8s context/ns

white [ctx/ns]

PS1='[$(kubectl config view --minify -o jsonpath="{.contexts[0].name}:{.contexts[0].context.namespace}")]$ '

orange [ns]

@lalyos
lalyos / etcd-list-keys.md
Last active March 15, 2026 12:19
k8s etcd list keys

You can demostrate how kubernetes stores everything in etcd (v3):

One-liner

You can exec etcdctl rigth in the etc pod:

kubectl exec -it \
  -n kube-system etcd-minikube \
  -- sh -c 'ETCDCTL_CACERT=/var/lib/localkube/certs/etcd/ca.crt \
 ETCDCTL_CERT=/var/lib/localkube/certs/etcd/peer.crt \
@lalyos
lalyos / README.md
Last active January 5, 2026 16:56
install golang to ubuntu/debian one-linet

Install latest golang

curl -Ls http://bit.ly/go_installer | bash

Overview

If you want to install golang, normally you are following the description on the official dowload page

@lalyos
lalyos / README.md
Created December 24, 2025 07:25
linux LD_PRELOAD demo on alpine implementing faketime

LD_PRELOAD

LD_PRELOAD is an environment variable in Linux/Unix systems that tells the dynamic linker to load specific shared libraries before any other libraries when running a program.

How it works

When you run a program, the dynamic linker loads the required shared libraries. LD_PRELOAD forces certain libraries to be loaded first, allowing you to override functions from other libraries.

name Library/lalyos/silvertutor/index
tags meta/library
description SilverBullet Tutor library
author lalyos
@lalyos
lalyos / index.html
Last active December 2, 2025 10:04
Sample index.html for onechart/static-site
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Demo</title>
</head>
<body>
<h1>Static Demo site</h1>
by using:
<li><a href="https://chart.onechart.dev/">OneChart</a>'s static-site chart
<li>a html coming from github/<a href="https://gist.github.com/lalyos/4d393910a18e2f0a256bac2c8a18f738">gist</a>
@lalyos
lalyos / content.md
Last active December 1, 2025 10:02

Test Page

Setting up git push

get deploy key to clipboard

# private key is in /space dir now
## op read "op://Employee/silver.k3z.eu/gh-deploy-key"|pbcopy