Skip to content

Instantly share code, notes, and snippets.

@manics
manics / envsubst.bash
Created October 19, 2026 11:13
A limited version of envsubst in bash
#!/usr/bin/env bash
# A limited version of envsubst in bash
set -euo pipefail
for file in "$@"; do
input=$(<"$file")
# Collect variable names from the original input.
vars=()
@manics
manics / Dockerfile
Last active September 28, 2026 21:18
jupyter-server selkies
FROM ghcr.io/manics/jupyter-desktop-mate:latest
RUN /opt/conda/bin/pip install selkies
@manics
manics / redis.ipynb
Last active September 16, 2026 19:32
Testing fakeredis
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@manics
manics / README.md
Last active August 6, 2026 16:05
develop RO-Crate-Validation-Service in mybinder
@manics
manics / insecure_param_setenv_ext.json
Last active June 29, 2026 13:18
repo2docker start env
{
"ServerApp": {
"jpserver_extensions": {
"insecure_param_setenv_ext": true
}
}
}
@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.

<!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 && \