Skip to content

Instantly share code, notes, and snippets.

@pdc4444
pdc4444 / refresh_ark_shortcuts.php
Created December 30, 2019 15:51
Creates ark shortcuts on your desktop to quickly join a server.
<?php
/**
* The purpose of this script is to create custom ark shortcuts on your desktop that automatically will connect you to the server of your choosing.
* This avoids Wildcard's dumb menu which is currently bugged out and will sometimes crash your game :(
*
* Another reason for this script's existence is the fact that I can't put a hostname into the shortcut and have it automatically be resolved (it has to be an ip address).
*
* Code Flow:
* - Get the ip address to elephantbox.net
@pdc4444
pdc4444 / audio_helper.php
Created September 9, 2020 16:32
Easily create an audio pipe for use with OBS
<?php
/**
* This script was created for use in Linux with PulseAudio. It will dynamically create a null sink via pactl and a combined sink to listen in on that newly created null sink on the output of your choice.
* My personal use case is to easily create a new combined audio pipe that includes game audio and the virtual audio sink so I can stream only my game audio via OBS but also be able to hear it!
*
* Dependencies:
* pulseaudio
* pavucontrol
* php-cli
@pdc4444
pdc4444 / workspace_switcher.php
Created June 16, 2021 15:05
This script was written to quickly swap between desktops in GNOME2 (might work in GNOME3).
<?php
/*
This script was written to quickly swap between desktops in GNOME2 (might work in GNOME3).
Logic is written to determine if the current desktop +1 or -1 exists so the user can pass the --next or --previous flags.
If the previous or next desktop does not exist then the desktop does not switch (it does not loop).
You might think "Why not use xdotool?" The reason I'm not using xdotool is so that the keys that it presses do no get passed to windows which grab keyboard input.
For example, using virt-viewer if you were to script xdotool to a hotkey, the actual key presses would be sent to the virtual machine instead of the hostmachine.
Computer Information:
Manufacturer: ASUSTeK COMPUTER INC.
Model: PRIME X570-PRO
Form Factor: Desktop
No Touch Input Detected
Processor Information:
CPU Vendor: AuthenticAMD
CPU Brand: AMD Ryzen 9 5950X 16-Core Processor
CPU Family: 0x19
@pdc4444
pdc4444 / steam-1575940.log
Created August 16, 2024 01:03
Sins of a solar empire II log
This file has been truncated, but you can view the full file.
======================
Proton: 1723129720 experimental-9.0-20240808
SteamGameId: 1575940
Command: ['/home/peter/.local/share/Steam/steamapps/common/Sins2/StardockLauncher.exe']
Options: {'forcelgadd'}
depot: 0.20240718.95653
pressure-vessel: 0.20240718.0 scout
scripts: 0.20240718.0
sniper: 0.20240718.95653 sniper 0.20240718.95653
Kernel: Linux 6.9.3-76060903-generic #202405300957~1718348209~22.04~7817b67 SMP PREEMPT_DYNAMIC Mon J x86_64
FactoryGame.log
[2024.10.05-12.59.40:672][359]LogCore: === Critical error: ===
Unhandled Exception: SIGBUS: invalid attempt to access memory at address 0x0000000000000000
[2024.10.05-12.59.40:672][359]LogCore: Fatal error!
0x000078ad6b132ad3 libFactoryServer-FactoryGame-Linux-Shipping.so!AFGBuildableAttachmentMerger::Factory_Tick(float) [C:/BuildAgent/work/b731a33f2a691e17/UE4/Engine/Source/./../../FactoryGame/Source/FactoryGame/Private/Buildables/FGBuildableAttachmentMerger.cpp:102]
0x000078ad6b309f35 libFactoryServer-FactoryGame-Linux-Shipping.so!UE::Core::Private::Function::TFunctionRefCaller<AFGBuildableSubsystem::TickFactoryActors(float)::$_34, void (int)>::Call(void*, int&) [C:/BuildAgent/work/b731a33f2a691e17/UE4/Engine/Source/Runtime/Core/Public/Templates/Function.h:479]
0x000078ad6b2b417e libFactoryServer-FactoryGame-Linux-Shipping.so!void ParallelForImpl::ParallelForInternal<TFunctionRef<void (int)>, ParallelFor(int, TFunctionRef<void (int)>, EParallelForFlags)::'lambda'(), std::nullptr_t>(char16