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 d in $(ls -d */); do cd $d; qbuild; cd ..; 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
for s in /tmp/screens/S-admin/*; do screen -r $(basename $s); 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
$HOME/.config/mimeapps.list | |
[Added Associations] | |
inode/directory=org.kde.dolphin.desktop;kde4-kfind.desktop;baobab.desktop;k4dirstat.desktop; |
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
sudo apt install software-properties-common dirmngr gnupg-agent | |
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys AD5F235DF639B041 | |
echo 'deb http://ppa.launchpad.net/alessandro-strada/ppa/ubuntu xenial main' | sudo tee /etc/apt/sources.list.d/alessandro-strada-ubuntu-ppa.list >/dev/null | |
sudo apt update | |
sudo apt install google-drive-ocamlfuse |
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
packages=($(grep '^\[.*\]$' /etc/config/qpkg.conf | sed 's|[][]||g')) | |
for package in ${packages[*]}; do setcfg $package Enable FALSE -f /etc/config/qpkg.conf; 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
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
sudo apt install gem ruby ruby-dev | |
sudo gem install jekyll bundler jekyll-redirect-from | |
cd ~/documents/SABnzbd\ wiki/sabnzbd.github.io/ | |
jekyll serve |
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
#!/usr/bin/env bash | |
# Copyright (C) 2023 OneCD - one.cd.only@gmail.com | |
# 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
find /media/downloads/sabnzbd/nzb/backup/ -type f -name "*.nzb.*" ! -size 0 -print0 | xargs -0 truncate -s 0 |
OlderNewer