Skip to content

Instantly share code, notes, and snippets.

View barteqcz's full-sized avatar

Bartek barteqcz

  • Czechia / Poland
View GitHub Profile
-- quit_on_underrun.lua
local mp = require 'mp'
local utils = require 'mp.utils'
-- Path to the mpv log file
local log_file = mp.get_property("log-file") or "mpv.log"
local underrun_message = "Audio device underrun detected."
-- Function to check the log
local function check_log()
@barteqcz
barteqcz / setup.sh
Last active August 26, 2024 17:35
Debloating Fedora KDE spin
#!/bin/bash
if [ $(id -u) -ne 0 ]; then
echo "Please run this script as root or using sudo"
exit
fi
dnf remove akonadi* kmail* kaddress* blivet* anaconda* tiger* korgan* kmines* kmahjongg* kpat* okular* kolourpaint* neochat* kamoso* mediawriter* dragon* elisa-player* kmousetool* filelight* kfind* ibus im-chooser -y
dnf autoremove -y
dnf clean all
@barteqcz
barteqcz / archsb.md
Last active August 21, 2024 14:12
Arch Linux with Secure Boot - not recommended

1. Enter UEFI settings, disable Secure Boot, and clear all its keys

Access the UEFI/BIOS settings on your system, disable the Secure Boot feature and clear all Secure Boot keys to ensure a proper setup.

2. Reinstall GRUB with appropriate settings and regenerate the GRUB configuration file

sudo grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=archlinux --modules="tpm" --disable-shim-lock

If you don't have the TPM2 module, omit --modules="tpm"

sudo grub-mkconfig -o /boot/grub/grub.cfg