Skip to content

Instantly share code, notes, and snippets.

View BuriedStPatrick's full-sized avatar

Patrick Christensen BuriedStPatrick

View GitHub Profile
@BuriedStPatrick
BuriedStPatrick / MIDI_Clock_Generator.eel
Last active July 16, 2026 10:44
ReaScript: Automate BPM MIDI Clock
desc:MIDI Clock Generator
slider1:120<20,300,1>BPM
@init
ppqn = 24;
phase = 0;
bpm = slider1;
@slider
@BuriedStPatrick
BuriedStPatrick / axe-edit-2-on-archlinux.md
Last active July 3, 2026 02:20
Using Axe-Edit II on Arch Linux

Using Axe-Edit II on Arch Linux

DISCLAIMER: FOR THE AXE FX 2, NOT AXE FX 3

The setup is as follows:

  1. Install Axe-Edit in a WINE prefix.
  2. Install USB firmware that configures the AxeFX II as a FX2-style device instead of a generic audio device.

Install Axe-Edit

@BuriedStPatrick
BuriedStPatrick / azure-sb-with-testcontainers.md
Last active August 26, 2025 20:46
Using Azure ServiceBus emulator with Testcontainers

Seldom will you get worse documentation than trying to use the Azure ServiceBus emulator in a real-world scenario. To spare you the frustrations, here's how I translated their docker-compose.yaml reference implementation to something you can actually use as a test fixture in a .NET project.

1. Set up

First, we need 2 containers, one for MSSQL, one for the ServiceBus emulator. ServiceBus emulator uses MSSQL as a backing storage solution. To make things neater, we'll also follow the example docker-compose.yaml file and add an internal network between the two so they don't need to communicate directly over the host's network.

ServiceBus emulator's official docker-compose.yaml example file uses azure-sqledge, but it makes no sense to use since it is deprecated and is being phased out. The MSSQL server image works just fine.

1a. Build a network

@BuriedStPatrick
BuriedStPatrick / audio-on-arch-linux.md
Last active January 14, 2025 16:40
Audio on Arch Linux

This guide is mostly for my own sanity and help me troubleshoot down-the-line. Feel free to read along, though. Some things may be misconceptions, I'm just trying as best I can.

Introduction

Pre-requisites:

  • This is Arch, btw.
  • SystemD-based system. You wouldn't be reading this if you knew how to run anything else.

The goals for my system:

@BuriedStPatrick
BuriedStPatrick / autoexec.cfg
Created April 26, 2024 16:55
Counter-Strike 2 autoexec
echo "------------------------"
echo "--- Loading autoexec ---"
echo "------------------------"
// -- Viewmodel
viewmodel_offset_x 2
viewmodel_offset_y -2
viewmodel_offset_z -2
viewmodel_fov 68
// cl_bob_lower_amt 30
@BuriedStPatrick
BuriedStPatrick / readme.md
Created February 8, 2024 11:11
Installing .NET & PowerShell properly on Linux by ignoring Microsoft's bad suggestions

Installing .NET & PowerShell properly on Linux by ignoring Microsoft's bad suggestions

Set the following variables:

export DOTNET_ROOT=$HOME/.dotnet
export PATH=$HOME/.dotnet/:$PATH
export PATH=$HOME/.dotnet/tools/:$PATH
@BuriedStPatrick
BuriedStPatrick / readme.md
Created February 7, 2024 13:04
Install Cogin QueueExplorer on Arch Linux

Install Install Cogin QueueExplorer on Arch Linux

The guide on Cogin's website for installing on "Linux" actually means installing on a Debian-based system. This guide Arch-ifies the process. This could be made into an AUR package, but I don't have the knowledge or time to maintain such a package, so here's the (hopefully) not outdated way of installing it.

1. Install the pre-requisite software.

sudo pacman -S wine cabextract
@BuriedStPatrick
BuriedStPatrick / Get-PackageReference.ps1
Last active November 13, 2023 17:18
Manage PackageReferences with PowerShell
# Get all PackageReferences from a project or solution
# Does NOT include transient dependencies
# Example A: Get-PackageReference ./MySolution.sln
# Example B: Get-ChildItem -Recursive *.csproj | Get-PackageReference
function Get-PackageReference {
[CmdletBinding()]
param (
[Parameter(
Mandatory = $true,
ValueFromPipeline = $true,
@BuriedStPatrick
BuriedStPatrick / readme.md
Last active October 21, 2023 17:41
Controlling Philips Hue with DMX via QLC+

Controlling Philips Hue with DMX via QLC+

Should work on Windows, Linux and MacOS. I've only tested Windows so far.

Pre-requisites

  • [NodeJS][1].
  • [Philips Hue Bridge][4].
  • One or more Philips Hue products connected to the Hue Bridge.
  • Your computer should be running on the same network as your Hue devices.
@BuriedStPatrick
BuriedStPatrick / forwarding-cli-commands-to-apx-run.md
Last active March 3, 2023 14:08
Forwarding CLI commands to APX run tools

Forwarding CLI commands to APX run tools

VanillaOS's APX tool is quite neat since you can export desktop-entries with apx export <program>. However, if you like to run CLI tools on your host system without apx enter it's a bit trickier. Here's a little guide on how you can get around this using she-bang scripts.

Steps

  1. Create a folder somewhere in your home-directory structure that you'd like to contain shebang scripts. I'm just going to use ~/scripts as a starting point.

  2. Add the folder to your shell's PATH environment variable: