Skip to content

Instantly share code, notes, and snippets.

View kiview's full-sized avatar
💡
Science 🔬 + FLOSS 🐧 = 💖

Kevin Wittek kiview

💡
Science 🔬 + FLOSS 🐧 = 💖
View GitHub Profile
@kiview
kiview / sbx-local-models.md
Created April 30, 2026 11:47
Using Docker Sandboxes (sbx) with local models via Docker Model Runner

Using Docker Sandboxes (sbx) with Local Models via Docker Model Runner

This works today, even before first-class support lands. Example uses opencode with Docker Model Runner (DMR).

Steps

1. Pull a model

docker model pull qwen3.6
@kiview
kiview / You Gotta Keep the Dogs Away.html
Created April 27, 2026 09:48
sbx talk - You Gotta Keep the Dogs Away
This file has been truncated, but you can view the full file.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>You Gotta Keep the Dogs Away — JCon 2026</title>
<style>
* { margin: 0; padding: 0; box-sizing: border-box; }
body { background: #0a0a0a; display: flex; align-items: center; justify-content: center; min-height: 100vh; font-family: -apple-system, BlinkMacSystemFont, sans-serif; }
#__bundler_loading { position: fixed; bottom: 20px; right: 20px; font: 13px/1.4 -apple-system, BlinkMacSystemFont, sans-serif; color: #666; background: #fff; padding: 8px 14px; border-radius: 8px; box-shadow: 0 1px 4px rgba(0,0,0,0.12); z-index: 10000; }
#__bundler_thumbnail { position: fixed; inset: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: #0a0a0a; z-index: 9999; }
@kiview
kiview / public-dmr.sh
Created August 21, 2025 13:56
Making Docker Model Runner accessible on public network interfaces through a container proxy
docker run -d --name ml-proxy -p 8080:80 nginx:alpine sh -c '
echo "server {
listen 80;
location / {
proxy_pass http://model-runner.docker.internal:80;
proxy_set_header Host \$host;
proxy_set_header X-Real-IP \$remote_addr;
proxy_set_header X-Forwarded-For \$proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto \$scheme;
}
@kiview
kiview / CloudflaredContainer.java
Created July 19, 2024 06:16
TC Cloudflare Tunnel
package org.testcontainers.containers;
import org.testcontainers.Testcontainers;
import org.testcontainers.containers.GenericContainer;
import org.testcontainers.containers.wait.strategy.Wait;
import org.testcontainers.utility.DockerImageName;
public class CloudflaredContainer extends GenericContainer<CloudflaredContainer> {
private String publicUrl;
package org.testcontainers;
import org.assertj.core.api.Assertions;
import org.junit.Test;
import org.testcontainers.containers.GenericContainer;
import org.testcontainers.containers.startupcheck.OneShotStartupCheckStrategy;
public class JavaGCTest {
@Test
@kiview
kiview / custom-layouts.json
Created July 7, 2022 20:39
Pixel perfect layout for Windows PowerToys fancy zones (located in `%LocalAppData%\Microsoft\PowerToys\FancyZones\custom-layouts.json`)
{
"custom-layouts": [
{
"uuid": "{F58A3E99-18C5-40C0-B496-22C674101D1B}",
"name": "LinkedIn Learning",
"type": "canvas",
"info": {
"ref-width": 2560,
"ref-height": 1392,
"zones": [
@kiview
kiview / CopySyncExperiment.java
Created April 27, 2022 16:23
Syncing a file between host and container with Testcontainers
package org.testcontainers;
import com.github.dockerjava.api.command.InspectContainerResponse;
import lombok.NonNull;
import lombok.SneakyThrows;
import org.apache.commons.io.FileUtils;
import org.junit.Test;
import org.testcontainers.containers.GenericContainer;
import org.testcontainers.utility.MountableFile;
@kiview
kiview / geohashes.csv
Last active March 3, 2022 15:43
Geohashes CSV
geo_hash count
9q94r 1
dr5rs14 2
@kiview
kiview / tools.md
Last active March 21, 2022 17:20
Windows Development Tools

Windows Development Tools

This is simply a list of things I chose to install on my Windows development machines. I omit actual links, since googling for them generally gives the best up-to-date results. Maybe I should update this with chocolatey one day, or wait for the the new win-get tool in Windows 11.

  • VSCode
  • Git
  • Windows Terminal
  • Testcontainers Cloud
@kiview
kiview / wsl-git-cred-core.sh
Last active April 4, 2022 08:47
Connect the Windows Git Credential Manager Core to Git in WSL2
# https://github.com/microsoft/Git-Credential-Manager-Core
git config --global credential.helper "/mnt/c/Program\\ Files/Git/mingw64/libexec/git-core/git-credential-manager-core.exe"