Skip to content

Instantly share code, notes, and snippets.

View RevoluPowered's full-sized avatar

Gordon MacPherson RevoluPowered

  • United Kingdom
View GitHub Profile
# fix sony XM4's disconnecting and wifi dying on Intel AX210 cards on Linux
# run as root
echo -1 > /sys/module/usbcore/parameters/autosuspend
echo N | tee /sys/module/snd_hda_intel/parameters/power_save_controller
echo 0 | tee /sys/module/snd_hda_intel/parameters/power_save
# you prob need to modify this to your wifi card name run iwconfig and add it properly replacing wlp5s0
iwconfig wlp5s0 power off
define COAL 1724793494
define COBALT -983091249
define COPPER -707307845
define GOLD -1348105509
define IRON 1758427767
define LEAD -190236170
define NICKEL 1830218956
define SILICON 1103972403
define SILVER -916518678
define URANIUM -1516581844
alias AK db
alias PressureValue r0
alias OutPressure r1
alias OutPressure2 r2
alias InputPressure r3
alias p1 r4
alias p2 r5
alias p3 r6
alias p4 r7
define MaximumPressure 40000
// this is the old code
const float *v = (const float *)&r[j * total_elem_size + offsets[i]];
w[j] = Vector3(v[0], v[1], v[2]);
// this is the replacement (has correct alignment)
float x = (float)r[j*total_elem_size*offsets[i]];
float y = (float)r[j*total_elem_size*offsets[i]+1];
float z = (float)r[j*total_elem_size*offsets[i]+2];
w[j] = Vector3(x,y,z);
@RevoluPowered
RevoluPowered / undefined behaviour
Last active August 3, 2021 13:45
something.cpp
// this is the old code
const float *v = (const float *)&r[j * total_elem_size + offsets[i]];
w[j] = Vector3(v[0], v[1], v[2]);
// this is the replacement (has correct alignment)
float x = (float)r[j*total_elem_size*offsets[i]];
float y = (float)r[j*total_elem_size*offsets[i]+1];
float z = (float)r[j*total_elem_size*offsets[i]+2];
w[j] = Vector3(x,y,z);
@RevoluPowered
RevoluPowered / something2.sh
Created August 3, 2021 12:01
Problem commit
I just bisected the problem commit
➜ godot git:(7f4eafa6f28) git bisect good
Bisecting: 1 revision left to test after this (roughly 1 step)
[18f09492b4ff5db708cbb6b31f4ea3419f8092c1] Merge pull request #50874 from raulsntos/backport-44355
➜ godot git:(18f09492b4f) htop
➜ godot git:(18f09492b4f) git bisect good
Bisecting: 0 revisions left to test after this (roughly 0 steps)
[d27428406922697382348ca1b769805db20a5310] Octahedral Normal/Tangent Compression
➜ godot git:(d2742840692) git bisect bad
@RevoluPowered
RevoluPowered / Crash.log
Created June 1, 2021 20:09
Crash log file
This file has been truncated, but you can view the full file.
[01Jun2021 20:52:17.834] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher running: args [--gameDir, ., --launchTarget, fmlserver, --fml.forgeVersion, 36.1.16, --fml.mcpVersion, 20210115.111550, --fml.mcVersion, 1.16.5, --fml.forgeGroup, net.minecraftforge, nogui]
[01Jun2021 20:52:17.837] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher 8.0.9+86+master.3cf110c starting: java version 15.0.2 by N/A
[01Jun2021 20:52:17.845] [main/DEBUG] [cpw.mods.modlauncher.LaunchServiceHandler/MODLAUNCHER]: Found launch services [minecraft,testharness,fmlclient,fmlserver]
[01Jun2021 20:52:17.865] [main/DEBUG] [cpw.mods.modlauncher.NameMappingServiceHandler/MODLAUNCHER]: Found naming services : []
[01Jun2021 20:52:17.896] [main/DEBUG] [cpw.mods.modlauncher.LaunchPluginHandler/MODLAUNCHER]: Found launch plugins: [mixin,eventbus,object_holder_definalize,runtime_enum_extender,capability_inject_definalize,accesstransformer,runtimedistcleaner]
[01Jun2021 20:52:17.900] [main/DEBUG] [cpw.mods.mod
FROM ubuntu:bionic
RUN apt-get update
RUN apt-get upgrade -y
RUN apt-get install software-properties-common -y
RUN useradd -m steam
RUN cd /home/steam
RUN add-apt-repository multiverse
RUN dpkg --add-architecture i386
https://github.com/GDQuest/godot-shaders,
https://github.com/gamedevserj/Godot-Shaders,
https://github.com/arkology/ShaderV,
https://github.com/GDQuest/godot-visual-effects,
https://github.com/DevinPentecost/godot-practice-shaders,
https://github.com/GDQuest/godot-2d-space-game
scons: *** Found dependency cycle(s):
modules/libmodule_glslang.osx.tools.64.dylib -> platform/libplatform.osx.tools.64.dylib -> main/libmain.osx.tools.64.dylib -> servers/libservers.osx.tools.64.dylib -> modules/libmodule_jpg.osx.tools.64.dylib -> drivers/libdrivers.osx.tools.64.dylib -> modules/libmodule_glslang.osx.tools.64.dylib
main/libmain.osx.tools.64.dylib -> platform/libplatform.osx.tools.64.dylib -> main/libmain.osx.tools.64.dylib
modules/libmodule_jpg.osx.tools.64.dylib -> platform/libplatform.osx.tools.64.dylib -> main/libmain.osx.tools.64.dylib -> servers/libservers.osx.tools.64.dylib -> modules/libmodule_jpg.osx.tools.64.dylib
modules/libmodule_denoise.osx.tools.64.dylib -> platform/libplatform.osx.tools.64.dylib -> main/libmain.osx.tools.64.dylib -> servers/libservers.osx.tools.64.dylib -> modules/libmodule_jpg.osx.tools.64.dylib -> drivers/libdrivers.osx.tools.64.dylib -> modules/libmodule_glslang.osx.tools.64.dylib -> scene/libscene.osx.tools.64.dylib -> modules/libmodule_gdnavigation