This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # ----------------------------- | |
| # 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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' \ |
OlderNewer