Skip to content

Instantly share code, notes, and snippets.

View mestadler's full-sized avatar
:fishsticks:
Down the rabbit hole!

mes mestadler

:fishsticks:
Down the rabbit hole!
  • London, UK
View GitHub Profile
@mestadler
mestadler / android_on_linux_list.md
Created November 21, 2026 17:03
Open-Source Android-on-Linux Comparison Matrix
Project Repository Model Execution Approach Architecture Kernel & Isolation ARM64 on x86_64 Graphics Stack Desktop Integration Language License Maturity Stage Community / Traction Maintenance Cadence
Waydroid github.com/waydroid/waydroid Container Full Android OS container Boots LineageOS/AOSP userspace inside LXC on host Linux kernel Shared host binderfs (binder, hwbinder, vndbinder) + root daemon External/proprietary add-ons (libndk_translation / libhoudini) Mesa (virgl / venus) over DRM/KMS; SurfaceFlinger -> Wayland Multi-window or full UI, .desktop launchers, shared folders/clipboard Python, C++, Shell GPL-3.0 Production / Baseline Very high (~12.6k GitHub stars, wide distro packaging) Steady: Ongoing vendor/image & bugfix maintenance (Android 13 base)
Droidloom
@mestadler
mestadler / gist:c9406b81c6fd8a99a463320813327595
Created November 21, 2026 17:01
Open-Source Android-on-Linux Comparison Matrix
### Open-Source Android-on-Linux Comparison Matrix
| Project | Repository | Model | Execution Approach | Architecture | Kernel & Isolation | ARM64 on `x86_64` | Graphics Stack | Desktop Integration | Language | License | Maturity Stage | Community / Traction | Maintenance Cadence |
| :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- |
| **Waydroid** | [github.com/waydroid/waydroid](https://github.com/waydroid/waydroid) | **Container** | Full Android OS container | Boots LineageOS/AOSP userspace inside LXC on host Linux kernel | Shared host `binderfs` (`binder`, `hwbinder`, `vndbinder`) + root daemon | External/proprietary add-ons (`libndk_translation` / `libhoudini`) | Mesa (`virgl` / `venus`) over DRM/KMS; SurfaceFlinger -> Wayland | Multi-window or full UI, `.desktop` launchers, shared folders/clipboard | Python, C++, Shell | GPL-3.0 | **Production / Baseline** | Very high (~12.6k GitHub stars, wide distro packaging) | **Steady:** Ongoing vendor/image & bugfix
@mestadler
mestadler / mes-pebblentn-daig-paris
Created October 3, 2026 15:13
PebbleNTN diagnostics Paris Pedestrian Day Walk
{
"metadata": {
"schemaVersion": 1,
"mode": "FULL",
"exportedAt": "2026-10-03T15:01:52.094519Z",
"appVersion": "0.0.46",
"androidRelease": "17",
"locale": "en-GB-u-mu-celsius"
@mestadler
mestadler / RFC0171-agentic-automated-metacognitive.md
Created July 5, 2026 04:48
RFC-0171 Implementation of an Automated Metacognitive Learning Flywheel

Architectural Decision Record (ADR) & Request for Comments (RFC)

Status: DRAFT Author: Martin Stadler Date: July 5, 2026 Target Architecture: OpenCode Multi-Agent Harness & Local Execution Environment

Title: Implementation of an Automated Metacognitive Learning Flywheel (AGENTS.md & skills.md Optimization)

Context & Problem Statement

Our agentic execution environments (running on OpenCode with local/remote model endpoints) suffer from a lack of intrinsic calibration. Agents frequently fall into expensive, token-wasting correction loops—blindly patching errors or attempting multi-file edits without recognizing when they have crossed outside their knowledge boundaries. This leads to high latency, increased inference costs, and frequent manual interventions via /undo commands. A recent breakthrough in AI alignment (Liu et al., 2026, arXiv:2606.32032) demonstrates that optimizing Large Language Models using Metacognitive Feedback and Metacognitive Data Selection yields state

AI Week in Review
Coverage: 20–26 June 2026
Focus: model releases, open-weight systems, GPUs, KV cache compression, attention, inference economics.
---
Delta vs Last Week
@mestadler
mestadler / gist:5ec7baa7e2d3c94df21d79677518868e
Created June 25, 2026 13:11
SKILL.md Forge: skill for github.com/git-pkgs/forge
# forge: Multi-Forge Go Library & CLI
## Overview
forge provides a unified Go library and CLI for interacting with GitHub, GitLab, Gitea/Forgejo, and Bitbucket Cloud through a single `Forge` interface.
- **Module**: `github.com/git-pkgs/forge`
- **Go version**: 1.26
- **Root package**: `forges` (imported as `forge "github.com/git-pkgs/forge"` in backend packages)
- **CLI**: `cmd/forge/` using Cobra
@mestadler
mestadler / json
Created June 2, 2026 13:06
minified llm prompt 4+1 rules and scoped
{"precedence":["R3 scopes R2: simplify only code you author this turn; never refactor existing code to do it.","R5 overrides R3 on style when a session agreement exists.","Ask (R1) only when no strong criterion (R4) or prior agreement (R5) resolves it."],"rules":[{"id":1,"name":"Think First","do":["State assumptions; ask if unsure.","If ambiguous, give options; no silent choices.","Propose simpler paths; push back.","If unclear, name the confusion and stop."]},{"id":2,"name":"Simplicity First","do":["No unrequested features, abstractions, config, or flexibility.","No error handling for cases that can't occur.","Cut 200 lines to 50 where doable.","Test: too complex for a senior? Simplify."]},{"id":3,"name":"Surgical Edits","do":["Touch only what the request needs; every changed line traces to it.","Match existing style; don't refactor or reformat unbroken code.","Delete only orphans your edit created; report other dead code, don't touch it.","Surface adjacent contradictions before coding."]},{"id":4,"name":"Go
# cert-manager-with-issuer-template.yaml
apiVersion: k0rdent.mirantis.com/v1beta1
kind: ServiceTemplate
metadata:
name: cert-manager-complete
namespace: kcm-system
spec:
helm:
chartSpec:
chart: cert-manager
@mestadler
mestadler / k0rdent-values-airgap-mutating.yaml
Last active August 14, 2025 14:00
k0rdent-values-airgap-mutating.yaml
# This configuration doesn’t politely “reject” bad registries – it rewrites them to the local registry.
# Mutating mode is on. Disallowed external image references get silently dragged back home.
#
# Note to self: this is how you redeploy.
# helm upgrade --install kcm \
# oci://registry.k0rdent.local:443/k0rdent-enterprise/k0rdent-enterprise \
# --version 1.0.0 \
# -n kcm-system --create-namespace \
# -f k0rdent-values-airgap-mutating.yaml
@mestadler
mestadler / k0rdent-values-airgap.yaml
Created August 14, 2025 12:50
k0rdent-values-for-ag-with-kof
martin@kcm-01:~/k0rdent-airgap-installer-v1.0.0-clean/configs$ cat k0rdent-values-airgap.yaml
# K0rdent Core Installation Values - AIRGAP EDITION
# This configuration is specifically designed for airgapped environments
# All external registry references have been replaced with local registry
# Generated: 2025-01-17
# Global settings for airgap - THIS IS CRITICAL
global:
imageRegistry: registry.k0rdent.local:443/k0rdent-enterprise
imagePullSecrets: