Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
# Must run as root
if [[ $EUID -ne 0 ]]; then
echo "Please run as root (sudo ./disable-security.sh)"
exit 1
fi
echo "[+] Disabling password complexity requirements..."
@Krak8
Krak8 / update.fish
Created February 13, 2026 01:29
This is a fish function which allows updating all the packages with single command
function log_clean
set logfile $argv[1]
while read -l line
echo $line
echo $line | string replace -ra '\x1B\[[0-?]*[ -/]*[@-~]' '' >> $logfile
end
end
function update
@Krak8
Krak8 / boot-windows.sh
Last active January 19, 2026 14:15
Boot into windows with single click from linux
#!/usr/bin/bash
# Run this when using this script for 1st time
# echo "%wheel ALL=(root) NOPASSWD: /usr/sbin/efibootmgr" | sudo tee /etc/sudoers.d/efibootmgr-config
# Look up the boot number for Windows in the EFI records
boot_number=$(echo $(efibootmgr) | grep -Po "(?<=Boot)\S{4}(?=( |\* )Windows)")
# Check that Windows EFI entry was found
if [ -z "$boot_number" ]; then