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 / jellyfinActivity.py
Last active January 23, 2025 07:29
Jellyfin Active Keep Awake
#!/usr/bin/python3
import json
import requests
import os
## Interrupt PC sleep/suspend mode if jellyfin has active viewers
## simple check of jellyfin activity log
## create a systemd/cron timer once an hour to run this script
## if running it will simulate a mouse movement, which will keep the system from entering suspend/sleep mode for another hour
## See this thread for background info
@txhammer68
txhammer68 / gmail.qml
Created August 29, 2024 19:56
qml webengine
import QtQuick 2.9
import QtQuick.Controls 2.5
import org.kde.plasma.core 2.1
import QtWebEngine 1.9
// g-mail suite workspace app using qt webview
// load each app in a seperate webview for fast switching views
// TO-DO
// shortcut keys to switch views
@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"