Skip to content

Instantly share code, notes, and snippets.

View txhammer68's full-sized avatar
🏠
Free from work

txhammer68

🏠
Free from work
View GitHub Profile
@txhammer68
txhammer68 / unattended updates.md
Last active June 10, 2025 01:04
Setup kubuntu for automated/unattended updates

Setup Kubuntu for automated/unattended updates

For stable desktop PC, make updates more like windows/ios, don't need to deal with discover/app store or apt updates cli

Disable and mask kubuntu apt daily updates to prevent re-activation during updates

sudo systemctl disable apt-daily.timer
sudo systemctl mask apt-daily.timer
sudo systemctl disable apt-daily.service
sudo systemctl mask apt-daily.service
sudo systemctl disable apt-daily-upgrade.timer
sudo systemctl mask apt-daily-upgrade.timer
@txhammer68
txhammer68 / systemd-boot.md
Last active June 2, 2025 03:27
Replace GRUB w/ systemd-boot and UKI for Ubuntu Linux

Replace GRUB boot manager w/ systemd-boot and UKI for Ubuntu Linux

  • Not to use with dual boot windows/ubuntu, stick with grub works better
  • systemd-boot for Ubuntu Linux flavors 24.04 and later
  • Replace grub, speeds up boot time, this is the future of Linux startup
  • Boot options for two kernels at all times; current, previous
  • A Unified Kernel Image (UKI) is a combination of a UEFI boot stub program, a Linux kernel image, an initramfs, and further resources in a single UEFI PE file (device tree, cpu µcode, splash screen, secure boot sig/key, ...). This file can either be directly invoked by the UEFI firmware or through a boot loader.
  • Ubuntu does not have a good wiki on systemd-boot w/ UKI, so I referred to the Arch wiki and adapted for Ubuntu, below are some links i used to develop this guide.
  • systemd-boot loader - grub replacement
  • UKI
@txhammer68
txhammer68 / linux.md
Last active June 9, 2025 04:59
Linux Tips

Linux Tips (Debian Based distros)

Some usefull tips i have collected over the years, use at own risk.

  • Regenerate initramfs kernel sudo update-initramfs -u -k all

  • Users & Groups

    • Add user to group
      sudo usermod -a -G cdrom userName
      sudo usermod -aG vboxsf $USER
@txhammer68
txhammer68 / scoreboard.qml
Last active June 10, 2025 01:08
espn scoreboard
import QtQuick 2.9
import org.kde.plasma.core 2.1
// espn scorebard api
// get favorite team scores for nba/mlb
Rectangle {
id:scoresMain
width:420
height:185
color:"black"
@fay59
fay59 / icloud-album-download.sh
Last active March 10, 2025 13:39
Download entire iCloud shared albums
#!/bin/bash
# requires jq
# arg 1: iCloud web album URL
# arg 2: folder to download into (optional)
function curl_post_json {
curl -sH "Content-Type: application/json" -X POST -d "@-" "$@"
}