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
@kac-
kac- / jow_przekazywanie_part.java
Last active August 29, 2015 14:21
JOW z przekazywaniem
Map<String, Integer> result = new HashMap<String, Integer>();
while (constituencies.size() > 0) {
Iterator<List<Candidate>> ci = constituencies.iterator();
while (ci.hasNext()) {
List<Candidate> l = ci.next();
Collections.sort(l);
Candidate candidate = l.get(0);
if (candidate.acceptor != null && !candidate.acceptor.out) {
candidate.acceptor.votes += candidate.votes;
} else if (candidate.reserve != null && !candidate.reserve.out) {
@kac-
kac- / ppc_monitor.go
Created December 8, 2014 09:56
ppc: connect to node, gather some metricts
package main
import (
"fmt"
"github.com/mably/btcwire"
"log"
"net"
"time"
)
@kac-
kac- / blind_oleg.go
Last active April 10, 2024 09:59
Blind signatures for Bitcoin transactions
package main
import (
"crypto/ecdsa"
"crypto/elliptic"
"crypto/sha256"
"fmt"
"math/big"
)
@kac-
kac- / ukernel.go
Created September 24, 2014 10:35
CheckStakeKernelHash for µ-minter
package main
import (
"bytes"
"encoding/binary"
"errors"
"github.com/conformal/fastsha256"
"math/big"
)

Keybase proof

I hereby claim:

  • I am kac- on github.
  • I am kac (https://keybase.io/kac) on keybase.
  • I have a public key whose fingerprint is 09AF 6358 0E35 A5BC C82F 28DB 3D65 F78E 78CB E723

To claim this, I am signing this object: