Skip to content

Instantly share code, notes, and snippets.

View djalexkidd's full-sized avatar

Alexandre P. djalexkidd

View GitHub Profile
@djalexkidd
djalexkidd / unzip.gd
Created October 19, 2024 08:58
Download and unzip file in GDScript (Godot Engine 4.3)
extends Control
@onready var req := $HTTPRequest
# This function unzips the downloaded file
static func unzip(path_to_zip: String) -> void:
var zr : ZIPReader = ZIPReader.new()
if zr.open(path_to_zip) == OK:
for filepath in zr.get_files():
@djalexkidd
djalexkidd / fileselectfix.md
Created June 22, 2024 15:17
Fix KDE Plasma's file selector being slow and crashing

If KDE Plasma becomes slow and irresponsive when you save a file for example, then it's because QtProject.conf is corrupt and you must remove it.

Type this command on a terminal :

rm ~/.config/QtProject.conf
@djalexkidd
djalexkidd / pipewire.md
Created December 12, 2023 18:06
Fix Realtek HD Audio on PipeWire

If your sound card dies when unplugging your headphones and need to restart PipeWire/WirePlumber to reuse your headphones, you need to disable the sound card's power management.

To disable power_save permanently run

sudo tee /etc/modprobe.d/snd-hda-intel.conf <<< "options snd_hda_intel power_save=0"

Reboot to apply.

@djalexkidd
djalexkidd / scroll.md
Last active July 27, 2025 17:08
Disable hi-resolution scrolling on Linux

If your mouse wheel behaves weirdly in games, you may need to disable high resolution scrolling in modprobe or xinput/libinput settings. This is a common problem on Logitech gaming mouses.

Method 1 : Using modprobe

  1. Unload "hid_logitech_hidpp" kernel module
sudo modprobe -r hid_logitech_hidpp
@djalexkidd
djalexkidd / fix.md
Created April 30, 2023 10:38
Command to fix KDE Plasma desktop not working and taking half the RAM
rm ~/.config/plasma-org.kde.plasma.desktop-appletsrc

This will reset Plasma desktop and taskbar configuration.