Skip to content

Instantly share code, notes, and snippets.

# Define AppId, secret and scope, your tenant name and endpoint URL
$ClientID = ''
$ClientSecret = ''
$tenantDomain = "domain.onmicrosoft.com"
$emailSender = "shared@domain.com"
$emailRecipient = $emailSender
$emailSubject = "Email sent via GraphAPI"
$emailBody = "<h1>Incoming Email</h1>`n"
function Get-WebSSLExpirationDate {
[OutputType([byte[]])]
PARAM (
[Uri]$Uri
)
if (-Not ($uri.Scheme -eq "https")) {
Write-Error "You can only get keys for https addresses"
@memphisraynz
memphisraynz / code-server.sh
Last active February 4, 2025 23:41
vscode-server
#!/usr/bin/env bash
# Copyright (c) 2021-2025 tteck
# Author: tteck (tteckster)
# License: MIT
# https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
function header_info {
cat <<"EOF"
______ __ _____
2026-06-09T22:22:51.456Z camera:Front Door info [ReolinkBaichuanApi] event watchdog: subscription inactive, attempting auto-recovery (attempt #14, next backoff 300s)
2026-06-09T22:19:28.283Z backchannel info [DedicatedTalk] Session released: talk:talk-03100c24-ea53-43ee-85fa-4084e0928045:ch0:1781043538018 [sessions: 2 active (general, streaming:ch0)]
2026-06-09T22:19:28.130Z backchannel info [DedicatedTalk] Idle timeout (30000ms), stopping session: talk:talk-03100c24-ea53-43ee-85fa-4084e0928045:ch0:1781043538018
2026-06-09T22:19:28.035Z camera:Front Door warn [createNativeStream] stream close → closed channel=0 profile=ext
2026-06-09T22:19:28.020Z rtsp:Front Door:ext info [rebroadcast] native stream stopping profile=ext channel=0 clients=0
2026-06-09T22:18:58.131Z backchannel info [BaichuanRtspBackchannelServer] << 200 OK client=172.19.0.2:47860 cseq=4 [Session=talk_1781043538017_oos3nw]
2026-06-09T22:18:58.131Z backchannel info [BaichuanRtspBackchannelServer] TEARDOWN client=172.19.0.2:47860 (no active ses