This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for f in *.qpkg; do md5sum $f > $f.md5; done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for f in *.qpkg; do mkdir $(basename -- "$f" .qpkg); qbuild --extract $f $(basename -- "$f" .qpkg); done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
qdbus org.kde.plasmashell /PlasmaShell evaluateScript "lockCorona(true)" | |
qdbus org.kde.plasmashell /PlasmaShell evaluateScript "lockCorona(false)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find /media/downloads/sabnzbd/nzb/backup/ -type f -name "*.nzb.*" ! -size 0 -print0 | xargs -0 truncate -s 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
QTS 4.5.1.1495 | |
Example looks like: | |
"Operating_Status = 4:0:41309:0" | |
first field: 4 if QPKG has been stopped (using the qpkg_service utility) and 3 if started | |
second field: always 0 | |
third field: NAS uptime in seconds when this entry was last updated | |
fourth field: always 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
target_pathfile="$1" | |
target_func='' | |
for target_func in $(grep '()$' "$target_pathfile" | grep -v '=\|\$' | sed 's|()||g'); do | |
[[ $(grep -ow "$target_func" < "$target_pathfile" | wc -l) -eq 1 ]] && echo "$target_func()" | |
done |
NewerOlder