Skip to content

Instantly share code, notes, and snippets.

View XertroV's full-sized avatar

Max Kaye XertroV

View GitHub Profile
@XertroV
XertroV / igc-skill.md
Last active May 28, 2026 10:37
A Skill md for IGC matrices (Critical Fallibilism)
name igc
description Idea-Goal-Context (IGC) triples and IGC matrixes

IGC = idea-goal-context triple. An IGC matrix has goals along the top and ideas down the left. Each cell is a ✔/✘/? depending on whether the idea satisfies the goal.

We can also have an All column as leftmost (but right of ideas) which shows:

  • a ✘ if the row contains any ✘s, otherwise
@XertroV
XertroV / portpid
Created April 15, 2026 20:48
portpid — fast port-to-PID lookup by process name. Released under CC0 / Unlicense.
#!/usr/bin/env python3
import glob
import os
import sys
def hex_port(port: int) -> str:
return f"{port:04X}"
@XertroV
XertroV / NameFromStartProfileCall.py
Last active April 28, 2025 13:55
Trackmania2020 + Ghidra: Auto-name functions script
# -*- coding: utf-8 -*-
#Find instances of calls to ProfileStart(ctx, name) and get the name.
#@author xert
#@category tm2020
#@keybinding
#@menupath
#@toolbar
#@runtime Jython
<?xml version='1.0' encoding='utf-8' ?>
<maniacode>
<play_map><name>Turbo Sprint on Wood</name><url>https://trackmania.exchange/mapgbx/144053</url></play_map>
<show_message><message>Your message</message></show_message>
</maniacode>
@XertroV
XertroV / DragBlocks.Script.txt
Last active September 30, 2023 22:04 — forked from davidbmaier/DragBlocks.Script.txt
Drag blocks - TM2020 editor plugin by Nerpson
/**
* @author Nicolas 'Nerpson' Jullien
* @maintainer (this version) XertroV
*
* License: Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0)
* You are free to:
*
* Share — copy and redistribute the material in any medium or format
* Adapt — remix, transform, and build upon the material
*
@XertroV
XertroV / gist:dfdfa262ec545ace989ccca2699cc5c4
Created July 3, 2021 05:21
netplan bridge with vlan config
# /etc/netplan/01-asdf.yaml
# after populating, run: sudo netplan try
network:
version: 2
renderer: networkd
ethernets:
enp5s0:
dhcp4: true
enp9s0:
dhcp4: true
@XertroV
XertroV / 20210115020047_create_init.rb
Created January 15, 2021 09:57
first draft of migraitons file for cf forum schema
class CreateInit < ActiveRecord::Migration[6.1]
def change
# stand-in; replace later or alter as needed
create_table :users do |t|
t.text :username, limit: 63, null: false
t.text :hex_pw_hash, null: false, limit: 63
t.text :email, unique: true, index: true
t.timestamps
end
@XertroV
XertroV / env-wsl-v2-x11-server.sh
Created November 2, 2020 20:44
commands to export DISPLAY on WSL v2 so that X11 applications work. (an option like 'allow public access' is usually required in the x-server settings; use windows firewall to block network traffic)
export WSL_HOST_IP="$(cat /etc/resolv.conf | grep -E '[0-9]{1,3}\.' | cut -d ' ' -f 2)"
export DISPLAY=$WSL_HOST_IP:0
@XertroV
XertroV / gist:be017a7500345f3a5c5e42c797036531
Created July 11, 2020 23:06
structure of voting-alpha
~/tmp/voting-alpha master ────────────────  3.7.5/envs/sv-alpha-3.7.5 3.7.5  10.21.0 xertrov@vm-dev-177 08:49:58
❯ cloc .
121 text files.
112 unique files.
47 files ignored.
github.com/AlDanial/cloc v 1.85 T=0.08 s (1031.7 files/s, 186863.0 lines/s)
-------------------------------------------------------------------------------
Language files blank comment code
-------------------------------------------------------------------------------
server:
num-threads: 4
#Enable logs
verbosity: 1
#list of Root DNS Server
root-hints: "/var/lib/unbound/root.hints"