Skip to content

Instantly share code, notes, and snippets.

View arusahni's full-sized avatar

Aru Sahni arusahni

View GitHub Profile
@fsimonis
fsimonis / focusrite.conf
Last active July 15, 2025 01:58
Pipewire remapping of Focusrite Scarlett 2i4 to mono input and stereo output
# This is a remapping of the Focusrite Scarlett 2i4 to Mono input and Stereo output
# Place this file in ~/.config/pipewire/pipewire.conf.d/
# Then reload pipewire sudo systemctl reload --user pipewire.service
# Use pw-link --input and pw-link --output to find the name of the output and input device.
# The list will contain one line per port, but you will need the name of the device node.
# The format is <name of the device node>:<name of the port>.
# We need to configure two loopback modules. One for the sink and one of the source
context.modules = [
@ronsims2
ronsims2 / build.sh
Created May 1, 2023 02:06
Fix wasm-pack package file by adding a main entry to the package.json
#!/bin/zsh
# Run this from the root of the project!!!
wasm-pack build --target web --release
python fix_package_file.py
cd pkg
npm link