Skip to content

Instantly share code, notes, and snippets.

View omanikhi's full-sized avatar

Omid Manikhi omanikhi

View GitHub Profile
@rijieli
rijieli / Download Twitter Spaces Audio.md
Last active November 13, 2024 23:13
Download Twitter Spaces Audio By URL

python -m venv .venv

source .venv/bin/activate

pip install m3u8downloader

downloadm3u8 -o foo.mp4 spaces_m3u8_url

ffmpeg -i foo.mp4 -b:a 192K -vn bar.mp3

@unreal4u
unreal4u / 50-httpd-php.conf
Last active February 19, 2022 12:00
Filter for logstash for access and error logs generated by apache2.(2|4) and php7
filter {
# Analyze access log
if [fields][type] == "apache-access" {
# First part: get every common message
grok {
match => { "message" => "^%{IP:[apache2][access][remote_ip]} %{USER:ident} %{USER:auth} \[%{HTTPDATE:timestamp}\] " }
overwrite => "message"
}
# Get the specifics