Skip to content

Instantly share code, notes, and snippets.

View SuperLangdon's full-sized avatar
🎲
Gambling

Langdon Lin SuperLangdon

🎲
Gambling
View GitHub Profile
@SuperLangdon
SuperLangdon / cloudinit.sh
Created April 13, 2023 15:42
Configuring SSH + Password Login for Oracle Cloud Instances using Cloudinit
#!/bin/bash
echo root:password |sudo chpasswd root
sudo sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/g' /etc/ssh/sshd_config;
sudo sed -i 's/PasswordAuthentication no/PasswordAuthentication yes/g' /etc/ssh/sshd_config;
sudo service sshd restart
@SuperLangdon
SuperLangdon / convert_all_dff_to_flac.ps1
Created October 15, 2025 12:49
The script I use to process DSD albums.
Get-ChildItem -Filter "*.dff" | ForEach-Object {
$outputName = $_.Name -replace '\.dff$', '.flac'
.\ffmpeg -i "$($_.Name)" -af "aresample=resampler=soxr:osr=176400:dither_method=none" -sample_fmt s32 -c:a flac -compression_level 8 "$outputName"
}