Skip to content

Instantly share code, notes, and snippets.

View juliusmarminge's full-sized avatar

Julius Marminge juliusmarminge

View GitHub Profile
@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

Poimandres Warp Theme

Made a Warp theme based on the Poimandres VSCode Theme.

Install

  1. Copy the base16_pmndrs.yaml file into ~/.warp/themes
wget https://gist.githubusercontent.com/juliusmarminge/ea45f0f2c627ee8d1778404f4642986d/raw/5ea3cd5bf7f18c6a3f08a29edabfca5b59bc2778/base16_pmndrs.yaml -o ~/.warp/themes