Skip to content

Instantly share code, notes, and snippets.

KFZUS-F3JGV-T95Y7-BXGAS-5NHHP
T3ZWQ-P2738-3FJWS-YE7HT-6NA3K
KFZUS-F3JGV-T95Y7-BXGAS-5NHHP
65Z2L-P36BY-YWJYC-TMJZL-YDZ2S
SFZHH-2Y246-Z483L-EU92B-LNYUA
GSZVS-5W4WA-T9F2E-L3XUX-68473
FTZ8A-R3CP8-AVHYW-KKRMQ-SYDLS
Q3ZWN-QWLZG-32G22-SCJXZ-9B5S4
DAZPH-G39D3-R4QY7-9PVAY-VQ6BU
KLZ5G-X37YY-65ZYN-EUSV7-WPPBS
@smartbit
smartbit / CleanEpson.cmd
Created January 13, 2026 15:22
fix borderless printing Epson ET-7750
setlocal enabledelayedexpansion
:: -------------------------------------------------------------------------
:: VARIABLES & TIMESTAMP
:: -------------------------------------------------------------------------
set YEAR=%DATE:~6,4%
set MONTH=%DATE:~3,2%
set DAY=%DATE:~0,2%
set TIME_CLEAN=%TIME: =0%
@smartbit
smartbit / Fedora UEFI GRUB Restore Guide (for BTRFS LUKS after Windows Install).md
Last active August 14, 2026 13:54
Fedora UEFI GRUB Restore Guide (for BTRFS/LUKS after Windows Install)

Purpose

This script automates the process of restoring the Fedora GRUB bootloader on a UEFI system after it has been removed or overwritten, typically by a Windows installation.

It is designed for a common Fedora setup: a LUKS-encrypted BTRFS root partition and a separate /boot partition. The script performs the following actions:

  1. Prompts for the LUKS encryption password to unlock the Fedora system partition.
  2. Correctly mounts the BTRFS root subvolume, the /boot partition, and the EFI System Partition (ESP).
  3. Binds the necessary system directories from the live environment.
  4. Executes a chroot command to run commands inside the installed Fedora system.
@smartbit
smartbit / copy-from-time-machine.sh
Created September 21, 2017 11:45 — forked from magicoli/copy-from-time-machine.sh
Copy data from a Time Machine volume mounted on a Linux box.
#!/bin/bash
#
# Copy data from a Time Machine volume mounted on a Linux box.
#
# Usage: copy-from-time-machine.sh <source> <target>
#
# source: the source directory inside a time machine backup
# target: the target directory in which to copy the reconstructed
# directory trees. Created if it does not exists.
#