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 / 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": [
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 / 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;
@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 / gemma-license.md
Created September 5, 2025 10:15
Gemma Terms of Use - License extracted from ai/gemma3:270M-F16 Docker image

Gemma Terms of Use

Last modified: March 24, 2025

By using, reproducing, modifying, distributing, performing or displaying any portion or element of Gemma, Model Derivatives including via any Hosted Service, (each as defined below) (collectively, the "Gemma Services") or otherwise accepting the terms of this Agreement, you agree to be bound by this Agreement.

Section 1: DEFINITIONS 1.1 Definitions (a) "Agreement" or "Gemma Terms of Use" means these terms and conditions that govern the use, reproduction, Distribution or modification of the Gemma Services and any terms and conditions incorporated by reference.