Skip to content

Instantly share code, notes, and snippets.

@tzhvh
tzhvh / qr.sh
Created October 29, 2025 14:07
KDialog QR code display
# Generate QR code with UTF8 output and display in msgbox
QR_CODE=$(qrencode -t UTF8 "https://example.com")
kdialog --msgbox "<pre>$QR_CODE</pre>"
@tzhvh
tzhvh / kde_share_installer.sh
Last active November 9, 2025 03:49
Dolphin context menu installer: KDE file share via HTTP with QR code
#!/bin/bash
###############################################################################
# KDE Share via HTTP - Complete Installer (Fedora Edition)
# Creates a KDE context menu entry to share files via ephemeral HTTP server
# with QR code for easy mobile access
#
# Target: Fedora with KDE Plasma
# Features: Lazy sudo, per-command authorization, comprehensive error handling,
# HTTP root path redirect, UFW/firewalld auto-configuration
fix for kernel 6.15 breaking fedora 42 graphical boot on AMD strix point
sudo dracut --regenerate-all --force
sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-7feed8b25a
@tzhvh
tzhvh / cffi.md
Created August 19, 2022 17:15
Running setup.py install for cffi did not run successfully
sudo apt-get install build-essential libssl-dev libffi-dev python-dev
@tzhvh
tzhvh / ensp22H2.md
Last active June 24, 2022 02:48
things i tried before ensp worked again on 22621 aka windows 11 22H2

Getting Hyper-V out of the way

bcdedit /copy {current} /d "Windows Hyper-V disabled"
bcdedit /set {get guid from output of copy command} hypervisorlaunchtype off
restart into it

First error

--------------------------- VirtualBox - Error In supR3HardNtChildPurify --------------------------- <b>supHardenedWinVerifyProcess failed with VERR_SUP_VP_EXE_VS_PROC_NAME_MISMATCH: (rc=-5618)</b>Please try reinstalling VirtualBox.where: supR3HardNtChildPurify what: 5 VERR_SUP_VP_EXE_VS_PROC_NAME_MISMATCH (-5618) - Process Verification Failure: Executable file name and process image name does not match up. --------------------------- OK ---------------------------

@tzhvh
tzhvh / dedoze.md
Created May 10, 2022 16:17
Keep app alive, safe from doze
adb shell
pm grant <package> android.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS
cmd appops set <package> RUN_IN_BACKGROUND ignore
cmd appops set <package> RUN_ANY_IN_BACKGROUND ignore
cmd appops write-settings