Skip to content

Instantly share code, notes, and snippets.

@jeremiahn
jeremiahn / TeamDynamixAPI-Authenticate.ps1
Created December 23, 2025 18:00 — forked from jdmills-edu/TeamDynamixAPI-Authenticate.ps1
A PowerShell script that authenticates to the Team Dynamix API and returns a JSON Web Token. A prerequisite for any further queries to the TDX API.
$url = "https://yourdomain.teamdynamix.com/TDWebApi/api"
$action = "/auth/loginadmin"
$endpoint = $url+$action
$request = '{
"BEID": "YourTDXAPIBEID",
"WebServicesKey": "YourWebServicesKey"
}'
$jwt = Invoke-RestMethod -Method Post -Uri $endpoint -Body $request -ContentType "application/json; charset=utf-8"
#!/bin/bash
# MacBook Lid Angle Sensor Diagnostic Script
# This script helps identify the lid angle sensor on different MacBook models
echo "=============================================="
echo "MacBook Lid Angle Sensor Diagnostic Tool"
echo "=============================================="
echo ""