Skip to content

Instantly share code, notes, and snippets.

View GloriousEggroll's full-sized avatar

Thomas Crider GloriousEggroll

View GitHub Profile
This file has been truncated, but you can view the full file.
214.187:000b:fixme:winediag:start_process Wine Staging 3.5 is a testing version containing experimental patches.
214.187:000b:fixme:winediag:start_process Please mention your exact version when filing bug reports on winehq.org.
wine: cannot find L"C:\\windows\\system32\\winemenubuilder.exe"
214.349:000b:err:wineboot:ProcessRunKeys Error running cmd L"C:\\windows\\system32\\winemenubuilder.exe -a -r" (2)
218.465:0009:trace:xaudio2:DllMain (0x7fbb570f0000, 8, (nil))
218.483:0009:fixme:ntdll:EtwEventRegister ({5eec90ab-c022-44b2-a5dd-fd716a222a15}, 0x541000, 0x552030, 0x552050) stub.
218.483:0009:fixme:ntdll:EtwEventSetInformation (deadbeef, 2, 0x54fd70, 43) stub
218.484:0009:trace:winmm:DllMain 0x7fbb57d80000 0x1 0x53fb00
219.649:0009:fixme:heap:RtlSetHeapInformation 0x930000 0 0x53e840 4 stub
219.665:0009:trace:seh:NtRaiseException code=40010006 flags=0 addr=0x7b44d787 ip=7b44d787 tid=0009
@GloriousEggroll
GloriousEggroll / kernel32.patch
Created April 13, 2018 04:17
SetProcessAffinityUpdateMode stub for deadrising 4
diff --git a/dlls/kernel32/kernel32.spec b/dlls/kernel32/kernel32.spec
index 4a92913c4e..fa6d9547a4 100644
--- a/dlls/kernel32/kernel32.spec
+++ b/dlls/kernel32/kernel32.spec
@@ -1425,7 +1425,7 @@
@ stdcall SetNamedPipeHandleState(long ptr ptr ptr)
@ stdcall SetPriorityClass(long long)
@ stdcall SetProcessAffinityMask(long long)
-# @ stub SetProcessAffinityUpdateMode
+@ stdcall SetProcessAffinityUpdateMode(long long)
@GloriousEggroll
GloriousEggroll / de-anarchy.sh
Created May 7, 2018 20:22
A quick bash script to remove anarchy linux branding post-install
#!/bin/bash
sed -i -e 's/Anarchy/Arch/g' /etc/lsb-release
sed -i -e 's/Anarchy/Arch/g' /etc/os-release
sed -i -e 's/anarchy/arch/g' /etc/os-release
sed -i -e 's/arch-linux/www.archlinux/g' /etc/os-release
echo 'SUPPORT_URL="https://bbs.archlinux.org/"' >> /etc/os-release
echo 'BUG_REPORT_URL="https://bugs.archlinux.org/"' >> /etc/os-release
cp /etc/os-release /usr/lib/os-release
head -n -2 /etc/lightdm/lightdm-gtk-greeter.conf > lightdm-gtk-greeter.conf
mv lightdm-gtk-greeter.conf /etc/lightdm/
ERROR: ld.so: object '/home/gloriouseggroll/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/gloriouseggroll/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
ERROR: ld.so: object '/home/gloriouseggroll/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
ERROR: ld.so: object '/home/gloriouseggroll/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
284018.117:0008:0009:trace:module:load_builtin_callback loaded ntdll.dll 0x1106f0 0x7bc10000
284018.117:0008:0009:trace:module:load_builtin_dll Trying built-in L"kernel32.dll"
284018.118:0008:0009:trace:module:load_dll looking for L"ntdll.dll" in L""
284018.118:0008:0009:trace:module:load_dll Found L"C:\\windows\\system32\
@GloriousEggroll
GloriousEggroll / mesa_vendor_override_ati.patch
Last active January 14, 2019 05:32
this patch allows divinity original sin to run
diff --git a/src/mesa/main/getstring.c b/src/mesa/main/getstring.c
index 3d5ae0b694..b5116c6029 100644
--- a/src/mesa/main/getstring.c
+++ b/src/mesa/main/getstring.c
@@ -123,6 +123,13 @@ _mesa_GetString( GLenum name )
ASSERT_OUTSIDE_BEGIN_END_WITH_RETVAL(ctx, NULL);
+ boolean *forcedvendor = getenv("allow_vendor_override_ati");
+ if ((forcedvendor) && (name==GL_VENDOR)) {
@GloriousEggroll
GloriousEggroll / klcp_basic_unattended.ini
Last active January 17, 2021 09:42
k-lite codec silent default config no icons
[Setup]
Group=K-Lite Codec Pack
NoIcons=1
SetupType=custom
Components=video\lav, video\lav\hevc, video\lav\h264, video\lav\mpeg4, video\lav\mpeg2, video\lav\mpeg1, video\lav\vc1, video\lav\wmv, video\lav\other, audio\lav, audio\lav\ac3dts, audio\lav\truehd, audio\lav\aac, audio\lav\flac, audio\lav\mpeg, audio\lav\wma, audio\lav\other, sourcefilter\lav, sourcefilter\lav\avi, sourcefilter\lav\matroska, sourcefilter\lav\mp4, sourcefilter\lav\mpegps, sourcefilter\lav\mpegts, sourcefilter\lav\wmv, sourcefilter\lav\other, subtitles\vsfilter, tools\codectweaktool, shell\icaros_thumbnail, shell\icaros_property, misc\brokencodecs, misc\brokenfilters
Tasks=reset_settings\fresh, wmp_reg_formats, adjust_preferred_decoders
NoRestart=1
CloseApplications=0
[Data]
uim_version=12
@GloriousEggroll
GloriousEggroll / klcp_basic_unattended.bat
Created January 17, 2021 09:07
k-lite batch file for custom ini
@echo Installing: K-Lite Codec Pack
@"%~dp0K-Lite_Codec_Pack_1595_Basic.exe" /verysilent /norestart /LoadInf="%~dp0klcp_basic_unattended.ini"
@rem The above syntax is specific for this .bat file. If you want to execute the installer directly from the command line, then replace %~dp0 with .\ or use full path for the location of the INI file.
@echo Done!
@GloriousEggroll
GloriousEggroll / nvidia-installer.sh
Last active May 28, 2023 10:52
nvidia /etc/profile.d/ script
#!/usr/bin/sh
nvgpu=$(lspci | grep -iE 'VGA|3D' | grep -i nvidia | cut -d ":" -f 3)
nvkernmod=$(lspci -k | grep -iEA3 'VGA|3D' | grep -iA3 nvidia | grep -i 'kernel driver' | grep -iE 'vfio-pci|nvidia')
if [[ ! -z $nvgpu ]]; then
if [[ -z $nvkernmod ]]; then
# Check for internet connection
wget -q --spider http://google.com
if [ $? -eq 0 ]; then
@GloriousEggroll
GloriousEggroll / Fedora package build process reminder
Created November 14, 2021 00:28
Building fedora packages and using copr
# Create an srpm from fedora/rpmfusion sources:
fedpkg --release f35 srpm
# Install build dependencies needed to build that rpm:
sudo dnf builddep *.src.rpm
# Make a local build:
@GloriousEggroll
GloriousEggroll / eac_check.sh
Last active May 22, 2022 00:44
star_citizen_eac_check.sh
#!/bin/bash
EACDIR="$WINEPREFIX/drive_c/users/$USER/AppData/Roaming/EasyAntiCheat"
if [ -d $EACDIR ]
then
rm -Rf "$EACDIR"
fi