Skip to content

Instantly share code, notes, and snippets.

View mmckegg's full-sized avatar

Matt McKegg mmckegg

View GitHub Profile
@bilalmughal
bilalmughal / ffmpeg_install_gpu.sh
Last active December 16, 2024 02:33
Install ffmpeg from source on CPU or GPU
#!/bin/bash
set -e # Exit on any error
if [ "$EUID" -ne 0 ]; then
echo "This script must be run as root."
exit 1
fi
DOWNLOAD="wget"
USR_LOCAL_PREFIX="/usr/local"
@plentz
plentz / nginx.conf
Last active April 21, 2025 13:23
Best nginx configuration for improved security(and performance)
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
@mmckegg
mmckegg / find-trailing-commas.regexp
Created May 30, 2013 03:05
Regexp to find trailing commas in javascript files that throw errors in IE and destroy everything!
,\s*\n+(\s*\/\/.*\n)*\s*[\}\)\]]