Skip to content

Instantly share code, notes, and snippets.

@hg
hg / run.sh
Last active August 15, 2020 05:23
asus ze500kg bloatware
#!/bin/sh
set -e
if [ $EUID -ne 0 ] then
echo >&2 'run as root'
exit 1
fi
mount -o remount,rw /system
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\qbittorrent.exe]
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\qbittorrent.exe\PerfOptions]
"CpuPriorityClass"=dword:00000001
"IoPriority"=dword:00000000
"PagePriority"=dword:00000001
#include <filesystem>
#include <iostream>
namespace fs = std::filesystem;
namespace {
void PrintUsage(const wchar_t *exePath) {
std::wcout << L"usage: " << exePath
<< L"watchlist_dir source_dir0 [source_dir1 ...]";