peterhellberg’s gists

WASMCarts in Zig

I just found out about the in development fantasy console

https://github.com/pgattic/wasm-experiment

Since I'm on Pop_OS! which is currently based on 24.04 I need to install a newer version of cmake than what is in the default repos:

#include <arpa/inet.h>
#include <netinet/in.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <strings.h>
#include <sys/socket.h>
#include <sys/stat.h>
#include <unistd.h>
date 2026-02-27
author Peter Hellberg 🌿
paging [page %d / %d]
theme ../../../.slides/theme.json

Building Reliable Workflows

________________________________________________
services:
valheim:
image: ghcr.io/lloesche/valheim-server
container_name: mmmm-valheim-server
cap_add:
- sys_nice
volumes:
- ./config:/config
- ./data:/opt/valheim
ports:
#!/usr/bin/env bash
set -euo pipefail
# ----------------------------
# Check arguments
# ----------------------------
if [ "$#" -ne 1 ]; then
echo "Usage: $0 <zig-version>"
echo "Example: $0 0.15.2"
CC ?= zig cc
CFLAGS ?= -std=c11 -Wall -Wextra `sdl2-config --cflags`
LDFLAGS ?= `sdl2-config --libs`
TARGET = sdl-minimal
all: $(TARGET)
$(TARGET): sdl-minimal.c
$(CC) $(CFLAGS) $< -o $@ $(LDFLAGS)
package main
import (
"errors"
"flag"
"fmt"
"io"
"net/http"
"os"
"path/filepath"
// Variabler
#let text-font = "Inter"
#let text-size-small = 8pt
#let text-size-base = 9.3pt
#let text-size-section = 12pt
// Typsnitt och textstorlek för etiketterna
#set text(font: text-font, size: text-size-base)
// A4 papper med marginaler som stämmer med Avery 99x138-R

esp32-c3-experiment

Steps

Requires the Arduino CLI

# Dependencies
arduino-cli lib install "u8g2"
arduino-cli lib install "WS2812FX"