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 = "[email protected]"
$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"
______ __ _____