Skip to content

Instantly share code, notes, and snippets.

@vttc08
vttc08 / activate.bat
Created February 23, 2023 02:47
make your laptop download nzbget, qbittorrent, wget, internetdownload manager even with your laptop lid closed and tucked away, this example is nzbget
:: this script will activate your laptop to download and change power settings so it will continue to download with the lid closed
:: change the lid closure action do nothing
powercfg /setACvalueIndex scheme_current sub_buttons lidAction 0
powercfg /setDCvalueIndex scheme_current sub_buttons lidAction 0
:: disable sleep timeout
powercfg /Change standby-timeout-ac 0
powercfg /Change standby-timeout-dc 0
@vttc08
vttc08 / policies.json
Last active July 8, 2026 06:28
Firefox Basic policies.json For First Time Setup
{
"policies": {
"ExtensionSettings": {
"uBlock0@raymondhill.net": {
"installation_mode": "force_installed",
"install_url": "https://addons.mozilla.org/firefox/downloads/latest/ublock-origin/latest.xpi"
}
},
"IPProtectionAvailable": false,
"NoDefaultBookmarks": true,
@vttc08
vttc08 / gamesave.ps1
Created August 14, 2024 22:44
Powershell Script Template for Backing Up Game Saves
# Global Configuration
$server=$(cat $HOME/gamesave)
# Common places
$documents = $([Environment]::GetFolderPath("MyDocuments"))
$downloads = $(New-Object -ComObject Shell.Application).NameSpace('shell:Downloads').Self.Path
$desktop = $([Environment]::GetFolderPath("Desktop"))
$appdata = $env:appdata # Roaming
$localappdata = $env:localappdata # Local
@vttc08
vttc08 / configuration.yml
Last active October 16, 2024 04:50
Authelia rules and configuration file
theme: "auto"
log:
level: "debug"
totp:
disable: false
algorithm: "SHA1"
digits: 6
period: 30
@vttc08
vttc08 / update.sh
Created October 23, 2024 22:17
Update sponsorblock from a faster mirror manually.
#!/bin/bash
# Manually update the sponsorTimes database via sb.minibomba.pro which is a much faster and up to date server. The official SponsorBlock rsync is slow and also incremental updates do not work.
# The full database import that is the most accurate takes 500-800s (excluding the download), this method takes less than 15s and it only compromises the accuracy of segments that has been updated prior to the last full import.
DOCKER_CT="postgres-sb-mirror"
THEPATH=~/docker/sponsorblock
URL="https://sb.minibomba.pro/mirror/sponsorTimes.csv.zst"
echo $(date)
@vttc08
vttc08 / compose.yml
Last active June 12, 2025 04:48
Apache guacamole configuration
# Credit https://github.com/boschkundendienst/guacamole-docker-compose
services:
# guacd
guacd:
container_name: guacd
image: guacamole/guacd
restart: unless-stopped
environment:
@vttc08
vttc08 / v2ray-client-android.md
Last active June 9, 2026 07:26
v2ray-tutorial

V2RayNG is probably one of the easier client to use, it requires sideloading.

Endpoint Setup

On the main interface, click the + icon, and Import from QRcode On your 3x-UI inbounds, click the + icon on your newly created endpoint to expand it, the click the QR Code icon. Use your camera to scan it.

image

If you skipped the external proxy step in 3X-UI

  • click the triple circle icon next to your imported endpoint then Edit
@vttc08
vttc08 / compose.yml
Created April 27, 2026 21:10
Proxyt Tailscale Sidecar Configuration
# ---
# TS_CERT_DOMAIN=proxyt.yourtailnet.ts.net docker compose up
# ---
services:
proxyt:
image: ghcr.io/jaxxstorm/proxyt:latest
container_name: proxyt
# ports:
# - 8080:8080
@vttc08
vttc08 / jf2yamtrack.py
Created June 3, 2026 23:02
jf2yamtrack.py
import http.client
import json
import argparse
import csv
import datetime
from urllib.parse import urlencode
from dateutil import parser as dateparser
parser = argparse.ArgumentParser()
parser.add_argument("--jellyfin", default="http://localhost:8096", help="Base URL for Jellyfin server, e.g. http://localhost:8096")