Skip to content

Instantly share code, notes, and snippets.

This last year has been hell of a journey, I've had 8 days off this year and worked 18 hour stints for most of them, wiggling LLMs into bigger and smaller context windows with an obsessive commitment to finish projects and improve their output and efficiency.
I'm a senior coder with about 15 years in the industry, working on various programming languages as the technology rolled over and ending up on fullstack
MCP tooling is now a little more than a year old, and I was one of the early adopters, after a few in-house tool iterations in January and Febuary which included browser and remote repl tooling, ssh tooling, mcp clients and some other things, I published some no-nonsense tooling that very drastically changed my daily programming life: mcp-repl (now mcp-glootie)
[https://github.com/AnEntrypoint/mcp-glootie](https://github.com/AnEntrypoint/mcp-glootie)
Over the course of the next 6 months a lot of time was poured into benchmarking it (glm claude code, 4 agents with tooling enabled, 4 agents without) a
@lanmower
lanmower / rules
Last active February 23, 2025 17:13
Iterate by fixing underlying problems in the codebase until all tests work.
Implement motion capture using MediaPipe.
Utilize a Web Worker with SharedArrayBuffers for performance.
Focus on:
- Starting the camera
- Running motion capture for a few seconds
- Stopping to check for detected motion
Execute commands in the foreground.
@lanmower
lanmower / gist:77234786dacf18b7021cc85141006d9d
Created January 31, 2025 10:53
Bookmarklet - page to prompt
javascript:(function() { const pageTitle = document.title; const pageContent = document.body.innerText; const prompt = `###%20Title:%20${pageTitle}\n\n###%20Content:\n${pageContent}%60;%20const%20textarea%20=%20document.createElement('textarea');%20textarea.value%20=%20prompt;%20document.body.appendChild(textarea);%20textarea.select();%20let%20successful;%20try%20{%20successful%20=%20document.execCommand('copy');%20}%20catch%20(err)%20{%20console.error('Could%20not%20copy%20text:%20',%20err);%20successful%20=%20false;%20}%20document.body.removeChild(textarea);%20if%20(successful)%20{%20alert('Page%20content%20copied%20as%20LLM-readable%20prompt!');%20}%20else%20{%20alert('Failed%20to%20copy%20the%20content.%20Please%20try%20again.');%20}%20})();
{
"schema": [
{
"mode": "server",
"proto": "udp",
"port": "27005",
"host": "127.0.0.1",
"secret": "123"
},
{
# -*- coding: utf-8 -*-
__all__ = [
"zynthian_ctrldev_akai_apc_key25_mk2",
"zynthian_ctrldev_akai_apc_key25",
"zynthian_ctrldev_akai_midimix",
"zynthian_ctrldev_akai_mpk_mini_mk3",
"zynthian_ctrldev_duopiano",
"zynthian_ctrldev_korg_nanokontrol2",
"zynthian_ctrldev_launchkey_mini_mk3",
"zynthian_ctrldev_launchpad_mini",
#!/usr/bin/python3
# -*- coding: utf-8 -*-
import time
import signal
import jack
from bisect import bisect
from copy import deepcopy
from functools import partial
import multiprocessing as mp
import React, { useRef, useEffect } from 'react'
import { useWorld, useSyncState, randomInt } from 'hyperfy'
export const blenderVec3 = ([x, y, z]) => [x, z, -y]
const headOffset = [
[0,0,0],[0,0,0],[0,0,0]
]
export default function Heads() {
var udp = require('dgram');
const yargs = require('yargs');
const pump = require('pump');
const argv = yargs
.option('mode', {
alias: 'm',
describe: 'client or server'
}).option('host', {
alias: 'h'
}).option('port', {
# INSTALL DOCKER
sudo apt-get update
sudo apt-get install \
ca-certificates \
curl \
gnupg \
lsb-release
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
@lanmower
lanmower / signer
Last active January 14, 2022 13:55
<script src="https://unpkg.com/msgpackr@1.2.5/dist/index.js"></script>
<script src="https://unpkg.com/tweetnacl@1.0.3/nacl.min.js"></script>
<script src="https://bundle.run/buffer@6.0.3"></script>
// SIGNER
window.packr = new msgpackr.Packr({ structuredClone: true });
const C = {
CONTRACT: 'c',
ACTION: 'a',