Skip to content

Instantly share code, notes, and snippets.

// $ cc -o checker checker.c
// $ ./checker
// $ ffmpeg -i output-%02d.ppm -r 60 output.mp4
#include <stdio.h>
int main()
{
char buf[256];
for (int i = 0; i < 60; ++i) {
snprintf(buf, sizeof(buf), "output-%02d.ppm", i);
@org-tekeli-borisp
org-tekeli-borisp / zfs_backup_restore.md
Last active May 17, 2025 15:34 — forked from R8s6/zfs_backup_restore.md
Backup & Restore ZFS to External USB Drive

Backup

1. Take a snapshot

Take a snapshot of the zpool you wish to backup

zfs snapshot tank@backup-jan-2020
@org-tekeli-borisp
org-tekeli-borisp / mostchanged.sh
Created December 21, 2023 09:28 — forked from MelbourneDeveloper/mostchanged.sh
Get Most Changed Files
#!/bin/bash
# This script finds the files with the most changes in a Git repository, tracking renames and excluding binary files and files with zero changes
# Check for the presence of a Git repository
if ! git rev-parse --is-inside-work-tree > /dev/null 2>&1; then
echo "This script must be run inside a Git repository."
exit 1
fi
@org-tekeli-borisp
org-tekeli-borisp / 10-manjaro-zfs-grub.md
Created October 4, 2020 14:35 — forked from kongkrit/10-manjaro-zfs-grub.md
Install Manjaro on ZFS root with systemd-boot or grub