Skip to content

Instantly share code, notes, and snippets.

@imannms000
imannms000 / install-mysql.sh
Last active June 12, 2026 08:23
Production-Hardened MySQL 8.0 Installer for Ubuntu 20.04/22.04/24.04 WSL2 Compatible | Idempotent | SOC2/ISO27001-aligned
#!/bin/bash
#===============================================================================
# Production-Hardened MySQL 8.0 Installer for Ubuntu 20.04/22.04/24.04
# Idempotent | Failsafe | SOC2/ISO27001-aligned
#===============================================================================
set -euo pipefail
IFS=$'\n\t'
#-------------------------------------------------------------------------------
@imannms000
imannms000 / page-all.js
Last active July 25, 2025 16:30
Convert pagination article into complete article
const pageAll = function(){
let url = new URL(location);
if(!url.searchParams.has('page'))
{
url.searchParams.set('page', 'all');
location.href = url.href;
}
else
{
document.title = '✅ ' + document.title;
@imannms000
imannms000 / dash-avc264 command lines
Created September 7, 2024 19:50 — forked from while0pass/dash-avc264 command lines
Use ffmpeg and mp4box to prepare DASH-AVC/264 v1.0 VoD
See my DASH-IF presentation from October, 2014:
https://s3.amazonaws.com/misc.meltymedia/dash-if-reveal/index.html#/
1. encode multiple bitrates with keyframe alignment:
ffmpeg -i ~/Movies/5D2_Portrait.MOV -s 1280x720 -c:v libx264 -b:v 1450k -bf 2 \
-g 90 -sc_threshold 0 -c:a aac -strict experimental -b:a 96k -ar 32000 out.mp4
My input was 30 fps = 3000 ms. If it were 29.97, then a GOP size of 90 frames will yield a base segment
size of 3003 milliseconds. You can make the segment size some multiple of this, e.g.: 6006, 9009, 12012.
@imannms000
imannms000 / wsl2.txt
Last active January 11, 2024 22:52
How To Use Proxy on WSL2 Ubuntu for APT, etc.
We couldn’t find that file to show.