Skip to content

Instantly share code, notes, and snippets.

View krmxd's full-sized avatar

Kevin Feenstra krmxd

View GitHub Profile
@krmxd
krmxd / extract-rest-specs-v9.js
Created October 19, 2025 07:38
Extract complete api specification for Barracuda CloudGen Firewall v9
(async function() {
const baseUrl = 'https://apidocs.campus.barracuda.com/NGF/9.0';
const endpoints = ["administrative-session-data.json","authentication-logins.json","autovpn.json","backup-daemon.json","box-administrators.json","box-configuration.json","box-services.json","cc.json","cc-configuration.json","cc-firewall-connection-objects.json","cc-firewall-ips.json","cc-firewall-network-objects.json","cc-firewall-rules.json","cc-firewall-service-objects.json","cc-firewall-user-objects.json","cc-firmware-management.json","cc-totp-user-management.json","dhcp-server.json","dynamic-firewall-rules.json","dynamic-network-handling.json","firewall-connection-objects.json","firewall-custom-external-objects.json","firewall-ips.json","firewall-network-objects.json","firewall-rules.json","firewall-service-objects.json","firewall-user-objects.json","firewall-data.json","firmware-management.json","general-data.json","license-activation-and-operative-data.json","log.json","network-activation.json","network-operative-dat
@krmxd
krmxd / Profile.ps1
Last active May 8, 2025 06:27
Powershell profile with simple, yet helpful function to support everyday nerd life
function Get-Func {
return Get-Content $PROFILE | Select-String -Pattern "function\s+([^\s{]+)" | Foreach-Object { $_.Matches.Groups[1].Value }
}
Function nosleep {
$wsh = New-Object -ComObject WScript.Shell
while (1) {
$wsh.SendKeys('{SCROLLLOCK}')
Start-Sleep -seconds 59
}