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
@kiranwayne
kiranwayne / grok_enhanced.js
Last active October 14, 2025 23:29
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 October 25, 2025 15:46
AI_RULES.txt
use opportunistic and optimistic programming patterns, blending elegance and comprehensiveness
don't add tests for data that will not be changed
always verify current code state before claiming what's missing
don't delete my todo lists, though you can update them
don't delete my comments without leaving something imparting the same info
when making larger changes, make a commented out copy of the old code above the newer code/space
make comments lowercase apart from capitalised nouns, and geneally laconic but well descriptive
if duplicate code is fould, say if itis identical code or not, and povide clickable line number(s) for each
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 December 21, 2023 13:35
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
@joeyv120
joeyv120 / qmk_c_json.txt
Created November 30, 2021 20:14
QMK commands for converting between json and c keymap files
qmk json2c2 C:/Users/[USERSAME]/qmk_firmware/keyboards/JNAO/keymaps/JoeNAO/keymap.json
qmk c2json -km joeyv120 -kb keebio/iris/rev4 C:/Users/[USERSAME]/qmk_firmware/keyboards/keebio/iris/keymaps/joeyv120/keymap.c
qmk c2json -km JoeNAO -kb jnao C:/Users/[USERSAME]/qmk_firmware/keyboards/JNAO/keymaps/JoeNAO/keymap.c --no-cpp
@aaronmdjones
aaronmdjones / freenode-resign-letter.txt
Created May 19, 2021 10:20
My resignation from freenode
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
My resignation from freenode staff
==================================
I joined the freenode staff in March 2019 [1].
Before I joined the staff, Freenode Ltd was sold [2] to a person named
Andrew Lee as part of a sponsorship deal. The informal terms of that

It appears that rasengan (Andrew Lee) of Private Internet Access believes that ownership of the company Freenode Ltd. gives him the right to unilaterally replace the current staff team.

We may have had our disagreements with staff, but freenode being run by a volunteer team, using servers provided by sponsors, is a key reason that we appreciate freenode.

As such, we do not believe that such a unilateral replacement by a corporate interest is appropriate.

If this attemped takeover by Andrew Lee continues, we will be advocating to move our communities elsewhere.

Context: Fuchs' leaked (not by him) draft resignation letter that caused Andrew Lee to come onto #freenode: https://fuchsnet.ch/privat/fn-resign-letter.txt

@loveemu
loveemu / xm-form-ja.md
Last active July 8, 2025 13:36
The "Complete" XM module format specification v0.81