Skip to content

Instantly share code, notes, and snippets.

View pojntfx's full-sized avatar
💭
🌅

Felicitas Pojtinger pojntfx

💭
🌅
View GitHub Profile
@pojntfx
pojntfx / settings.json
Created October 17, 2026 03:27
Prevent VSCode from having high CPU usage when working with Flatpaks
{
"files.exclude": {
"**/.flatpak-builder": true,
"**/.flatpak-builder/**": true,
"**/flatpak/build": true,
"**/flatpak/build/**": true,
"**/flatpak/repo": true,
"**/flatpak/repo/**": true
},
"files.watcherExclude": {
@pojntfx
pojntfx / keybindings.json
Created August 22, 2026 19:18
Personal VSCodium Configuration
// Place your key bindings in this file to override the defaults
[
{
"key": "ctrl+shift+\\",
"command": "workbench.action.toggleAuxiliaryBar"
},
{
"key": "ctrl+alt+b",
"command": "-workbench.action.toggleAuxiliaryBar"
},
@pojntfx
pojntfx / main.go
Created April 22, 2026 06:38
puregotk-based GStreamer example with unreleased fixes
package main
import (
"log/slog"
"runtime"
"unsafe"
"codeberg.org/puregotk/puregotk/examples/gstreamer-go/gst"
"codeberg.org/puregotk/puregotk/v4/adw"
"codeberg.org/puregotk/puregotk/v4/gdk"
@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 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 / 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 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.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/
@pojntfx
pojntfx / main.sh
Created February 3, 2026 16:14
Set up Weston on Alpine Linux on desktops with old GPUs that lack Mesa support
#!/bin/bash
doas setup-wayland-base
apk add weston weston-backend-drm seatd weston-backend-wayland weston-shell-desktop weston-terminal font-dejavu
doas adduser $USER video
doas adduser $USER seat
doas rc-service seatd start
@pojntfx
pojntfx / main.sh
Last active October 11, 2026 06:16
Set up Phosh and phrog on Alpine Linux on desktops with old GPUs that lack Mesa support
# phrog starts, phosh is still stuck in an endless loading loop for some reason
#!/bin/bash
doas apk add dbus elogind polkit-elogind seatd
doas apk add phosh phoc squeekboard greetd-phrog
doas apk add phosh-mobile-settings gnome-backgrounds
doas rc-update add dbus default
doas rc-update add elogind default
doas rc-update add seatd default