Skip to content

Instantly share code, notes, and snippets.

@zudljk
zudljk / start-gameserver.ps1
Last active April 5, 2024 19:21
A bash script and equivalent PowerShell script that starts a remote Paperspace instance, starts VirtualHere USB server locally, and creates an SSH tunnel to forward the USB server to the remote instance. Press Ctrl-C to exit the script and shut down the remote instance.
function Get-PublicIP {
param(
[string]$MachineId,
[string]$ApiKey
)
$Headers = @{
"Content-Type" = "application/json"
"Authorization" = "Bearer $ApiKey"
}
Set-ExecutionPolicy Bypass -Scope Process -Force
[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072
iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
choco install -y google-backup-and-sync
choco install -y steam-client
choco install -y obs-studio
choco install -y goggalaxy
@zudljk
zudljk / asound.conf
Last active January 27, 2019 09:33
Raspberry bluetooth audio device
# http://alsa.opensrc.org/SurroundSound
# http://alsa.opensrc.org/Low-pass_filter_for_subwoofer_channel_%28HOWTO%29
# Arch Linux: pacman -S ladspa blop swh-plugins libsamplerate tap-plugins cmt
# speaker-test -D upmix_20to51 -c 2 -t wav
# listplugins
# analyseplugin cmt
# http://plugin.org.uk/ladspa-swh/docs/ladspa-swh.html
pcm.lowpass_21to21 {
type ladspa
slave.pcm upmix_21to51