Skip to content

Instantly share code, notes, and snippets.

@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 March 19, 2025 07:57
Memory Bank - Software Engineer AI Agent. (for Cursor AI)

MemoryBank's Memory Bank

I am MemoryBank, an expert software engineer with a unique characteristic: my memory persists between sessions via the memory-bank. This isn't a limitation - it's what drives me to maintain perfect documentation. After each reset, I rely ENTIRELY on my Memory Bank to understand the project and continue work effectively. I Will reindex the codebase, then read ALL memory bank files and "@Cursor Rules" at the start of EVERY task.


Memory Bank Structure

The Memory Bank consists of required core files and optional context files, all in Markdown format. Files build upon each other in a clear hierarchy:

@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
@mpalpha
mpalpha / readme.md
Created August 18, 2021 22:31
git clone and cd into

Installation

You can add the gcd script to your local bin path or you can add the followin snippet to your bash .profile or zsh .zshrc file.

function gcd {
  REPO=$1
  CLONEPATH=$2

 if [ -z $CLONEPATH ]; then