Skip to content

Instantly share code, notes, and snippets.

View reduktr's full-sized avatar
:shipit:
Looking for work

redukt reduktr

:shipit:
Looking for work
View GitHub Profile
@reduktr
reduktr / gist:12f3e7078cecd42544137214ba902875
Created July 14, 2024 00:22 — forked from sdeering/gist:8437725
Some .bashrc git alias commands
#-------------------------------------------------------------
# Git Alias Commands
#-------------------------------------------------------------
alias g="git status"
alias ga="git add"
alias gaa="git add ."
alias gau="git add -u"
alias gc="git commit -m"
alias gca="git commit -am"
alias gb="git branch"
@reduktr
reduktr / pipewire-audio-delay-pop-fix.md
Last active July 3, 2024 12:33
Noticeable audio delay or audible pop/crack when starting playback with Pipewire

Noticeable audio delay or audible pop/crack when starting playback

This is caused by node suspension when inactive.

With wireplumber, create a new file to overwrite the default configuration:


/etc/wireplumber/wireplumber.conf.d/51-disable-suspension.conf (or ~/.config/wireplumber/wireplumber.conf.d/51-disable-suspension.conf)

monitor.alsa.rules = [
@reduktr
reduktr / Hide-README.md
Last active June 27, 2024 04:16
Hiding README.md locally on a Bare Git Repository in your Home Directory

As of some newer Git version, sparse-checkout doesn't use patterns anymore but directories as arguments.

So to get the same functionality as earlier, one has to use

yadm sparse-checkout set --non-cone '/*' '!README.md' '!UNLICENSE.md'

but then it works as expected.

This even can be used in bootstrapping if you cd $HOME before.

@reduktr
reduktr / Mouse-Accel Fix
Created February 19, 2024 05:33
Mouse Acceleration Fix
This particular guide is targeted at users who have seemingly set all the acceleration profile and dpi to the correct settings, but the mouse still feels slower than windows at the same dpi setting.
The problem here is not with the settings you have, but rather using the wrong settings for the input driver (or library for people who know what this means) that is running your devices.
In Arch Wiki (https://wiki.archlinux.org/index.php/Mouse_acceleration), it listed two different configs for disabling mouse acceleration. For computers not running libinput, the config for /etc/X11/xorg.conf.d/50-mouse-acceleration.conf is as follows:
/etc/X11/xorg.conf.d/50-mouse-acceleration.conf
-----------------------------------------------------------
Section "InputClass"
Identifier "My Mouse"