Skip to content

Instantly share code, notes, and snippets.

View coldnebo's full-sized avatar

Larry Kyrala coldnebo

View GitHub Profile
@coldnebo
coldnebo / camera_controller.md
Last active May 25, 2026 23:59
XP12 XBox Controller Camera Setup

I wanted this to be a freecam setup similar to my MSFS 2024, Shift-X.

This seems to work:

Xbox Controller Binding

  1. In the XP12 settings, start with the XBox Controller:
image
  1. Set Left Stick to the following:
@coldnebo
coldnebo / performance_guide.md
Created May 23, 2026 14:44
MSFS 2024 — CTD, Stutter & Performance Troubleshooting Guide

MSFS 2024 — CTD, Stutter & Performance Troubleshooting Guide

A practical guide to diagnosing and fixing crashes to desktop, stutters, and general performance problems in Microsoft Flight Simulator 2024. The techniques below are ordered from least to most disruptive.


Understanding the Problem: WASM and the Cache

Many third-party aircraft and systems in MSFS use WebAssembly (WASM) modules — compiled code that the sim runs for avionics, autopilots, and other logic. The sim caches the compiled output of these modules to speed up loading. When a sim update ships, that cached data can become stale or corrupted, causing stutters, display errors, WASM crashes (the "orange screen of death"), or CTDs — even with add-ons that were perfectly stable before the update.

@coldnebo
coldnebo / negativefuel.md
Last active October 15, 2025 20:45
description of FSE negative fuel situation and steps to fix in MSFS 2024 for the Flysimware LearJet 35A

We start out our MSFS 2024 flight in the LearJet 35a going from KFNT to KAMN. Since it's a short flight (47 nm) we'll cruise at 8000, averaging 200-250 knots.

View the spreadsheet calculations for this analysis.

First Leg KFNT -> KAMN

First, we load the jet in FSE, 50% fuel, 467 gal.

fse-lear-release-fuel
@coldnebo
coldnebo / subl.sh
Last active August 3, 2020 14:05
modification of Sublime Text 3 /usr/bin/subl script to auto-open implict project directories
#!/bin/sh
have_project=false
implicit_project_file=false
for arg in $@; do
if [ $arg = "--project" ]; then
have_project=true
break
fi
done
@coldnebo
coldnebo / lkdebug.rb
Created December 20, 2018 19:01
rails debug helper for tracking mutating state across contexts
# debugging helper for tracing variable changes across contexts in legacy code. The context information such as file, line,
# class and method are automatically logged for you so you can focus on tracing the state mutations through various contexts
# with ease.
# @note this top-level method may be placed in config/initializers/lkdebug.rb and used anywhere
# @note this method does nothing outside of Rails.env.development
# @note legacy examples are intentionally bad code!! You should not write code like this, but if you have to debug code like this
# you may want to dump state from various contexts within the program to understand what is going on.
#
# @param annotation [String] text comment providing context for the log.
@coldnebo
coldnebo / boolean_function.rb
Created October 12, 2018 22:02
playing around with recomposing predicates.
require 'csv'
class BooleanFunction
attr_reader :inputs, :input_values, :output, :output_values
BOOLEAN_SET = [true, false]
def initialize( inputs:, output: nil )
raise ArgumentError, "inputs must be an Enumerable of symbols" if (!inputs.kind_of?(Enumerable) || !inputs.map{|e| e.is_a?(Symbol) }.reduce(:&))
@output = output
@coldnebo
coldnebo / database.yml
Created October 11, 2018 16:05
description of our Rails multi-database configuration for @eileencodes
---
# defaults for all envs (local/deployed), (nonprod/prod)
defaults: &defaults
encoding: utf8
adapter: mysql2
read_timeout: 10
write_timeout: 10
connect_timeout: 10
reconnect: true
@coldnebo
coldnebo / im_manip_scripts.sh
Last active May 20, 2018 20:26
ruby orchestra preprint utils
declare -a arr=("violin1" "violin2" "viola" "cello" "bass")
for inst in "${arr[@]}"
do
#inst="violin2"
title="Souza - The Stars and Stripes Forever"
# create a blank letter page for titles
diff --git a/random.c b/random.c
index e669e98..9334921 100644
--- a/random.c
+++ b/random.c
@@ -521,7 +521,7 @@ fill_random_bytes_syscall(void *seed, size_t size, int unused)
CryptGenRandom(prov, size, seed);
return 0;
}
-#elif defined __linux__ && defined SYS_getrandom
+#elif defined __linux__ && defined __NR_getrandom
{
"color_scheme": "Packages/Color Scheme - Default/Twilight.tmTheme",
"font_size": 11,
"ignored_packages":
[
"Vintage"
],
"tab_size": 2,
"translate_tabs_to_spaces": true,
"hot_exit": false,