Skip to content

Instantly share code, notes, and snippets.

@helgoboss
helgoboss / realearn-novation-sl-mk3.lua
Last active June 6, 2023 10:00
ReaLearn Lua MIDI script templates for programming the Novation SL MkIII via InControl API
-- ReaLearn Lua MIDI script template for programming the screens and LEDs of the Novation SL MkIII keyboard via InControl API
--
-- The section "Function" contains reusable helper functions for creating MIDI messages that change something on the
-- screen. The section "Code" makes use of the helper functions, so this is the section that you probably want to
-- adjust to your needs.
--
-- Hardware setup: Put the SL MkIII into InControl mode by pressing the corresponding button on the keyboard!
-- ReaLearn setup: Use the MIDI output "SL MkIII InControl" and add a mapping with a Lua "MIDI script" source!
--
-- See https://fael-downloads-prod.focusrite.com/customer/prod/s3fs-public/downloads/SLMkIII_Programmer%27s_Guide.pdf
@helgoboss
helgoboss / backtrace_util.rs
Created June 29, 2020 14:42
Resolve Rust symbols from address-only backtrace
use backtrace::Symbol;
use regex::Regex;
/// A (far from perfect) attempt to resolve symbols for an address-only backtrace (e.g. reported by a user which runs your
/// binary without access to debug info).
///
/// Takes a backtrace produced by backtrace-rs which doesn't contain symbols but addresses in hexadecimal form.
/// Tries to resolve all addresses to symbols and prints the result. This only works if this code runs in exactly the same
/// build like the one which produced the original (symbol-less) backtrace AND the symbols are available.
pub fn resolve_symbols_from_address_only_backtrace(text: &str) -> Result<(), &'static str> {
javaOptions in IntegrationTest ++= Seq("-Xdebug", "-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005")