Skip to content

Instantly share code, notes, and snippets.

View hasnhasan's full-sized avatar
🎯
Focusing

Hasan hasnhasan

🎯
Focusing
View GitHub Profile
@mrl22
mrl22 / README.md
Last active September 17, 2025 10:36
PHP 8.2 Support for Apache and NGINX (OpenResty) on Moss.sh

NO LONGER WORKS DUE TO PHP 8.2 BEING REMOVED FROM PPA:ONDREJ/PHP

Do not copy and paste this code, it requires changes

Other PHP versions available here: https://gist.github.com/search?q=user%3Amrl22+moss

As of writing this, Moss.sh does not support PHP 8.2 via the control panel even though Ubuntu does.

Set up your website using Moss.sh and select Apache with PHP 7.4.

@travelhawk
travelhawk / ffmpeg_commands.md
Last active November 19, 2025 20:20
Collection of ffmpeg commands (basic usage, streaming, advanced usage)

ffmpeg

ffmpeg is a fast video and audio converter that can also grab from a live audio/video source.

Standard usage

Getting help and information

  • -h show all options
  • -h(elp) topic show help
  • -version show version
  • -formats show available formats
@knugie
knugie / jpg_to_2048.sh
Last active December 4, 2023 06:20
resize and optimize JPEG images to box-fit 2048x2048 pixels with 80% JPEG quality
#! /usr/bin/env bash
# brew install imagemagick
# brew install jpegoptim
mkdir 2048
for image in *.[jJ][pP][eE]?[gG]; do
convert $image -resize 2048x2048\> ./2048/$image
jpegoptim --strip-all -q --max=80 ./2048/$image
done