Skip to content

Instantly share code, notes, and snippets.

View OneCDOnly's full-sized avatar
🕶️
just geekin' out

OneCD OneCDOnly

🕶️
just geekin' out
  • ... there, behind that sofa!
  • 18:36 (UTC +10:00)
View GitHub Profile
curl ipinfo.io/ip
@OneCDOnly
OneCDOnly / libuLinux_Util.c
Created February 27, 2025 05:02
decompiled libuLinux_Util.so.0.0
/* This file was generated by the Hex-Rays decompiler version 8.4.0.240320.
Copyright (c) 2007-2021 Hex-Rays <[email protected]>
Detected compiler: GNU C++
*/
#include <defs.h>
#include <stdarg.h>
@OneCDOnly
OneCDOnly / binutils-urls.lst
Last active September 12, 2024 20:20
`binutils` IPKs to downgrade for 32kiB pagesize support on ARMv7
http://bin.entware.net/armv7sf-k3.2/archive/ar_2.38-1_armv7-3.2.ipk
http://bin.entware.net/armv7sf-k3.2/archive/binutils_2.38-1_armv7-3.2.ipk
http://bin.entware.net/armv7sf-k3.2/archive/libbfd_2.38-1_armv7-3.2.ipk
http://bin.entware.net/armv7sf-k3.2/archive/libctf_2.38-1_armv7-3.2.ipk
http://bin.entware.net/armv7sf-k3.2/archive/libopcodes_2.38-1_armv7-3.2.ipk
http://bin.entware.net/armv7sf-k3.2/archive/objdump_2.38-1_armv7-3.2.ipk
@OneCDOnly
OneCDOnly / gist:e800f8cdf89f188ecb9f031622b1384a
Created July 24, 2024 06:10
extract from all qpkg files in current directory each into their own directory
for f in *.qpkg; do mkdir $(basename -- "$f" .qpkg); qbuild --extract $f $(basename -- "$f" .qpkg); done
@OneCDOnly
OneCDOnly / gist:353f24427453e86f19f57efd85689e69
Created June 5, 2024 04:14
lock/unlock Plasma "edit mode"
qdbus org.kde.plasmashell /PlasmaShell evaluateScript "lockCorona(true)"
qdbus org.kde.plasmashell /PlasmaShell evaluateScript "lockCorona(false)"
@OneCDOnly
OneCDOnly / mod-qpkg-db.sh
Last active January 29, 2023 07:14
allow an unsigned QPKG to be installed and run in QTS while QTS is configured to disallow this
#!/usr/bin/env bash
# Copyright (C) 2023 OneCD - [email protected]
# This script was written on 2023-01-29. It is intended as a proof-of-concept, rather than a hack.
# Modify the QTS App Center certificate dB, and add an unsigned QPKG as-if it were signed. It adds a QNAP generated certificate and digital signature to the database for the unsigned QPKG.
# Running the code below makes the target QPKG effectively "signed", and allows user to install and run this QPKG with the 'Allow installation of applications without a valid digital signature' App Center option unticked.
@OneCDOnly
OneCDOnly / gist:2ddf36908b17097e670c36367a68015a
Created November 27, 2021 02:01
notes regarding package signing in QTS 5
It turns out, to get rid of the "There is no digital signature" message in App Center, one only has to add a new entry to [/etc/config/nas_sign_qpkg.db] in the 'Certificate' table. Create a new record, with a "qpkg" 'Type', and 'QpkgName' as the internal QPKG name. Reload App Center. Done. No more warning. The QPKG is still not digitally signed but will also not display an error message in App Center.
@OneCDOnly
OneCDOnly / gist:c6faa21b3f5ad53b43f16ac425b0f0e6
Created August 19, 2021 05:32
make all backup NZBs zero bytes
find /media/downloads/sabnzbd/nzb/backup/ -type f -name "*.nzb.*" ! -size 0 -print0 | xargs -0 truncate -s 0
@ishad0w
ishad0w / sources.list
Last active February 10, 2025 00:49
Debian 11 (Bullseye) -- Full sources.list
deb http://deb.debian.org/debian bullseye main contrib non-free
deb-src http://deb.debian.org/debian bullseye main contrib non-free
deb http://deb.debian.org/debian bullseye-updates main contrib non-free
deb-src http://deb.debian.org/debian bullseye-updates main contrib non-free
deb http://deb.debian.org/debian bullseye-backports main contrib non-free
deb-src http://deb.debian.org/debian bullseye-backports main contrib non-free
deb http://security.debian.org/debian-security/ bullseye-security main contrib non-free
@OneCDOnly
OneCDOnly / gist:947404ecd6efe48d763bf5c4b3761665
Created January 3, 2021 03:09
Kate highlighted keywords
# These demonstrate available words for syntax highlighting on Kate (makes it easier to pick a word that stands-out):
# ALERT ATTENTION DANGER HACK SECURITY
# BUG FIXME DEPRECATED TASK TODO TBD WARNING CAUTION NOLINT
# ### NOTE NOTICE TEST TESTING