Skip to content

Instantly share code, notes, and snippets.

View MrPowerGamerBR's full-sized avatar
:shipit:
We facepalm, we shrug and we hack around it and never look back.

MrPowerGamerBR MrPowerGamerBR

:shipit:
We facepalm, we shrug and we hack around it and never look back.
View GitHub Profile
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: MrPowerGamerBR <git@mrpowergamerbr.com>
Date: Thu, 15 Jan 2026 14:30:28 -0300
Subject: Implement SetThreadpoolTimerEx
You should NOT use this patch in production, this was generated by Claude Code (Sonnet 4.5) and is meant to see how far you can make Creative Cloud work with it.
---
dlls/kernel32/kernel32.spec | 1 +
dlls/kernelbase/kernelbase.spec | 2 +-
From ccacdcea3dd5724d1121509f7a02e1e999870b2d Mon Sep 17 00:00:00 2001
From: MrPowerGamerBR <git@mrpowergamerbr.com>
Date: Thu, 31 Jul 2025 21:37:20 -0300
Subject: [PATCH] Disable animations in the information panel
---
src/panels/information/pixmapviewer.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/panels/information/pixmapviewer.cpp b/src/panels/information/pixmapviewer.cpp
@MrPowerGamerBR
MrPowerGamerBR / vxtwitter.sh
Created July 23, 2025 02:36
A script that converts the x.com link in the clipboard to vxtwitter.com (KDE Plasma + Wayland)
#!/bin/bash
CLIPBOARD_CONTENT=$(wl-paste)
REPLACED=${CLIPBOARD_CONTENT/x.com/vxtwitter.com}
echo $REPLACED
wl-copy $REPLACED
kdialog --title "x.com to vxtwitter.com converter" --passivepopup $REPLACED 3

Já que eu não ligo para ter secure boot no Linux (nenhum software precisa dessa bomba), uma solução fácil é:

sudo pacman -Syu mokutil
yay -Syu shim-signed

Primeiro instale o grub normalmente, é necessário instalar com os modules desta forma para ter suporte ao SBAT (Secure Boot Advanced Targeting), que o shim precisa para bootar.

@MrPowerGamerBR
MrPowerGamerBR / kwin_wayland.log
Last active July 17, 2025 19:24
KDE Plasma KWin crash
jul 17 14:54:37 deeparch-whistler plasmashell[1114]: error marshalling arguments for import_timeline: dup failed: Muitos arquivos abertos
jul 17 14:54:37 deeparch-whistler plasmashell[1114]: Error marshalling request: Muitos arquivos abertos
jul 17 14:54:37 deeparch-whistler plasmashell[1114]: qt.qpa.wayland: eglSwapBuffers failed with 0x3000, surface: 0x55c994d1e7a0
jul 17 14:54:37 deeparch-whistler plasmashell[1114]: The Wayland connection experienced a fatal error: Muitos arquivos abertos
jul 17 14:54:37 deeparch-whistler kwin_wayland_wrapper[957]: KCrash: Application 'kwin_wayland' crashing... crashRecursionCounter = 2
jul 17 14:54:37 deeparch-whistler systemd-coredump[83765]: Process 957 (kwin_wayland) of user 1000 terminated abnormally with signal 11/SEGV, processing...
jul 17 14:54:37 deeparch-whistler systemd[1]: Created slice Slice /system/drkonqi-coredump-processor.
jul 17 14:54:37 deeparch-whistler systemd[1]: Created slice Slice /system/systemd-coredump.
jul 17 14:54:37 deeparch-whistler systemd[1
@MrPowerGamerBR
MrPowerGamerBR / 0001-Fix-vegas-9.0-An-necessary-operation-is-not-implemen.patch
Created July 17, 2025 04:06
Fix vegas 9.0 "An necessary operation is not implemented" in Wine (hacky)
From 44fb564431393c4f5f86046d083ec0cd09b9dd54 Mon Sep 17 00:00:00 2001
From: MrPowerGamerBR <git@mrpowergamerbr.com>
Date: Thu, 17 Jul 2025 01:04:46 -0300
Subject: [PATCH] Fix vegas 9.0 "An necessary operation is not implemented"
---
dlls/wiaservc/wiadevmgr.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/wiaservc/wiadevmgr.c b/dlls/wiaservc/wiadevmgr.c
@MrPowerGamerBR
MrPowerGamerBR / FontGeneratorCompute.kt
Last active July 9, 2025 19:10
SDF rendering things
package net.perfectdreams.lookatmycursor
import kotlinx.serialization.json.Json
import kotlinx.serialization.json.encodeToStream
import net.perfectdreams.harmony.gl.debug.OpenGLDebugging
import net.perfectdreams.harmony.gl.shaders.ShaderManager
import net.perfectdreams.harmony.gl.textures.TextureManager
import net.perfectdreams.harmony.logging.HarmonyLoggerFactory
import net.perfectdreams.harmony.logging.slf4j.HarmonyLoggerCreatorSLF4J
import org.lwjgl.BufferUtils
@MrPowerGamerBR
MrPowerGamerBR / sdf_gen.glsl
Last active July 1, 2025 21:16
SDF (Signed Distance Field) compute shader
#version 430 core
layout(local_size_x = 16, local_size_y = 16) in;
layout(rgba8, binding = 0) uniform image2D inputImage;
layout(rgba8, binding = 1) uniform image2D outputTexture;
uniform int searchRadius = 32;
void main() {
ivec2 pixelCoords = ivec2(gl_GlobalInvocationID.xy);
@MrPowerGamerBR
MrPowerGamerBR / DiscordExperimentHash.kt
Created May 14, 2025 23:38
A port of Discord's experiment hash calculation (ported by Gemini 2.5 Pro with some fixes thx Gemini xoxoxo)
package net.perfectdreams.loritta.morenitta
import kotlinx.io.bytestring.encodeToByteString
import java.nio.ByteBuffer
import java.nio.ByteOrder
// Constants used in the MurmurHash3 algorithm
// These are the 32-bit patterns. Using .toInt() correctly captures their signed representation if needed.
private const val C1_INT: Int = 0xCC9E2D51.toInt() // JavaScript: 3432918353
private const val C2_INT: Int = 0x1B873593.toInt() // JavaScript: 461845907
@MrPowerGamerBR
MrPowerGamerBR / CustomContentEntryRoute.kt
Last active March 13, 2025 04:25
SneakySims' The Sims 1 Skin Renderer (frontend & backend)
package net.sneakysims.website.routes
import io.ktor.server.application.*
import io.ktor.server.html.*
import io.ktor.server.response.*
import io.ktor.server.util.*
import kotlinx.serialization.json.Json
import net.perfectdreams.sequins.ktor.BaseRoute
import net.sneakysims.sneakylib.cmx.CMX
import net.sneakysims.sneakylib.skn.SKN