Skip to content

Instantly share code, notes, and snippets.

@SilvortheGrand
SilvortheGrand / HD2AudioFileCopier
Created February 15, 2025 22:14
A simple PowerShell script to bulk copy audio files that can be used as audio replacers
if (-not (Test-Path "./ids.txt")) {
Write-Host "The 'ids.txt' has not yet been created. It will be created now. Please copy-paste all the ids you'd like to have audio for into it."
"" | Out-File ./ids.txt
Read-Host "Once you are done, press ENTER"
}
[string[]] $audioFiles = (Get-ChildItem *.wav).FullName
[string[]] $ids = (Get-Content -Path ./ids.txt -Raw).Split([Environment]::NewLine, [System.StringSplitOptions]::RemoveEmptyEntries)
if (!(Test-Path -path "./audioreplacements/")) {
@SilvortheGrand
SilvortheGrand / Fallout4Downgrader.sh
Last active July 26, 2024 21:32
Fallout 4 Downgrader Script for Debian 12. Make sure to disable updates, a guide for which can be found here: https://www.youtube.com/watch?v=rxwPNCPz4r8
if ! command -v steamcmd &> /dev/null
then
# Install SteamCMD
echo "SteamCMD was not found, installing..."
sudo update
sudo apt install software-properties-common;
sudo echo "deb http://ftp.us.debian.org/debian bookworm main non-free" > /etc/apt/sources.list.d/non-free.list
sudo dpkg --add-architecture i386;
sudo apt update
sudo apt install steamcmd
@SilvortheGrand
SilvortheGrand / SetupKamvas13
Last active August 2, 2024 19:48
Sets up the side buttons for the Kamvas 13 graphical tablet on Linux. Tested for Debian 12 and set up to use Krita's keybinds. Before running, ensure the drawing tablet is connected to the computer.
# NOTE: Button numbers 4-7 do not map to any buttons for technical reasons, thus the skip to 8
# Undo
xsetwacom set "HUION Huion Tablet_GS1331 Pad pad" button 1 key +Ctrl +Z
# Redo
xsetwacom set "HUION Huion Tablet_GS1331 Pad pad" button 2 key +Ctrl +Shift +Z
# Ctrl for easy zoom access
xsetwacom set "HUION Huion Tablet_GS1331 Pad pad" button 3 key +Ctrl
# Cut
xsetwacom set "HUION Huion Tablet_GS1331 Pad pad" button 8 key Ctrl X