Skip to content

Instantly share code, notes, and snippets.

@montanaflynn
montanaflynn / main.go
Last active February 8, 2023 10:09
Gin request timeout middleware and handler
View main.go
package main
import (
"context"
"log"
"net/http"
"time"
"github.com/gin-gonic/gin"
)
@jmsaavedra
jmsaavedra / ffmpeg_install.md
Last active March 16, 2023 12:43
Install FFmpeg on a Linux Box
View ffmpeg_install.md

Install FFmpeg via CLI on Linux box

These steps walk through installing a static binary of any ffmpeg version on to your linux machine. If you want to compile from source, there are several ways to do so. Here's the official guide. Tested and works on an AWS EC2 Ubuntu instance, but should work on any Linux machine.

http://ffmpeg.org

  • SSH into your instance and become root