Skip to content

Instantly share code, notes, and snippets.

@avengerx
avengerx / mkscsjail.sh
Created March 15, 2023 20:59
Script to generate a very limited `chroot()` jail with SCS's ATS or ETS2 dedicated server, optionally binding to specific CPUs and IP
#!/bin/bash
runner_user=steam_runner
updater_user=steam_updater
usercachefile="/tmp/steamusercache.dat"
jaildir="./scsjail"
atsjaildir="atsd"
etsjaildir="ets2d"
@avengerx
avengerx / pdnreg.bat
Last active January 12, 2024 22:43
Add context menu 'Edit with Paint.NET' for supported file extensions (system-wide or per-user)
@ECHO OFF
setlocal EnableDelayedExpansion
set uninstall=no
set classkey=HKEY_CLASSES_ROOT
if [%1]==[uninstall] set uninstall=yes
net session > nul 2>&1
if %ERRORLEVEL% NEQ 0 (
echo Setting up for current user ^(run as Administrator for system-wide change^).
set classkey=HKEY_CURRENT_USER\Software\Classes