Skip to content

Instantly share code, notes, and snippets.

View GodTamIt's full-sized avatar

Chris Tam GodTamIt

  • NYC
View GitHub Profile
@GodTamIt
GodTamIt / btrfs-scrub-individual.py
Last active July 6, 2024 12:37
btrfs-scrub-individual.py
#! /usr/bin/env python3
"""
Script that helps invoke scrub on individual disks in a multi-disk btrfs
filesystem.
This is helpful for configurations that use erasure coding, (i.e. RAID5/RAID6),
where scrubbing a single disk involves reading data from the other disks. By
default, scrub runs concurrently on every disk in the filesystem, which can
result in huge amounts of I/O for such a configuration.
@GodTamIt
GodTamIt / nginx.conf
Last active December 19, 2021 21:34
BlueBubbles nginx https
#user http;
worker_processes auto;
error_log /var/log/nginx/error.log ;
#error_log logs/error.log notice;
#error_log logs/error.log info;
#pid logs/nginx.pid;