Skip to content

Instantly share code, notes, and snippets.

@JanWerder
JanWerder / normalizeAllSoundinFolder.ps1
Created November 8, 2021 13:50
Powershell: Normalize all OPUS files in a folder
//Uses Powershell & ffmpeg
Get-ChildItem $args[0] -Filter *.opus |
Foreach-Object {
ffmpeg -y -i "$($_.FullName)" -af loudnorm "$($_.FullName)._.opus"
Move-Item -Force -Path "$($_.FullName)._.opus" -Destination "$($_.FullName)"
}
// Decodes a BOBF binary key to a HEX String
decodeBOBFKey: function (str) {
const raw = atob(str);
let result = '';
for (let i = 0; i < raw.length; i++) {
const hex = raw.charCodeAt(i).toString(16);
result += (hex.length === 2 ? hex : '0' + hex);
}
return result.toUpperCase();
}
- Rule 1: Allow
# EU
(ip.geoip.country ne "AT") or
(ip.geoip.country ne "BE") or
(ip.geoip.country ne "BG") or
(ip.geoip.country ne "HR") or
(ip.geoip.country ne "CY") or
(ip.geoip.country ne "CZ") or
(ip.geoip.country ne "DK") or