Skip to content

Instantly share code, notes, and snippets.

@CarstenG2
CarstenG2 / default.py
Created February 11, 2026 10:50
xShip: download manager support (JD1, JD2, MyJD, PyLoad) - all new + modified files
# 2023-05-10
# edit 2025-06-12
import sys, json
from resources.lib import control
params = dict(control.parse_qsl(control.urlsplit(sys.argv[2]).query))
action = params.get('action')
@CarstenG2
CarstenG2 / resources--lib--gui--guiElement.py
Created February 11, 2026 08:50
xStream v2026.01.21 - Python 3.12+ fixes + startup optimization + pyaes import fix
# -*- coding: utf-8 -*-
# Python 3
from resources.lib.tools import cParser, cUtil
from resources.lib.config import cConfig
from xbmc import LOGERROR, log
from os import path
class cGuiElement:
'''
@CarstenG2
CarstenG2 / __init__.py
Created February 11, 2026 08:49
xShip v2026.01.18 - Python 3.12+ fixes + critical Python 3 bug fixes + super_meta fix
import os.path
import importlib
import importlib.util
import pkgutil
from resources.lib import log_utils
try:
@CarstenG2
CarstenG2 / gist:162ca553f9b5096499a1cc34fb88397b
Last active July 29, 2025 12:15
Powershell-Code to force a reconnect on an AVM Fritz.Box
# reset Internet-Connection on fritz.box to get a new public IP:
cls
Remove-Variable * -ea 0
Add-Type -AssemblyName System.Net.Http
$handler = [System.Net.Http.HttpClientHandler]::new()
$ignoreCerts = [System.Net.Http.HttpClientHandler]::DangerousAcceptAnyServerCertificateValidator
$handler.ServerCertificateCustomValidationCallback = $ignoreCerts
$client = [System.Net.Http.HttpClient]::new($handler)