Skip to content

Instantly share code, notes, and snippets.

@TiloGit
TiloGit / plex_download_show.py
Last active October 27, 2025 05:04
Download entire Season from Plex with plexapi (tested with plex plus pass account)
#in bash run this for env
#source my-venv/bin/activate
#python
from datetime import datetime
import os
from plexapi.server import PlexServer
baseurl = 'https://50-____removed____2a1922.plex.direct:32400'
token = 'X---removed---Kb'
plex = PlexServer(baseurl, token)
@TiloGit
TiloGit / new_cert.ps1
Created December 19, 2025 00:38
Create a cert to upload to Entra Enterprise App.
# -----------------------------
# VARIABLES
# -----------------------------
$myName = "myAppCert48"
$certName = "CN=$myName"
$certValidity = 48 # months
$certPath = "Cert:\CurrentUser\My"
$pfxOutput = "C:\temp\$myName.pfx"
$cerOutput = "C:\temp\$myName.cer"
$pfxPassword = Read-Host "Enter PFX password" -AsSecureString
@TiloGit
TiloGit / cmod-rest-api-test.sh
Last active June 18, 2026 17:54
cmod rest api test CMODSharedKeyV2 and CMODSharedKey
#!/bin/bash
CMOD_HOST="http://vfcmod105.mydom.com:9085"
ACCESS_KEY="odrestapi1-R____2A"
SECRET_KEY="iH_____pQS"
# ── CMODSharedKey (V1 - includes server URL) ──────────────
cmod_curl_v1() {
local METHOD="$1" URI="$2" BODY="${3:-}"
local DATE=$(date -u "+%Y-%m-%dT%H:%M:%SZ")
local STS=$(printf '%s\n%s\n%s\n%s\n%s' \