Skip to content

Instantly share code, notes, and snippets.

@AbeEstrada
AbeEstrada / loudness.sh
Last active October 14, 2024 15:25 — forked from kylophone/loudness.rb
FFmpeg loudnorm filter - dual pass loudness normalization example - http://k.ylo.ph/2016/04/04/loudnorm.html
#!/bin/bash
ffmpeg_bin="ffmpeg" # v7.1
target_il=-16.0
target_lra=11.0
target_tp=-1.0
samplerate="44100"
if [ "$#" -ne 2 ]; then
echo "Usage: $0 input.wav output.wav"
@AbeEstrada
AbeEstrada / wpa_passphrase.rb
Created May 29, 2017 20:28 — forked from ericboehs/wpa_passphrase.rb
Generating a WPA PSK hex key in Ruby
require 'openssl'
ssid = 'Delorean'
passphrase = 'hoverboardsdonotworkonwater'
puts OpenSSL::PKCS5.pbkdf2_hmac_sha1(passphrase, ssid, 4096, 32).unpack("H*").first