Skip to content

Instantly share code, notes, and snippets.

View MarcusOtter's full-sized avatar
🤹‍♂️
Juggling projects

Marcus Otterström MarcusOtter

🤹‍♂️
Juggling projects
View GitHub Profile
@MarcusOtter
MarcusOtter / to8mb.sh
Created July 29, 2026 21:42
Compress any video to 8mb similar to 8mb.video. Usage: "./to8mb.sh input.mp4"
#!/usr/bin/env bash
set -Eeuo pipefail
export LC_ALL=C
usage() {
printf 'Usage: %s INPUT [OUTPUT]\n' "$(basename "$0")" >&2
exit 2
}
die() {
using System;
using System.IO;
using System.Threading.Tasks;
using System.Net.Http;
namespace Example
{
public interface IImageDownloader
{
Task DownloadImageAsync(string directoryPath, string fileName, Uri uri);