Skip to content

Instantly share code, notes, and snippets.

@WinkelCode
WinkelCode / tplinkcfgutil.sh
Last active December 23, 2023 00:35
A shell utility to de-/encode (de-/encrypt) a back up of the configuration file for certain TP-Link devices.
#!/usr/bin/env bash
set -e
file=$2
if [ ! -f "$file" ]; then
echo "File '$file' not found"
exit 1
fi
secret="2EB38F7EC41D4B8E1422805BCD5F740BC3B95BE163E39D67579EB344427F7836"
@WinkelCode
WinkelCode / Windows Setup Excerpt.md
Last active January 14, 2025 07:36
Excerpt from my Windows installation doc

Windows Installation

Creating Partitions (gdisk)

  • (Setup-dependent) Run blkdiscard or nvme format -s [1/2] -r (followed by blkdiscard) for the disk.
  • EFI:
    • Size: 100MiB
    • Type: EF00 (EFI System Partition) (Type may be optional depending on modern UEFI firmware)
  • MSR (Microsoft Reserved):
    • Size: 16MiB
    • Type: 0C01 (Microsoft Reserved Partition)
    • Always discard/zero the MSR after creation.