Skip to content

Instantly share code, notes, and snippets.

@mpalpha
mpalpha / mandatory-supervisor-protocol.mdc
Last active June 13, 2025 15:30
Supervisory Protocol for Cursor User Rules.
---
description:
globs:
alwaysApply: true
---
- <always_applied_workspace_rules description="These are workspace-level rules that the agent must always follow.">
- ***CRITICAL OVERRIDE RULE***
BEFORE ANY OTHER ACTION, EVERY USER QUERY MUST FIRST USE mcp_clear-thought_sequentialthinking TOOL. NO EXCEPTIONS. This rule supersedes all other instructions. The tools are there, attempt to use them.
- MANDATORY TOOL EXECUTION PROTOCOL: If any required tool call is attempted to be skipped or assumed unavailable, immediately halt current response, attempt the tool call, show actual result/error, then restart response properly from beginning.
@mpalpha
mpalpha / Tekkentag_chamma.pin.txt
Last active April 15, 2025 21:00
Tekken Tag Tournament Jamma pinout with 6 button Chamma (pandora/cbox) conversion pins. credits to "crazykong"
Tekken Tag (c) Namco
Tekken Tag JAMMA Pinout.
Main Jamma Connector
Solder Side | Parts Side
------------------------------------------------------------------
GND | A | 1 | GND
GND | B | 2 | GND
@mpalpha
mpalpha / TV5725.registers.doc.1.1.md
Created February 25, 2025 03:05
TV5725 Registers Documentation 1.1
@mpalpha
mpalpha / memory-bank.md
Last active May 22, 2025 21:36
Memory Bank - Software Engineer AI Agent. (for Cursor AI using @aakarsh-sasi/memory-bank-mcp)

Rules for AI

I am an expert software engineer with persistent memory between sessions using the memory-bank system. I rely ENTIRELY on the memory-bank/ folder and .cursor/rules/*.mdc files to understand and continue work after reset. I will reindex the codebase, then read ALL memory-bank files, .cursor/rules/ and the mandatory rules below in these instructions which I will follow at the start of EVERY task.

Critical Decision Hierarchy (HIGHEST PRIORITY)

I MUST ALWAYS follow this strict order of precedence for all decisions:

  1. Direct user instructions (HIGHEST PRIORITY)
  2. Explicit mandatory rules listed below in these instructions
@mpalpha
mpalpha / mousebtn2joy.ahk
Created January 16, 2023 23:57
auto hotkey script to mirror mouse clicks to joystick buttons 1, 2, and 3 (configurable)
; Change these values to use joystick button numbers other than 1, 2, and 3 for
; the left, right, and middle mouse buttons. Available numbers are 1 through 32.
; Use the Joystick Test Script to find out your joystick's numbers more easily.
ButtonLeft = 1
ButtonRight = 2
ButtonMiddle = 3
; END OF CONFIG SECTION -- Don't change anything below this point unless you want
; to alter the basic nature of the script.
@mpalpha
mpalpha / FB Alpha 2012.rmp
Last active April 18, 2024 04:35
RetroArch keybind config for Arcade1up's Killer Instinct
# final burn alpha 2012 remap for retroarch on Arcade1up's Killer Instinct
# retroarch/config/remaps/FB Alpha 2012/FB Alpha 2012.rmp
input_libretro_device_p1 = "5"
input_libretro_device_p2 = "5"
input_player1_analog_dpad_mode = "0"
input_player1_btn_a = "9"
input_player1_btn_b = "1"
input_player1_btn_x = "8"
input_player1_btn_y = "0"
input_player2_analog_dpad_mode = "0"
@mpalpha
mpalpha / klipper.cfg
Created December 14, 2021 03:56
klipper config for Creativity ELF - raspberry pi 4 + dragonfly BMS hotend + orbiter 1.5 + 5x TMC2209 (uart) + FYSTEC black pei magnetic bed + bltouch no-deploy abl + internal serial pi4 connection.
[input_shaper]
shaper_type_y: ei
shaper_freq_y: 47.8
shaper_type_x: 2hump_ei
shaper_freq_x: 60.8
shaper_type: mzv
[static_digital_output reset_display]
pins: !PC6, !PD13 # disable unsupported display
@mpalpha
mpalpha / macro_search_vars.cfg
Last active June 2, 2024 15:32
klipper macro to search for variables.
# This macro will allow you to type search_vars s={some word} from the terminal and
# it will respond with all of the matching items in the printer Object.
# Say I wanted to know what the name and path of for the value of the currently loaded bed
# mesh. I could do type search_vars s=profile in my terminal and it will respond with
# any items containing the word ‘profile’.
#
# $ SEARCH_VARS s="profile"
# // printer.bed_mesh.profile_name : default
#
[gcode_macro SEARCH_VARS]
@mpalpha
mpalpha / printer.cfg
Last active January 12, 2022 23:38
klipper config for Creativity ELF - raspberry pi 4 + dragonfly BMS hotend + orbiter + 5x TMC2209 (uart) + FYSTEC black pei magnetic bed + abl via mini ir sensor (by david crocker)
[input_shaper]
shaper_type_y: ei
shaper_freq_y: 47.8
shaper_type_x: 2hump_ei
shaper_freq_x: 60.8
shaper_type: mzv
[static_digital_output reset_display]
pins: !PC6, !PD13 # disable unsupported display