Skip to content

Instantly share code, notes, and snippets.

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

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

@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
@lalyos
lalyos / .0README.md
Last active December 14, 2023 13:38
KUBECONFIG helper scripts - magic

Install

Add this to you ~/.bashrc

if [ -f ~/.kube/.kube-config.sh ]; then 
  source ~/.kube/.kube-config.sh
else 
  curl -sLo ~/.kube/.kube-config.sh https://gist.githubusercontent.com/lalyos/f851fd3273fead83146eeca6822a9604/raw/.kube-config.sh
  source ~/.kube/.kube-config.sh
fi
@lalyos
lalyos / 00-k3s-airgap-images.sh
Last active October 4, 2023 19:47
k3s with airgap image prewarmed
mkdir -p /var/lib/rancher/k3s/agent/images/
VERSION_K3S=$(curl -w '%{url_effective}' -L -s -S https://update.k3s.io/v1-release/channels/stable -o /dev/null | sed -e 's|.*/||')
curl -sL -o /var/lib/rancher/k3s/agent/images/airgap-images.tar https://github.com/k3s-io/k3s/releases/download/${VERSION_K3S}/k3s-airgap-images-amd64.tar