Skip to content

Instantly share code, notes, and snippets.

@milnak
milnak / vpx-vpinmame-install.md
Last active September 9, 2024 07:24
Visual Pinball X / VPinMAME Install

Visual Pinball X and VPinMAME Install

I couldn't find easy to follow instructions for setting up Visual Pinball X with VPinMAME, so I created one. I've tested these instructions using Windows 11.

Replace "D:" with whatever drive you prefer in the instructions that follow.

Installation

Follow these steps in order.

@milnak
milnak / foobar2000-dsd-sacd.md
Last active September 2, 2024 07:15
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.

This has been adapted from "SECTION II" of this page, thanks to "sirblew" for the tip!

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.

@milnak
milnak / garlic-os-tips.md
Last active August 31, 2024 15:48
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 / Install Windows 98 in 86Box.md
Last active August 27, 2024 01:17
Install Windows 98 in 86Box

Install Windows 98 SE in 86Box

Read the 86Box documentation for more details about these options.

Install 86Box

Use scoop to install easily.

scoop install 'main/7zip'
@milnak
milnak / Microsoft.PowerShell_profile.ps1
Created August 16, 2024 20:22
My PowerShell Profile
Write-Host -ForegroundColor Yellow ('-' * 79)
Write-Host -ForegroundColor Yellow ("Profile loaded from {0}" -f $PSCommandPath)
Write-Host -ForegroundColor Yellow ("PowerShell v{0}" -f (Get-Host).Version)
Write-Host -ForegroundColor Yellow ('-' * 79)
''
#
# __ _ _
# / _|_ _ _ _ __| |_(_)___ _ _ ___
# | _| || | ' \/ _| _| / _ \ ' \(_-<
@milnak
milnak / code.ps1
Last active August 15, 2024 18:09
Launch vscode with wildcards: PowerShell script to launch vscode, supporting wildcards
# Launch vscode with wildcards
function Get-UninstallPath {
Param(
[Parameter(Mandatory=$true)][string]$ProductId
)
$regPath = "/SOFTWARE/Microsoft/Windows/CurrentVersion/Uninstall/$ProductId"
# Check user location first
$path = Get-ItemProperty -Path "HKCU:$regPath" -Name 'InstallLocation' -ErrorAction SilentlyContinue
@milnak
milnak / Microsoft.PowerShell_profile.ps1
Last active August 15, 2024 18:09
My PowerShell $Profile: Includes functions, etc.
Write-Host -ForegroundColor Yellow ('-' * 79)
Write-Host -ForegroundColor Yellow ("Profile loaded from {0}" -f $PSScriptRoot)
Write-Host -ForegroundColor Yellow ("PowerShell v{0}" -f (Get-Host).Version)
Write-Host -ForegroundColor Yellow ('-' * 79)
''
#
# __ _ _
# / _|_ _ _ _ __| |_(_)___ _ _ ___
# | _| || | ' \/ _| _| / _ \ ' \(_-<
@milnak
milnak / ytdownloader.ps1
Last active August 15, 2024 18:08
Parallel yt-dlp wrapper
Param([string]$Path = './ytdownloader-urls.json')
# Sample ytdownloader-urls.json file:
#
# {
# "urls": [
# "# Comment 1",
# "https://www.youtube.com/playlist?list=list_id1",
# "# Comment 2",
# "https://www.youtube.com/playlist?list=list_id2"
@milnak
milnak / putty-config.md
Last active August 15, 2024 18:08
Putty Configuration: My Putty Configuration overrides

Putty Configuration

Putty sessions are saved under HKEY_CURRENT_USER\Software\SimonTatham\PuTTY\Sessions.

Terminal

Bell

Taskbar/caption indication on bell: Flashing

@milnak
milnak / rclone-music.ps1
Last active August 15, 2024 18:08
rclone folder: Copy music folder from my OneDrive to enScore music folder using rclone
Param(
[switch]$List,
[switch]$Check,
[switch]$Clone
)
# Copy music folder from my OneDrive to enScore music folder using rclone
$source = 'onedrive:"Documents/Band Charts/Pazific"'
$dest = "$env:LocalAppData\Packages\54636JonathanVardouniotis.enScoreSheetMusicReader_3p6s0exh8v0we\LocalState\SheetMusic\Pazific"