Skip to content

Instantly share code, notes, and snippets.

View ClaesBas's full-sized avatar

Claes Ström ClaesBas

View GitHub Profile
@ClaesBas
ClaesBas / main.go
Last active January 29, 2025 16:21
Reworked Example from Datastars SDK for GO Readme
package main
import (
"fmt"
"math"
"math/rand"
"net/http"
"time"
datastar "github.com/starfederation/datastar/sdk/go"
@ClaesBas
ClaesBas / index.html
Last active January 25, 2025 08:59
Adding an embedded NATS server to https://github.com/anoop9001/datastar-golang-example (you need to download/clone that repo and replace server.go and index.html)
<!doctype html>
<html>
<head>
<title> Datastar </title>
<script
type="module" defer src="https://cdn.jsdelivr.net/gh/starfederation/datastar@develop/bundles/datastar.js">
</script>
</head>
@ClaesBas
ClaesBas / OpenBSD_on_SmartOS_with_BHYVE
Last active December 25, 2025 17:50
How to install OpenBSD on SmartOS with bhyve hypervisor (OpenBSD65 and SmartOS 20190424)
How to install OpenBSD with bhyve-vm on SmartOS (20190424):
tl;dr:
Create a bhyve vm with an empty disk, where you put an install image with dd afterwards.
"bhyve_extra_opts": "-w"
"bootrom": "uefi"
"vcpus": 1 (is needed too, some say..)
Change to serial console when booting the install image
Do it like this: