Skip to content

Instantly share code, notes, and snippets.

View DRRDietrich's full-sized avatar
👨‍💻
Setlog

DRRDietrich DRRDietrich

👨‍💻
Setlog
View GitHub Profile
@DRRDietrich
DRRDietrich / apache-exclude-urls-basic-auth.conf
Created August 19, 2020 10:33 — forked from tkhn/apache-exclude-urls-basic-auth.conf
exclude one url from basic auth with apache
SetEnvIfNoCase Request_URI "^/status\.php" noauth
AuthType Basic
AuthName "Identify yourself"
AuthUserFile /path/to/.htpasswd
Require valid-user
Order Deny,Allow
Deny from all
Allow from env=noauth
@DRRDietrich
DRRDietrich / btrfs-guide.md
Created October 15, 2019 11:53 — forked from MaxXor/btrfs-guide.md
Btrfs guide for initial setup of an LUKS-encrypted btrfs raid with included recovery guide

Btrfs 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