Skip to content

Instantly share code, notes, and snippets.

View txhammer68's full-sized avatar
🍻
Permanent Vacation

TxHammer txhammer68

🍻
Permanent Vacation
  • DigiTech
  • H-Town
View GitHub Profile
import QtQuick
import QtNetwork
Item {
id:getjsonDataMain // scripts to get json data
//https://query1.finance.yahoo.com/v8/finance/spark?symbols=^DJI,^IXIC,^GSPC,CL=F,GC=F,^TNX&range=1d&interval=15m&indicators=close&includeTimestamps=false&includePrePost=false&corsDomain=finance.yahoo.com&.tsrc=finance&format=json
// us treas rates
// https://api.fiscaldata.treasury.gov/services/api/fiscal_service/v2/accounting/od/avg_interest_rates&filter=record_date:gte:2026-01-01
@txhammer68
txhammer68 / kdeWidgetUpdates.md
Last active February 21, 2026 19:41
Auto Update KDE Plasma Widgets/Themes

Auto-Update KDE Plasma Widgets/Themes

  • Thought of a way to auto update KDE Plasma Widgets. I don't use discover to update my system so this seemed a good way of providing an alternate way of delivering updates for plasma widgets/themes. Every widget or plasma theme uses metadata.json to provide info about the widget/theme. In the metadata.json file there is a version key, use this to check for a new version. Put this in your config setup or main.qml so that when the widget first runs it checks for updates, could auto update or prompt user to update. Only tested on github, not sure for gitlab or other platforms
property string updateURL:"https://raw.githubusercontent.com/txhammer68/pirateWeather/refs/heads/main/metadata.json"
property string updateCMD:"git clone https://github.com/TxHammer68/pirateWeather /tmp/pirateWeather/ && kpackagetool6 -t Plasma/Applet -u /tmp/pirateWeather/"
property double currentVersion:Plasmoid.metaData.version
property double updateVersion:0.0
property bool updateAv
@txhammer68
txhammer68 / linux.md
Last active July 23, 2026 04:24
Linux Optimizations

Useful tips for optimizing Linux CachyOs

For NVME SSD

For Linux systems using CachyOS and XFS, a 4K native (4Kn) NVMe sector size is generally superior to emulated 512-byte (512e) blocks. It reduces the overhead of firmware translation and aligns perfectly with the standard 4K filesystem blocks of XFS, which maximizes I/O bandwidth and minimizes latency.

  • Must perform this before installing/creating partitions/formatting w/ CachyOS installer

sudo pacman -S nvme-cli

  • Show options verify 4k blocks available