Skip to content

Instantly share code, notes, and snippets.

@kac-
kac- / README.md
Created June 9, 2023 12:40 — forked from keiya/README.md
How to broadcast to Icecast2 by using ffmpeg (FLAC,Opus,Vorbis,AAC,MP3/Windows, Mac)

FFMpeg to Icecast2 Streaming Samples

Examples usage of various codecs with FFMpeg.

Samples

  • flac.sh : An Icecast Source Client
    • for Windows (Cygwin is required)
    • and macOS (brew install ffmpeg)
  • another_examples.sh : Samples
  • FFMpeg can push to Icecast2 in various formats: Opus/Vorbis/AAC/MP3
@kac-
kac- / gpg-ssh-setup.md
Created September 10, 2021 13:53 — forked from mcattarinussi/gpg-ssh-setup.md
A setup guide to use a personal gpg key for ssh authentication

GPG - SSH setup

Generating the master key

Here we create the master key. We want only Certify capability: we use the master key only to create the subkeys, Sign - Encrypt - Authenticate capabilities will be assigned to the subkeys.

Run the following command to start the master key generation process. Select the set your own capabilities creation process (type 8)

  ▶ gpg --full-generate-key --expert

gpg (GnuPG) 2.2.9; Copyright (C) 2018 Free Software Foundation, Inc.

@kac-
kac- / wifi-forget.ps1
Created September 27, 2018 12:37 — forked from rleopold/wifi-forget.ps1
a quick powershell script to make forgetting wifi networks easier
$networks = netsh wlan show profiles | select-string 'All User Profile'
if($networks.Count -gt 0) {
$(foreach ($item in $networks) {
$item.Line.Split(':')[1].Trim()
}) | Out-GridView -Title 'Select one or more neowrks to forget' -OutputMode Multiple |
foreach {
netsh wlan delete profile name = "$_"
}
}
@kac-
kac- / clean_audio.sh
Created January 21, 2017 13:00 — forked from devoncrouse/clean_audio.sh
Using Sox (http://sox.sourceforge.net) to remove background noise and/or silence from audio files (individually, or in batch).
# Create background noise profile from mp3
/usr/bin/sox noise.mp3 -n noiseprof noise.prof
# Remove noise from mp3 using profile
/usr/bin/sox input.mp3 output.mp3 noisered noise.prof 0.21
# Remove silence from mp3
/usr/bin/sox input.mp3 output.mp3 silence -l 1 0.3 5% -1 2.0 5%
# Remove noise and silence in a single command