Skip to content

Instantly share code, notes, and snippets.

rodbourn — 01/14/2024 11:10 AM (speedify discord)
Some more awesome sauce:
making the following kernel tweaks has helped dramatically on the uplink bonding... i have a 1000/1000 fiber, and 1000/35 cable connection, and the uplink reaching near 1000 is the challenge (first world problems, but a fun problem to look at!).
net.ipv4.tcp_congestion_control=bbr
net.ipv4.tcp_slow_start_after_idle=0
# Increase TCP maximum buffer size
import os
import argparse
import subprocess
# Parse command-line arguments
parser = argparse.ArgumentParser(description='Recursively delete duplicate directories in one directory using rclone')
parser.add_argument('dir1', help='The first directory to compare')
parser.add_argument('dir2', help='The second directory to compare')
parser.add_argument('--dry-run', action='store_true', help='Do a dry run (do not actually delete any directories)')
parser.add_argument('--max-depth', type=int, default=1, help='The maximum depth to search for duplicate directories (default: 1)')
import os
import shutil
import sys
def compare_and_delete_duplicates(dir1, dir2):
"""
Recursively compare files in dir1 and dir2, and delete duplicates in dir2.
"""
# Get a list of all files in dir1 and dir2
dir1_files = [os.path.join(dir1, f) for f in os.listdir(dir1)]
@keithah
keithah / log.txt
Last active February 20, 2023 04:19
2023/02/19 14:58:01 DEBUG : rclone: Version "v1.62.0-beta.6735.d4d7a6a55" starting with parameters ["rclone" "-L" "-vv" "--stats" "10s" "--ignore-existing" "copy" "." "d:/tmp/ads" "--log-file=./log.txt"]
2023/02/19 14:58:01 DEBUG : Creating backend with remote "."
2023/02/19 14:58:01 DEBUG : Using config file from "/home/keith/.config/rclone/rclone.conf"
2023/02/19 14:58:01 DEBUG : local: detected overridden config - adding "{12rtk}" suffix to name
2023/02/19 14:58:01 DEBUG : fs cache: renaming cache item "." to be canonical "local{12rtk}:/home/keith/tmp/ads"
2023/02/19 14:58:01 DEBUG : Creating backend with remote "d:/tmp/ads"
2023/02/19 14:58:02 DEBUG : Dropbox root '': Using root namespace "3111542641"
2023/02/19 14:58:02 DEBUG : fs cache: renaming cache item "d:/tmp/ads" to be canonical "d:tmp/ads"
2023/02/19 14:58:02 DEBUG : Dropbox root 'tmp/ads': Waiting for checks to finish
2023/02/19 14:58:02 DEBUG : Dropbox root 'tmp/ads': Waiting for transfers to finish
2023/02/19 12:06:26 DEBUG : rclone: Version "v1.61.1" starting with parameters ["rclone" "-L" "-vv" "--stats" "10s" "--ignore-existing" "copy" "." "d:/tmp/ads" "--log-file=log.txt"]
2023/02/19 12:06:26 DEBUG : Creating backend with remote "."
2023/02/19 12:06:26 DEBUG : Using config file from "/home/keith/.config/rclone/rclone.conf"
2023/02/19 12:06:26 DEBUG : local: detected overridden config - adding "{12rtk}" suffix to name
2023/02/19 12:06:26 DEBUG : fs cache: renaming cache item "." to be canonical "local{12rtk}:/home/keith/tmp/ads"
2023/02/19 12:06:26 DEBUG : Creating backend with remote "d:/tmp/ads"
2023/02/19 12:06:27 DEBUG : Dropbox root '': Using root namespace "3111542641"
2023/02/19 12:06:27 DEBUG : fs cache: renaming cache item "d:/tmp/ads" to be canonical "d:tmp/ads"
2023/02/19 12:06:27 DEBUG : Dropbox root 'tmp/ads': Waiting for checks to finish
2023/02/19 12:06:27 DEBUG : Dropbox root 'tmp/ads': Waiting for transfers to finish
2023/02/19 12:06:26 DEBUG : rclone: Version "v1.61.1" starting with parameters ["rclone" "-L" "-vv" "--stats" "10s" "--ignore-existing" "copy" "." "d:/tmp/ads" "--log-file=log.txt"]
2023/02/19 12:06:26 DEBUG : Creating backend with remote "."
2023/02/19 12:06:26 DEBUG : Using config file from "/home/keith/.config/rclone/rclone.conf"
2023/02/19 12:06:26 DEBUG : local: detected overridden config - adding "{12rtk}" suffix to name
2023/02/19 12:06:26 DEBUG : fs cache: renaming cache item "." to be canonical "local{12rtk}:/home/keith/tmp/ads"
2023/02/19 12:06:26 DEBUG : Creating backend with remote "d:/tmp/ads"
2023/02/19 12:06:27 DEBUG : Dropbox root '': Using root namespace "3111542641"
2023/02/19 12:06:27 DEBUG : fs cache: renaming cache item "d:/tmp/ads" to be canonical "d:tmp/ads"
2023/02/19 12:06:27 DEBUG : Dropbox root 'tmp/ads': Waiting for checks to finish
2023/02/19 12:06:27 DEBUG : Dropbox root 'tmp/ads': Waiting for transfers to finish
![tvdb](https://user-images.githubusercontent.com/6093716/184595711-205eda5c-2a09-4520-82cd-7642713e2fbe.svg)
Hello Kodi community. This is Scott, the founder of TheTVDB. There has been some confusion related to the availability of our API and the various Kodi scrapers for TheTVDB. Hopefully I can provide some clarity.
TheTVDB was originally written in a weekend in 2004, with features and data slowly expanding with varying degrees of thoughtfulness. Inevitably, some mistakes were made and the industry has changed considerably in the years since. Through a complete restructuring of data a few years ago, we attempted to not only correct past mistakes, but also become more flexible in how we accommodate edge cases and non-traditional series.
This rewrite forced us to create a new API that correctly represented the new data structure and was built using more scalable technology. We included a transformation layer that continued to allow the old legacy APIs to function using the new data structure, but it takes
This file has been truncated, but you can view the full file.
Sep 15, 2019 10:22:58.475 [0x7fe066b71700] INFO - Plex Media Server v1.16.7.1597-a6e223f7f - Ubuntu PC x86_64 - build: linux-x86_64 debian - GMT -06:00
Sep 15, 2019 10:22:58.475 [0x7fe066b71700] INFO - Linux version: 19.04 (Disco Dingo), language: en-US
Sep 15, 2019 10:22:58.475 [0x7fe066b71700] INFO - Processor Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz
Sep 15, 2019 10:22:58.475 [0x7fe066b71700] INFO - /usr/lib/plexmediaserver/Plex Media Server
Sep 15, 2019 10:22:58.474 [0x7fe0678e4b80] DEBUG - BPQ: [Idle] -> [Starting]
Sep 15, 2019 10:22:58.475 [0x7fe0678e4b80] DEBUG - FeatureManager: Using cached data for features list
Sep 15, 2019 10:22:58.475 [0x7fe0678e4b80] DEBUG - Opening 20 database sessions to library (com.plexapp.plugins.library), SQLite 3.26.0, threadsafe=1
Sep 15, 2019 10:22:58.490 [0x7fe0678e4b80] DEBUG - Running migrations. (EPG 0)
Sep 15, 2019 10:22:58.536 [0x7fe0678e4b80] DEBUG - ChangestampAllocator: initialized to 93476402
Sep 15, 2019 10:22:58.536 [0x7fe0678e4b80] DEBUG - Opening 2 database s
Sep 06, 2018 10:34:11.896 [0x7f1e2ebfe700] INFO - Plex Media Server v1.13.5.5332-21ab172de - ubuntu PC x86_64 - build: linux-ubuntu-x86_64 ubuntu - GMT 00:00
Sep 06, 2018 10:34:11.896 [0x7f1e2ebfe700] INFO - Linux version: 4.15.0-33-generic (#36-Ubuntu SMP Wed Aug 15 16:00:05 UTC 2018), language: en-US
Sep 06, 2018 10:34:11.896 [0x7f1e2ebfe700] INFO - Processor Intel(R) Core(TM) i7-7567U CPU @ 3.50GHz
Sep 06, 2018 10:34:11.896 [0x7f1e2ebfe700] INFO - /usr/lib/plexmediaserver/Plex Media Server
Sep 06, 2018 10:34:11.896 [0x7f1e3ae15d40] DEBUG - BPQ: [Idle] -> [Starting]
Sep 06, 2018 10:34:11.896 [0x7f1e3ae15d40] VERBOSE - BPQ: delaying processing 120 second(s)
Sep 06, 2018 10:34:11.897 [0x7f1e3ae15d40] DEBUG - Opening 20 database sessions to library (com.plexapp.plugins.library), SQLite 3.13.0, threadsafe=1
Sep 06, 2018 10:34:11.936 [0x7f1e3ae15d40] DEBUG - Running migrations.
Sep 06, 2018 10:34:12.014 [0x7f1e3ae15d40] DEBUG - ChangestampAllocator: initialized to 2202427
Sep 06, 2018 10:34:12.014 [0x7f1e3ae15d4
Apr 26, 2018 19:04:50.770 [21348] INFO - Plex Media Server v1.12.3.4901-42fe0582a - Technicolor CM-7600 dwt765cha - build: android-api21-armv7 unknown - GMT -07:00
Apr 26, 2018 19:04:50.770 [21348] INFO - Android version: 7.0, language: en-US
Apr 26, 2018 19:04:50.771 [21348] INFO - Processor Arm
Apr 26, 2018 19:04:50.759 [21342] DEBUG - BPQ: [Idle] -> [Starting]
Apr 26, 2018 19:04:50.759 [21342] VERBOSE - BPQ: delaying processing 120 second(s)
Apr 26, 2018 19:04:50.768 [21342] ERROR - Unable to open named mutex 9334581e-7251-4ef7-a8ec-5bfe8e89ff68 with option 1: No such file or directory
Apr 26, 2018 19:04:50.770 [21342] DEBUG - Opening 20 database sessions to library (com.plexapp.plugins.library), SQLite 3.13.0, threadsafe=1
Apr 26, 2018 19:04:51.128 [21342] DEBUG - Running migrations.
Apr 26, 2018 19:04:51.133 [21342] DEBUG - ChangestampAllocator: initialized to 8
Apr 26, 2018 19:04:51.133 [21342] DEBUG - Opening 2 database sessions to library (com.plexapp.plugins.library.blobs), SQLite 3.13.0, threadsafe=