Skip to content

Instantly share code, notes, and snippets.

View TheAMM's full-sized avatar

Anna-Maria Meriniemi TheAMM

View GitHub Profile
@coderjo
coderjo / attach_cow_image.sh
Last active September 21, 2025 19:09
access a disk image read-only with a copy-on-write overlay to allow fsck or the like to write changes
#!/bin/bash
# usage: attach_cow_image.sh [imagefile] [cowfile] [devname]
# imagefile: path to the image file you want to load
# cowfile: path to the file to store writes into. If it doesn't exist, a sparse 1GB file will be created.
# devname: the name you want the drive to show up as in /dev/mapper
imgfile="$1"
cowfile="$2"
dmname="$3"
@Zehkul
Zehkul / Convert Script – README.md
Last active December 7, 2025 16:33
Script to quickly convert and crop videos from within mpv

#README:

This script for mpv intends to offer the fastest and simplest way to convert parts of a video—while you’re watching it and not really more work intensive than making a screenshot. A short demonstration: https://d.maxfile.ro/omdwzyhkoa.webm

##Installation:

You need:

  • yad (at least 0.26) (AUR)