Skip to content

Instantly share code, notes, and snippets.

View juliusmarminge's full-sized avatar

Julius Marminge juliusmarminge

View GitHub Profile
@juliusmarminge
juliusmarminge / README.md
Created November 10, 2026 07:28
t3code #33687 evidence: synthetic fixture seeds and capture drivers (worktree submodule setup stage)

These scripts create only synthetic repositories and use an explicitly isolated server home. No source changes, forge mutations or uploads are performed.

For a fresh static reproduction:

  1. Check out the requested SHA (6c9adfb2739205244b84e607736f6fd8b4611e69 before or e2914e058b0fa6fd69b55ad8b7beaad7083f8ea9 after), install with vp install, and start that checkout with T3CODE_DEV_SEED=0 vp run dev --home-dir <scratch>/fresh-home --host 0.0.0.0. Save its spawn PID/session and output beneath the same scratch directory. Read the actual web port and environment ID from the startup output. Never set VITE_HTTP_URL or VITE_WS_URL.
  2. Run python3 reproduce-still.py --checkout --sha --home /fresh-home --web-port --environment-id --output --row S0. Substitute S1, S2, W or D0. Each invocation creates a timestamped fixture and output directory. It requires Python 3, Git, Node, npm, ImageMagick and /usr/bin/google-chrome. The npm agent-b
@juliusmarminge
juliusmarminge / ARTIFACTS.md
Last active November 1, 2026 05:55
Proof audit pass 2: t3code PR 28527 at 676ecd159a; report, inspection manifest, reproduction archives

These are public proof-audit artifacts for PR28527. Repository/PR state was read only through GitCafe. Four preview PNGs are uploaded separately. Archive contents include synthetic captures, driver scripts, environment metadata, exact opened-manifest, raw timing runs, and redacted server log; no browser auth or tokens.

Download all parts, concatenate each archive's numbered .b64 parts in order, base64-decode, then extract the .tar.gz. Each part is continuous base64 text.

@juliusmarminge
juliusmarminge / cursor-acp-model-switch-repro.mjs
Created June 4, 2026 18:07
Cursor ACP In-session model switching reproduction
import { spawn } from "node:child_process";
import readline from "node:readline";
const bin = process.env.CURSOR_AGENT_BIN ?? "cursor-agent";
const cwd = process.argv[2] ?? process.cwd();
const targetModel = process.argv[3] ?? "gpt-5.5";
const timeoutMs = Number(process.env.CURSOR_ACP_TIMEOUT_MS ?? "20000");
function sleep(ms) {
return new Promise((resolve) => setTimeout(resolve, ms));
@juliusmarminge
juliusmarminge / observability.ts
Last active March 19, 2025 14:34
Ingest logs from Cloudflare Workers to Axiom
import { randomBytes } from "node:crypto";
import { Array, Cause, HashMap, Inspectable, List, Logger } from "effect";
import type { Env } from "./types";
import { type EffectWorkerRuntime, makeEffectWorkerRuntime } from "./runtime";
let workerId = "";
let workerStartTime = "";
let batch: Array<Record<string, unknown>> = [];
/**
@juliusmarminge
juliusmarminge / edgedb-adapter.ts
Created May 5, 2024 12:12
An Auth.js EdgeDB Adapter with support for webauthn
import type { Adapter, AdapterAccount } from "next-auth/adapters";
import { edgedb } from "~/db/client";
import e from "@edgedb";
export const edgedbAdapter = {
createUser: async ({ id, ...data }) => {
const user = await e
.select(e.insert(e.User, { ...data }), (user) => user["*"])
.run(edgedb);
@juliusmarminge
juliusmarminge / README.md
Last active September 21, 2023 09:51
next cpu prof
/* eslint-disable @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument */
import chalk from 'chalk'
interface Logger {
debug(message: string, ...optionalParameters: any[]): void
info(message: string, ...optionalParameters: any[]): void
warn(message: string, ...optionalParameters: any[]): void
error(message: string, ...optionalParameters: any[]): void
[x: string]: any
}
@juliusmarminge
juliusmarminge / enum-generator.ts
Last active September 17, 2025 16:37
prisma enum generator
import { generatorHandler } from "@prisma/generator-helper";
import fs from "node:fs/promises";
import path from "node:path";
const header = `// This file was generated by a custom prisma generator, do not edit manually.\n`;
generatorHandler({
onManifest() {
return {
defaultOutput: "./enums/index.ts",
int main() {
return 0;
}
import enum
import math
import random as r
# Maze props
HEIGHT = 20
WIDTH = 33
OBSTACLE = 1000
FLOOR = 1