Skip to content

Instantly share code, notes, and snippets.

View amirilovic's full-sized avatar

Aleksandar Mirilovic amirilovic

  • adidas
  • Nuremberg, Germany
View GitHub Profile
@amirilovic
amirilovic / take-memory-snapshot.ts
Created July 15, 2024 20:46
A script that takes a heap snapshot from a nodejs process in debug mode
const { exec, spawn } = require("child_process");
const fs = require("fs");
const { promisify } = require("util");
import { WebSocket } from "ws";
async function getWebSocketDebuggerUrl() {
const res = await fetch("http://localhost:9229/json");
const data = await res.json();
return data[0].webSocketDebuggerUrl;
}
@amirilovic
amirilovic / agent-costs.md
Last active February 27, 2026 07:16
Agent Costs

📊 Agent Spend Report 2026-02-27

Agent Input Output Cost
dev 146,024 311,896 $27.45
qa 241,673 255,904 $27.23
architect 26,834 62,288 $25.31
po 22,938 88,639 $11.30
TOTAL 437,469 718,727 $91.28