Skip to content

Instantly share code, notes, and snippets.

@Waoweens
Waoweens / AutoPrimary.ps1
Created February 17, 2024 14:14
set primary monitor when a game starts and restore it when it exists
# AutoPrimary: set the primary monitor when a game starts
# Steam launch option:
# replace script path with your actual script path,
# replace powershell.exe with PS Core's pwsh.exe if wanted
# C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -WindowStyle Hidden -ExecutionPolicy Bypass -File C:\Scripts\AutoPrimary.ps1 %command%
# Requires NirSoft MultiMonitorTool
# https://www.nirsoft.net/utils/multi_monitor_tool.html
# assumes it's in the same directory as this script, otherwise
@Waoweens
Waoweens / PKGBUILD
Created December 3, 2023 06:04
my PKGBUILDs
# Maintainer: Waoweens <30313089 plus Waoweens at users dot noreply dot github dot com>
_pkgname='gamemaker-beta'
_upkgname='GameMaker-Beta'
pkgname=${_pkgname}
pkgver=2023.1100.0.450
pkgrel=1
pkgdesc='GameMaker Studio 2 Beta, from deb package'
arch=('x86_64' 'aarch64' 'armv7l')
url="https://gamemaker.io"
@Waoweens
Waoweens / journalctl-output.txt
Last active June 2, 2022 08:23
journalctl -xb
# you wont believe what it took to push to this gist from the emergency shell
# especially with no copy-paste
# yes, i know i could have just wrote the output to a flash drive and pushed from my laptop
# but thats no fun
#
# BEGIN journalctl -xb OUTPUT
Jun 02 14:34:17 waoweenspc kernel: microcode: microcode updated early to revision 0x1f, date = 2022-03-03
Jun 02 14:34:17 waoweenspc kernel: Linux version 5.18.1-arch1-1 (linux@archlinux) (gcc (GCC) 12.1.0, GNU ld (GNU Binutils) 2.38) #1 SMP PREEMPT_DYNAMIC Mon, 30 May 2022 17:53:11 +0000
Jun 02 14:34:17 waoweenspc kernel: Command line: BOOT_IMAGE=/boot/vmlinuz-linux root=UUID=a8e85319-e111-4983-a92b-7b3300b76516 rw loglevel=3 ibt=off
Jun 02 14:34:17 waoweenspc kernel: x86/split lock detection: #AC: crashing the kernel on kernel split_locks and warning on user-space split_locks