Skip to content

Instantly share code, notes, and snippets.

@milnak
milnak / YamahaRefaceCP.py
Created May 12, 2024 08:21
KnobKraft-Adaptation: Yamaha Reface CP
"""
# Yamaha Reface CP
## MIDI Data Format
### (3-4) SYSTEM EXCLUSIVE MESSAGE
Device Number: Bulk Dump=0n; Parameter change=1n; Dump Request=2n; Parameter Request=3n
#### (3-4-1) UNIVERSAL NON REALTIME MESSAGE
@milnak
milnak / garlic-os-tips.md
Last active May 7, 2024 00:18
My set of GarlicOS tips #rg35xx

Garlic OS Tips (Windows-based)

GarlicOS Cookbook

Follow these instructions for an easy way to get up and going quickly! These are complete instructions, and will be the easiest way to get started on a new RG35XX.

Set up SD Card

Get a high quality SD (e.g. SanDisk Extreme) card, 128GB or larger, 256GB is recommended. Don't skimp here, they're cheap, and don't use the card that comes with the RG35XX as it's crap.

@milnak
milnak / RV Departure Checklist.md
Last active May 1, 2024 17:59
RV Departure Checklist

Interior

Kitchen

  • Pack Loose Items: Gather all loose items in your kitchen area. This could include utensils, dishes, and food items. Make sure to store them securely to prevent damage during transit.
  • Latch and Secure All Cabinet Doors: Ensure that all your kitchen cabinet doors are closed and latched to prevent items from falling out while on the move.
  • Remove Items from the Counter: Clear your countertops to avoid any loose items from toppling over or sliding off during travel.
  • Secure Stove Top and Oven Door: Ensure that the stove top and oven door are securely fastened to prevent any accidental openings.
@milnak
milnak / foobar2000-dsd-sacd.md
Last active April 30, 2024 02:59
[Foobar 2000 DSD and SACD support] Guide to setting up Foobar2000 player for hi-res audio (DSF, DFF, SACD, ISO)

Foobar2000 DSD and SACD support

I've successfully followed these steps to get DSD (.dsf filetype) and SACD (.iso filetype) playing at high bit rate using foobar2000 on my S.M.S.L M500 DAC.

Introduction

DSD stands for Direct Stream Digital and it is a high-definition lossless audio format with a twist. PCM signal solutions (like FLAC, TTA or APE) measure a set of bits multiple times per second to capture the audio data, hence the 16/24-bit parameter. On the other hand, DSD uses only one bit but samples it 2.8 million times a second to capture the audio signal.

ASIO Output (Required)

@milnak
milnak / DaVinci Resolve Keyboard Shortcuts.md
Created April 25, 2024 23:59
DaVinci Resolve Keyboard Shortcuts

DaVinci Resolve Keyboard Shortcuts

Original found here.

For Mac, replace:

  • "Control" with "Command"
  • "Alt" with "Option"

File

@milnak
milnak / ubuntu20-hyperv-enhanced-session.md
Last active April 24, 2024 20:24
[Enabling enhanced session in Hyper-V for Ubuntu 20] This works for me, although it seems that Hyper-V quick create now supports enhanced session by default. #ubuntu #hyperv

Setup Hyper-V enhanced session for Ubuntu 20

I couldn't find instructions that were 100% complete, so I put this together.

These instructions worked fine for me. Follow each step carefully.

Download Ubuntu 20 desktop

DO NOT create the VM by choosing Quick Create in Hyper-V Manager. Follow these instructions exactly.

@milnak
milnak / ytdlp.ps1
Last active April 22, 2024 15:53
[ytdlp functions] PowerShell functions to wrap ytdlp
<#
.SYNOPSIS
Download best quality video and audio into default container.
#>
function ytdlp-v {
Param(
[Parameter(Mandatory = $true)]
[string]$Uri
)
@milnak
milnak / stable_diffusion_install.md
Last active April 19, 2024 18:13
Stable Diffusion Install for Windows

Stable Diffusion Install

These instructions were written for Windows, but are easily adaptable to other platforms.

Note: Stable Diffusion requires PyTorch which only works with Python 3.10.

Install Prerequisites

Install Scoop then do:

@milnak
milnak / itsmine.cmd
Created April 19, 2024 17:12
Take ownership of a Windows file or folder
@ECHO OFF
FOR /f "usebackq" %%f IN (`whoami.exe /priv`) DO IF %%f.==SeTakeOwnershipPrivilege. GOTO :CHKARGS
ECHO ERROR: This script must be run as an administrator!
GOTO :EOF
:CHKARGS
IF "%~1"=="" GOTO :EOF
ECHO About to take ownership of "%~1" . . .
PAUSE
@milnak
milnak / pihole-android.md
Created April 19, 2024 02:27
PiHole not working on Android Troubleshooting Guide

PiHole not working on Android Troubleshooting Guide

Visit Can You Block It on same network on a non-Android device. Determine if ads are being blocked.

Check if Private DNS is enabled. To turn it off: Settings > Network & internet > Private DNS. Set to off.

Check if "Randomized MAC" (in WiFi settings) is enabled. Settings app > Network & Internet > Wi-Fi > Gear icon associated with the wireless connection > Advanced > Privacy. Switch to "Use device MAC address".