Skip to content

Instantly share code, notes, and snippets.

View Iman's full-sized avatar
💭
Busy Bee

Iman Samizadeh Iman

💭
Busy Bee
View GitHub Profile
@Iman
Iman / http2_apache2_ubuntu18.04.md
Created January 23, 2022 01:10 — forked from GAS85/http2_apache2_ubuntu18.04.md
How to Enable HTTP/2 in Apache 2.4 on Ubuntu 18.04

Requirements

  • A self-managed VPS or dedicated server with Ubuntu 18.04 running Apache 2.4.xx.
  • A registered domain name with working HTTPS (TLS/SSL). HTTP/2 only works alongside HTTPS because most browsers, including Firefox and Chrome, don’t support HTTP/2 in cleartext (non-TLS) mode.

Step 1: Install Apache2

@Iman
Iman / m3u8-to-mp4.md
Created October 12, 2021 19:36 — forked from tzmartin/m3u8-to-mp4.md
m3u8 stream to mp4 using ffmpeg

1. Copy m3u8 link

Alt text

2. Run command

echo "Enter m3u8 link:";read link;echo "Enter output filename:";read filename;ffmpeg -i "$link" -bsf:a aac_adtstoasc -vcodec copy -c copy -crf 50 $filename.mp4
@Iman
Iman / install_ffmpeg_libfdkaac.sh
Last active May 3, 2023 16:34 — forked from rafaelbiriba/install_ffmpeg_libfdkaac.sh
Install FFmpeg with libfdk_aac support (For Ubuntu)
#!/usr/bin/env bash
#Credit to @rafaelbiriba and @dustball
export BASE=/opt
echo "deb http://www.deb-multimedia.org stretch main non-free" >> /etc/apt/sources.list
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 5C808C2B65558117
apt-get update
apt-get -y install build-essential autoconf automake cmake libtool git \