Skip to content

Instantly share code, notes, and snippets.

@manics
manics / README.md
Last active May 20, 2026 09:36
README.md

Can an LLM control an application running in a VDI?

Run a Linux desktop VDI that can be accessed through a browser. For example

docker run -it --rm -p127.0.0.1:8888:8888 ghcr.io/manics/jupyter-desktop-mate jupyter-lab --IdentityProvider.token=""

This will run a pre-built image from https://github.com/manics/jupyter-desktop-mate/ that provides a noVNC web interface to a Ubuntu MATE Desktop. Jupyter's token authentication is disabled for convenience but could be easily enabled.

Launch an AI tool that includes a browser integration, for instance Google Antigravity.

#!/srv/conda/envs/notebook/bin/python
import os
import sys
try:
import jupyterlab
import jupyterlab.labapp
major = int(jupyterlab.__version__.split(".", 1)[0])
except Exception as e:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Minimalist Speedometer</title>
<style>
body { font-family: sans-serif; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100vh; background: #121212; color: white; }
#speed { font-size: 5rem; font-weight: bold; color: #00ff88; }
.unit { font-size: 1.5rem; color: #888; }
@manics
manics / Dockerfile
Last active March 2, 2026 21:19
BinderHub test gist for investigating how PIDs appear with docker buildx
FROM docker.io/library/buildpack-deps:24.04
RUN A=`openssl rand -hex 15`; \
echo $A; \
for n in `seq 60`; do \
date; \
sh -c "sleep 60; echo $A"; \
done; \
exit 1
@manics
manics / README.md
Last active January 26, 2026 13:18

Example of Kube Resource Orchestrator on AWS

An example of using Kube Resource Orchestrator (kro) to orchestrate AWS Controllers for Kubernetes (ACK).

ACK providers CRDs to manage individual AWS resources. kro enables orchestration of multiple AWS resource CRDs, including parameterisation.

  1. Create a ResourceGraphDefinition. This defines a new CRD ApplicationFoo:
kubectl apply -f kro-aws-application-rgd.yaml
# https://github.com/GalleyBytes/terraform-operator-tasks/
# TODO: Rebuild image from source and upgrade Terraform
FROM ghcr.io/galleybytes/terraform-operator-tftaskv1.1.1:1.4.6
# https://blog.nashtechglobal.com/using-terraform-without-internet/
# Cache directory needs to be writeable by the user
COPY --chown=2000:0 providers.tf terraform.rc /terraform/
RUN cd /terraform && \
@manics
manics / requirements.txt
Created November 10, 2025 10:56
pip-tools
pip-tools
name: example-environment
channels:
- conda-forge
dependencies:
- python=3.14
- numpy
- pandas
- matplotlib
- pip
- pip:
pypi-timemachine
requests
@manics
manics / README.md
Created August 13, 2025 14:15
Hugo example