Skip to content

Instantly share code, notes, and snippets.

@poddmo
poddmo / tmux.md
Created September 24, 2024 06:25
tmux tips

Scrollback (history) buffer

History size

The history limit is a pane attribute that is fixed at the time of pane creation and cannot be changed for existing panes. The value is taken from the history-limit session option (the default value is 2000).

To create a pane with a different value you will need to set the appropriate history-limit option before creating the pane.

To establish a different default, you can put a line like the following in your .tmux.conf file:

set-option -g history-limit 3000
@poddmo
poddmo / mdadm and lvm.md
Last active December 4, 2024 00:42
Storage: mdadm and lvm

Raid arrays

Create array

Partition 2TB drives and add to raid6 array

for d in g h i j k ; do echo "/dev/sd${d}" ; sgdisk -n 0:0:3907029134 -t 0:0xfd00  /dev/sd$d ; done
mdadm --create --verbose /dev/md6 --level=6 --chunk=1M --raid-devices=5 /dev/sdg1 /dev/sdh1 /dev/sdi1 /dev/sdj1 /dev/sdk1

Check array

Debian/Ubuntu systems: Run the command /usr/share/mdadm/checkarray -x --all as root. This will cancel all running sync checks.

@poddmo
poddmo / Backup media archiving and cataloguing tips.md
Last active September 24, 2024 05:56
Storage: Backup media archiving and cataloguing tips