Skip to content

Instantly share code, notes, and snippets.

View pteich's full-sized avatar

Peter pteich

View GitHub Profile
@yohhoy
yohhoy / aac_parser.py
Last active March 19, 2025 19:19
Parse AAC/ADTS header
#!/usr/bin/env python3
import sys
import struct
if len(sys.argv) < 2:
print("Usage: aac_parer.py <target.aac>")
exit()
aacfile = open(sys.argv[1], 'rb')
frame_no = 1
@ePirat
ePirat / spec.md
Last active December 19, 2024 19:57
Icecast Protocol specification

Icecast protocol specification

What is the Icecast protocol?

When speaking of the Icecast protocol here, actually it's just the HTTP protocol, and this document will explain further how source clients need to send data to Icecast.

HTTP PUT based protocol

Since Icecast version 2.4.0 there is support for the standard HTTP PUT method. The mountpoint to which to send the data is specified by the URL path.

package main
import (
"io"
"log"
"os"
"os/exec"
"io/ioutil"
"bytes"
)
package main
import (
"net/http"
"database/sql"
"fmt"
"log"
"os"
)
@michaljemala
michaljemala / tls-client.go
Last active May 5, 2025 05:07
SSL Client Authentication Golang sample
package main
import (
"crypto/tls"
"crypto/x509"
"flag"
"io/ioutil"
"log"
"net/http"
)