Skip to content

Instantly share code, notes, and snippets.

View txhammer68's full-sized avatar
🏠
Working from home

txhammer68

🏠
Working from home
View GitHub Profile
@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 March 6, 2025 23:20
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
Created February 11, 2023 03:01
espn scoreboard
import QtQuick 2.9
import org.kde.plasma.core 2.1
Rectangle {
id:scoresMain
width:420
height:185
color:"black"
// docs https://gist.github.com/akeaswaran/b48b02f1c94f873c6655e7129910fc3b
//property var url1:"https://site.api.espn.com/apis/site/v2/sports/baseball/mlb/teams/18"