Skip to content

Instantly share code, notes, and snippets.

View mmm's full-sized avatar

Mark Mims mmm

View GitHub Profile
@otterley
otterley / tmux-cssh
Created January 18, 2012 23:03
tmux fanout
#!/bin/sh
# Usage: tmux-cssh user1@host1 user2@host2 host3 host4 host5 host6 [...]
SESSION=cssh-$$
tmux new-session -d -s $SESSION "exec ssh $1"
shift
for host in "$@"; do
tmux split-window -t $SESSION "exec ssh $host"
tmux select-layout -t $SESSION tiled >/dev/null
done
tmux set-window-option -t $SESSION status off >/dev/null
@MaxXor
MaxXor / btrfs-guide.md
Last active July 19, 2024 11:07
Btrfs guide to set up an LUKS-encrypted btrfs raid volume with included maintenance & recovery guide

Encrypted Btrfs storage setup and maintenance guide

Initial setup with LUKS/dm-crypt

This exemplary initial setup uses two devices /dev/sdb and /dev/sdc but can be applied to any amount of devices by following the steps with additional devices.

Create keyfile:

dd bs=64 count=1 if=/dev/urandom of=/etc/cryptkey iflag=fullblock
chmod 600 /etc/cryptkey