Skip to content

Instantly share code, notes, and snippets.

View darrenldl's full-sized avatar

Darren Li darrenldl

View GitHub Profile

Examples

"starting from 2020 Dec, every 2 months, second thursday"

(since_year 2020 (since_start_of_month `Dec (every_nth_month 2 (nth_weekday 2 `Thu entire_day))))

"every other day of year 2020"

@darrenldl
darrenldl / closeboot.md
Last active July 6, 2021 14:21
Hooks for unmounting external USB on Arch

Hooks for unmounting external USB on Arch

Files

  • install_closeboot is the install hook
  • runtime_closeboot is the runtime hook

Instructions

  1. Copy install_closeboot to /usr/lib/initcpio/install/closeboot
Simulation at data loss rate of 30.0%, at max redundancy of 100.0%, non-systematic
setup:
systematic: false
systematic scaling factor: 10.000
encode all drops upfront: false
data block count: 100
max drop count: 200
data block size: 1300
max redundancy: 100.000%
data loss rate: 30.000%
{
"stats": {
"writev": 1,
"write": 93145,
"waitid": 19,
"wait4": 3,
"unlink": 200,
"uname": 128,
"umask": 18,
"tgkill": 1,