Skip to content

Instantly share code, notes, and snippets.

@devleaks
devleaks / find_datarefs.py
Created October 25, 2026 11:27
Find X-Plane Datarefs in files, zip files, and folder hierarchies
"""Find datarefs in files",
Finds dataref path (path in general that do NOT start with a /) in text files.
Attempts to strings(1) binary files and search for datarefs in code.
Searches in all files of zip files (in memory decompression file by file).
Output list of datarefs found and stats.
Usage:
@devleaks
devleaks / PI_syncfmsbright.py
Created July 2, 2026 09:36
Synchronize Flight Factor Airbus MCDU brightness
# Python Plugin To Save Toliss Situations on request.
# Enjoy.
#
import traceback
import xp
# ###########################################################
#
RELEASE = "1.0.0"
#
@devleaks
devleaks / Antonyms.md
Created February 21, 2026 08:10 — forked from maxtruxa/Antonyms.md
A list of common terms used in programming and their respective antonyms.

Antonym List

Note: The table headings (positive/negative) are not necessarily meaningful.

Positive Negative
acquire release
add remove (e.g. an item), subtract (arithmetic)
advance retreat
allocate deallocate (correct), free (common)
allow deny
@devleaks
devleaks / STREAMDECK_HID.md
Created May 10, 2025 13:05 — forked from cliffrowley/STREAMDECK_HID.md
Notes on the Stream Deck HID protocol

Stream Deck Protocol

How to interface with a Stream Deck device.

Synopsis

The device uses the HID protocol to communicate with its software.

Configuration

@devleaks
devleaks / generator.py
Last active November 10, 2024 17:32
LST File Generator from X-Plane Scenery Files
import os
import argparse
from datetime import datetime
from math import sin, cos, sqrt, atan2, radians
import xml.etree.ElementTree as ET
NAME = "LST File Python Generator"
VERSION = "1.0.2"
# CHANGELOG
#
@devleaks
devleaks / nginx.conf
Created August 10, 2024 08:34
nginx config to allow access to X-Plane REST/Websocket API on your entire LAN
worker_processes 1;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
@devleaks
devleaks / PI_save_toliss.py
Last active March 11, 2025 17:06
X-Plane Toliss Airbus - Additional command to save situation in time-stamped files
# Python Plugin To Save Toliss Situations on request.
# Enjoy.
#
import os
import glob
import time
from datetime import datetime
import xp
@devleaks
devleaks / toliss_a321_linter.py
Created June 21, 2024 12:47
X-Plane Toliss Airbus livery name linter
# Toliss A321 livery linter
#
# Attempts to check livery folders for inconsistencies.
#
# Inconsistencies are:
#
# - discrepenscies between livery "strings" and livery configuration files (tlscfg.txt)
# - invalid values for livery elements
# - missing texture files in front of their requested variant (ex.: engine_type=LEA requires a LEAP1A.png texture file, etc.)
#