Skip to content

Instantly share code, notes, and snippets.

View mikr13's full-sized avatar
🐶
I want a pet doggo❗

Mihir Kumar mikr13

🐶
I want a pet doggo❗
View GitHub Profile
import { Resvg } from '@resvg/resvg-js';
import satori from 'satori';
import { opensansBold, opensansRegular } from './fonts';
export async function generateNoteOgImage({
title,
subtitle,
width = 1200,
height = 630,
}: {
@stenuto
stenuto / hls.sh
Created November 7, 2024 16:58
HLS ffmpeg script
#!/bin/bash
# Function to display usage information
usage() {
echo "Usage: $0 /path/to/input.mp4 [ /path/to/output_directory ]"
exit 1
}
# Check if at least one argument (input file) is provided
if [ $# -lt 1 ]; then