Skip to content

Instantly share code, notes, and snippets.

View pojntfx's full-sized avatar
💭
🌅

Felicitas Pojtinger pojntfx

💭
🌅
View GitHub Profile
@pojntfx
pojntfx / README.md
Last active April 16, 2026 20:40
Boot Linux or OpenBSD on the PowerBook G4 (PowerPC/ppc32)

Boot Linux or OpenBSD on the PowerBook G4 (PowerPC/ppc32)

Creating the USB sticks

Use an older USB 2.0 stick, newer ones will most certainly not work.

sudo dd if=debian-11.0.0-powerpc-NETINST-1.iso of=/dev/sda1 status=progress # Or use GNOME Disks, Etcher etc.
sync
@pojntfx
pojntfx / README.md
Last active April 9, 2026 07:38
Set up Nanobot with OpenRouter and Ollama

You need SSH access, a personal Matrix account, a bot Matrix account, and a server (if self-hosting via Ollama, at least 32 GB of RAM)

1. Clean Up Old Matrix Sessions

Sign into your bot account in Element, go to Settings → Sessions, and delete any stale sessions to avoid E2EE key conflicts.

2. Create the Service User

SSH into the server and create a dedicated nanobot user with passwordless sudo and lingering enabled (so its systemd user services survive logout):

@pojntfx
pojntfx / README.md
Created April 9, 2026 02:04
LLM Meeting Vancouver April 8 Notes

LLM Meetup Topics and Talks (Distilled)

Discussion Topics

Agent Architecture and Orchestration

  • Sandboxing for agents (Tavis)
    • How people are safely sandboxing the tools they are using and shipping
    • Security
  • Managing many agents (Dan)
@pojntfx
pojntfx / README.md
Last active March 28, 2026 11:25
Setup High-Performance Nextcloud Talk Backend and Recording Server on Hetzner

Nextcloud High Performance Backend and Recording Setup

Commercial hosted providers (I recommend using these instead of hosting it yourself, esp. if you're setting this up for someone else):

This pad is heavily based on https://arnowelzel.de/en/nextcloud-talk-high-performance-backend-with-docker - it's probably best to check if there were any changes in that article before you proceede here.

High-Performance Backend

@pojntfx
pojntfx / main.sh
Last active March 25, 2026 21:38
QEMU Android-X86 with 3D hardware acceleration, audio & webcam support
# Without webcam access
sudo GDK_SCALE=1 qemu-system-x86_64 -enable-kvm -m 4096 -smp $(nproc) -cpu host -device ac97 -audiodev alsa,id=snd0,out.buffer-length=500000,out.period-length=726 -device virtio-mouse-pci -device virtio-keyboard-pci -net nic -net user -device virtio-vga,virgl=on -display gtk,gl=on -hda android-x86.img -cdrom android-x86.iso
# With webcam access (requires sudo; change hostbus=2,hostaddr=4 to match your webcam's USB address).
sudo pulseaudio -D --system
sudo GDK_SCALE=1 qemu-system-x86_64 -enable-kvm -m 4096 -smp $(nproc) -cpu host -device ac97 -audiodev alsa,id=snd0,out.buffer-length=500000,out.period-length=726 -device virtio-mouse-pci -device virtio-keyboard-pci -net nic -net user -device virtio-vga,virgl=on -usb -device usb-ehci,id=ehci -device usb-host,hostbus=2,hostaddr=4 -display gtk,gl=on -hda android-x86.img -cdrom android-x86.iso
# More information on changing things like the screen resolution: See https://web.archive.org/web/20210117124628/https://linuxhint.com/android_qem
@pojntfx
pojntfx / main.sh
Last active March 21, 2026 05:52
Build Flatpak bundle and/or static Go binary on remote system, download it, install it and run it locally
#!/bin/bash
# flatpak-builder
ssh -p 22220 -t pojntfx@localhost "cd ~/Projects/sessions && flatpak-builder --user --force-clean --disable-rofiles-fuse --repo=repo builddir --install com.pojtinger.felicitas.Sessions.json --disable-updates && flatpak build-bundle repo sessions.flatpak com.pojtinger.felicitas.Sessions" && scp -P 22220 pojntfx@localhost:/home/pojntfx/Projects/sessions/sessions.flatpak /tmp/sessions.flatpak && flatpak install -u -y /tmp/sessions.flatpak && flatpak run com.pojtinger.felicitas.Sessions
# Foundry
ssh -p 22220 -t pojntfx@localhost "cd ~/Projects/sessions && foundry export" && scp -P 22220 pojntfx@localhost:/home/pojntfx/Projects/sessions/.foundry/cache/flatpak/staging/x86_64-main/com.pojtinger.felicitas.Sessions-x86_64.flatpak /tmp/sessions.flatpak && flatpak install -u -y /tmp/sessions.flatpak && flatpak run com.pojtinger.felicitas.Sessions
# Go (static binary)
ssh -p 22220 -t pojntfx@localhost "cd ~/Projects/portal && go build -o /tmp/usb ./cmd/usb" && scp -P 22220 pojntfx@local
@pojntfx
pojntfx / main-binary.sh
Last active March 17, 2026 06:57
Cross-Compile a puregotk app from Linux to macOS and run it via SSH
#!/bin/bash
set -ex
GOOS=darwin GOARCH=arm64 go build -x -o /tmp/sessions -ldflags="-X 'main.LocaleDir=/Users/pojntfx/Projects/sessions/po' -X 'main.SchemaDir=/Users/pojntfx/Projects/sessions/assets/resources'" . && scp /tmp/sessions pojntfx@[2001:569:7bcc:d80:98:6876:d203:c3b9]:/tmp/sessions && ssh -tt pojntfx@2001:569:7bcc:d80:98:6876:d203:c3b9 'codesign -s - /tmp/sessions && /tmp/sessions'
@pojntfx
pojntfx / main.sh
Last active February 21, 2026 07:37
Cross-compile and package GTK4/libadwaita apps for Windows from Linux with MSYS2 and WINE
#!/bin/bash
# Install native dependencies
sudo dnf update -y
sudo dnf install -y curl wine
# Install MSYS2
curl -L -o /tmp/msys2.exe 'https://github.com/msys2/msys2-installer/releases/download/2021-11-30/msys2-base-x86_64-20211130.sfx.exe'
wine64 /tmp/msys2.exe x -y -oC:/
@pojntfx
pojntfx / main.sh
Last active February 16, 2026 22:38
Setup Tailscale on an immutable Linux system (e.g. GNOME OS or Fedora Silverblue)
#!/bin/bash
sudo podman rm -f tailscaled
# If you want to store the Tailscale secrets on the TPM, add --device=/dev/tpm0 to the Podman flags below
sudo podman run -d \
--name=tailscaled \
--restart=always \
-v tailscale-data:/var/lib/tailscale \
-v /dev/net/tun:/dev/net/tun \
-v /run:/run \
@pojntfx
pojntfx / main.sh
Last active February 16, 2026 22:33
Build GNOME OS with custom kernel and install changes to local system
#!/bin/bash
make -C files/boot-keys clean
make -C files/boot-keys IMPORT_MODE=local
bst --no-strict build gnomeos/live-image.bst
bst workspace open freedesktop-sdk.bst:components/linux.bst --directory ../linux/