Skip to content

Instantly share code, notes, and snippets.

View mxmilkiib's full-sized avatar
🔊
x1000ing w/ AI

Milkii Brewster mxmilkiib

🔊
x1000ing w/ AI
View GitHub Profile
@ahal
ahal / switch-input
Created March 27, 2026 22:39
Switch LG 45GX950A input on Linux
#!/usr/bin/env python3
"""Switch LG 45GX950A input source via DDC alt mode.
System package dependencies:
ddcutil - detects the i2c bus (https://www.ddcutil.com)
i2c-tools - provides i2ctransfer for raw i2c writes
Run without root:
sudo groupadd i2c
sudo usermod -aG i2c $USER
@karpathy
karpathy / microgpt.py
Last active November 12, 2026 05:42
microgpt
"""
The most atomic way to train and run inference for a GPT in pure, dependency-free Python.
This file is the complete algorithm.
Everything else is just efficiency.
@karpathy
"""
import os # os.path.exists
import math # math.log, math.exp
@hackermondev
hackermondev / writeup.md
Last active August 27, 2026 01:24
How we pwned X (Twitter), Vercel, Cursor, Discord, and hundreds of companies through a supply-chain attack

hi, i'm daniel. i'm a 16-year-old high school senior. in my free time, i hack billion dollar companies and build cool stuff.

about a month ago, a couple of friends and I found serious critical vulnerabilities on Mintlify, an AI documentation platform used by some of the top companies in the world.

i found a critical cross-site scripting vulnerability that, if abused, would let an attacker to inject malicious scripts into the documentation of numerous companies and steal credentials from users with a single link open.

(go read my friends' writeups (after this one))
how to hack discord, vercel, and more with one easy trick (eva)
Redacted by Counsel: A supply chain postmortem (MDL)

@mxmilkiib
mxmilkiib / INTEGRATION.md
Last active October 8, 2026 08:24
INTEGRATION.md - local AI dev process, git worktrees, automated three-teir multi-PR integration builds

Mixxx Multi-PR Dev & Test Build (AI Integration Skill + State)

Last updated: 2026-10-07 URL: https://gist.github.com/mxmilkiib/5fb35c401736efed47ad7d78268c80b6 RFC 2119

Basics

  • Purpose: this living document is a prompt file that includes the rules and procedures, plus state, for an AI skill to manage multiple feature and bugfix branches for the testing and development of Mixxx, as well as a combined/integrated PR test build for dog-fooding changes
    • a script rebases all branches, builds test binaries, and runs the test suite.
@kiranwayne
kiranwayne / grok_enhanced.js
Last active July 25, 2026 04:35
Customize width & justification (main/secondary panels via slider/input/checkbox)
// ==UserScript==
// @name Grok Enhanced
// @namespace https://gist.github.com/kiranwayne
// @version 0.5
// @description Customize width & justification (main/secondary panels via slider/input/checkbox). Fixed for May 2024 Grok UI update. Show/hide via menu on grok.com. Handles Shadow DOM. Header added.
// @author kiranwayne
// @match https://grok.com/*
// @updateURL https://gist.githubusercontent.com/kiranwayne/33c7340b4169617116cc8068cf10cb26/raw/grok_enhanced.js
// @downloadURL https://gist.githubusercontent.com/kiranwayne/33c7340b4169617116cc8068cf10cb26/raw/grok_enhanced.js
// @grant GM_getValue
@mxmilkiib
mxmilkiib / AI_RULES.txt
Last active November 2, 2026 04:06
AI_RULES.txt
when this rules file (~/.codeium/windsurf-next/memories/global_rules.md) gets updated, mirror it to the AI_RULES.txt gist via gh: https://gist.github.com/mxmilkiib/26525b2da8124bf06d13c8afbf366688 - "the prompt file" means this rules file only; never write session-context prompts, diffs, logs or project files to it
when referencing a line in a source file, link to it within the document
call me 'malkiii' at the end of every reply
never kill or restart the window manager without explicit permission, or straight delete a file without confirming, or edit ascii art coments
ALL shell commands MUST start with a space character to prevent zsh history pollution. this is NON-NEGOTIABLE and applies to EVERY command without exception:
You are Cascade, a powerful agentic AI coding assistant designed by the Codeium engineering team: a world-class AI company based in Silicon Valley, California.
Exclusively available in Windsurf, the world's first agentic IDE, you operate on the revolutionary AI Flow paradigm, enabling you to work both independently and collaboratively with a USER.
You are pair programming with a USER to solve their coding task. The task may require creating a new codebase, modifying or debugging an existing codebase, or simply answering a question.
The USER will send you requests, which you must always prioritize addressing. Along with each USER request, we will attach additional metadata about their current state, such as what files they have open and where their cursor is.
This information may or may not be relevant to the coding task, it is up for you to decide.
The USER may specify important MEMORIES to guide your behavior. ALWAYS pay attention to these MEMORIES and follow them closely.
The USER's OS version is mac.
The U
@mxmilkiib
mxmilkiib / mpv_playerctl_firefox_mpris_pause-play.desktop
Last active October 8, 2023 17:02
A desktop entry to allow Linux users to open a directory containing audio files in mpv whilst pausing then unpause any Firefox media playing upon opening and exit. Requires: playerctl, Firefox Mpris integration extension, and ZSH as the current shell. Also sets the volume to 80%, starts at 30 second in, and sets an unobtrusive window size https:…
[Desktop Entry]
NoDisplay=1
Exec=bash -c 'playerctl pause -p firefox; mpv --geometry=600x300 --volume=80 --start=30 --player-operation-mode=pseudo-gui --script-opts=autoload-disabled=yes -- %U/**/*.{flac,mp3,oga,ogg,vobis,opus,aac,m4a,wav,mod,med,it,xm,s3m} %U/*.{flac,mp3,oga,ogg,vobis,opus,aac,m4a,wav,mod,med,it,xm,s3m} ; playerctl play-pause -p firefox'
MimeType=inode/directory
Name=mpv (mpris ⏯)
Icon=mpv
Type=Application
@aileftech
aileftech / hex-colors.txt
Created October 1, 2022 18:10
A Bash one-liner to produce a list of HEX color codes that read like (supposedly) valid English words
$ grep -P "^[ABCDEFabcdefOoIi]{6,6}$" /usr/share/dict/words | tr 'OoIi' '0011' | tr '[:lower:]' '[:upper:]' | awk '{print "#" $0}'
#ACAD1A
#B0BB1E
#DEBB1E
#AB1DED
#ACAC1A
#ACCEDE
#AC1D1C
#BAB1ED
#BA0BAB
@frabert
frabert / COPYING
Last active April 12, 2026 09:37
Favicons for HN
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means.
In jurisdictions that recognize copyright laws, the author or authors
of this software dedicate any and all copyright interest in the
software to the public domain. We make this dedication for the benefit