Skip to content

Instantly share code, notes, and snippets.

View rewgs's full-sized avatar

Alex Ruger rewgs

View GitHub Profile
@rewgs
rewgs / Set up Reaper to use Python on an Apple Silicon Mac
Created November 21, 2024 23:49
Set up Reaper to use Python on an Apple Silicon Mac
2024-11-21
macOS 15
Reaper 7.27
Python 3.12.7, installed via Homebrew
Reaper preferences/Plug-ins/ReaScript:
- Check "Enable Python for sure with ReaScript"
- Custom path to Python dll directory: `/opt/homebrew/Cellar/python@3.12/3.12.7_1/Frameworks/Python.framework/Versions/3.12/lib`
- Force ReaScript to use specific Python .dylib: `libpython3.12.dylib`
@rewgs
rewgs / install-docker-on-unsupported-synology.md
Created October 12, 2023 00:41
Install Docker on an unsupported Synology model

Note: I have only successfully tested this on an RS819 running DSM 7.2-64570 Update 3.

  1. ssh into your new Synology via your normal user account, e.g. ssh userName@synologyIp.
  2. Enter su -i and, when prompted, enter the password you just entered for ssh access. You should now be root.
  3. Follow the instructions here. For posterity, I've listed the short version here, but I urge you to not only read the link's instructions, but also to inspect the shell script in the following step prior to running it.
  4. Execute the following command: curl https://gist.githubusercontent.com/ta264/2b7fb6e6466b109b9bf9b0a1d91ebedc/raw/b76a28d25d0abd0d27a0c9afaefa0d499eb87d3d/get-docker.sh | sh
  5. Once you see the message Done. Please add your user to the Docker group in the Synology GUI and reboot your NAS., do so by navigating to Control Panel/User & Group, select your normal user account that you used to ssh into the Synology in step 1, select Edit, go to User G
@rewgs
rewgs / smb-checklist.md
Created September 2, 2023 04:44
SMB checklist

Problem: Samba is installed, set up, your smb.conf looks fine, but you still can't log in from another computer/your credentials are being refused?

Solution: Remember to set up an SMB password via smbpasswd -a $user

Note that I have only tested this with macOS 13.4.

  1. Plug in both the power and USB cables of the Tascam, but don't power it on. It should be in "standby" mode with a green USB light, but the "power" light should only be dimly lit as opposed to fully lit.
  2. Press and hold down the "Sel" and "Aux 2" buttons. While holding them down, power on the unit; you should see the Aux 2 button blink 5 times. This means that the unit is in "Sonar Mode."
  3. Open Reaper's Preferences and navigate to Control/OSC/web under the Plug-ins section.
  4. Create 1 Mackie Control Universal device. Set its input and output to Port 1 of the Tascam.
  5. Create 2 Mackie Control Extender devices.
  6. Set the I/O of the first extender to Port 2 of the Tascam, and set the offset to 8.
  7. Set the I/O of the second extender to Port 3 of the Tascam, and set the offset to 16. Everything should now be working!
@rewgs
rewgs / setting-up-a-tascam-us-2400-with-cubase-12-in-2023.md
Created July 9, 2023 22:33
Setting up a Tascam US-2400 with Cubase 12 in 2023

Note that I have only tested this with macOS 13.4.

  1. Plug in both the power and USB cables of the Tascam, but don't power it on. It should be in "standby" mode with a green USB light, but the "power" light should only be dimly lit as opposed to fully lit.
  2. Press and hold down the "Sel" and "Aux 5" buttons. While holding them down, power on the unit; you should see the Aux 5 button blink 5 times. This means that the unit is in "Native Mode."
  3. In Cubase's MIDI port setup window, uncheck all the Tascam US2400 ports from the "In all MIDI" column.
  4. Create 3 Mackie Control devices in Cubase's Studio Setup window. Assign the input and output of Mackie Control 1 to port 1 of the Tascam 2400. Repeat this for MCs/ports 2 and 3.
  5. Be sure to select the "Reset" button in each of the Mackie Control device windows.

Everything should now be working!

@rewgs
rewgs / gist:70d52363156c9a00cd122f1bac3c32b1
Created April 15, 2023 18:05
How to share via smb and/or nfs on zfs
#!/bin/bash
# I've found documentation on zfs sharing to be weirdly inadequate and confusing, so here you go:
$path=/path/to/share
sudo zfs set sharesmb=on $path
sudo zfs set sharenfs=on $path
# confirm with: