Skip to content

Instantly share code, notes, and snippets.

View necrose99's full-sized avatar

Michael L. necrose99

View GitHub Profile
@necrose99
necrose99 / README.md
Created February 26, 2020 05:10 — forked from kwk/README.md
Forgot to sign-off commits?

No problem,

run

git filter-branch --msg-filter "cat - && echo && echo 'Signed-off-by: Your Name <Your.Name@example.com>'" HEAD~2..HEAD

To sign-off the last two commits.

Then force to push them to the remote repo with the -f option:

@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
@mintsoft
mintsoft / iPXE_WDS_EFI.md
Last active January 5, 2024 10:42
iPXE + WDS + EFI Boot Menu
@tstellanova
tstellanova / grub_arm64_debian.md
Last active July 20, 2023 19:12
Installing and running grub on rock64 (rk3328) arm64

Starting with Rock64, u-boot installed to SPI flash, Debian stretch installed to eMMC or micro SD card.

Setup /boot

Add things like dtb and any images you want to eventually load with grub

install grub

From Debian:

sudo apt-get -y install grub2-common efivar grub-efi-arm64
@necrose99
necrose99 / caddy
Created May 4, 2018 03:04 — forked from sebastianmarkow/caddy
caddy web server openrc startup script
#!/sbin/openrc-run
description="Caddy web server"
description_reload="Reload configuration"
extra_started_commands="reload"
: ${CADDY_CONF:=/etc/caddy/Caddyfile}
: ${CADDY_PIDFILE:=/var/run/caddy.pid}
: ${CADDY_USER:=caddy}
@renich
renich / 00-gentoo-installation-partitioning.bash
Last active May 10, 2024 10:16
Install Gentoo on BtrFS subvolumes + UEFI
#!/usr/bin/env bash
# WARNING!!
# This will obliterate all the data in your partition!! (not actually true, but act as if it was)
# Do NOT execute this script if you don't fully understand it!
# a few vars
amount_of_swap=$( free --si -g | grep Mem: | gawk '{ print $2 + 1}' )
# create directories
@fastjack
fastjack / Additional configuration for Telegraf
Last active December 4, 2022 13:14
Quick and dirty gateway metrics for telegraf on pfSense
[[inputs.exec]]
commands = ["/usr/local/libexec/telegraf/gateways.py"]
timeout = "5s"
data_format = "influx"
@pcrockett
pcrockett / Sign.ps1
Last active May 3, 2023 19:10
PowerShell script to cryptographically sign assemblies that's easy to use with a Continuous Integration server
$script:SignToolPath = "C:\Program Files (x86)\Windows Kits\8.1\bin\x64\signtool.exe"
$script:TimestampServers = "http://timestamp.comodoca.com/authenticode",
"http://timestamp.verisign.com/scripts/timestamp.dll",
"http://timestamp.digicert.com"
$script:TimestampServerIndex = 0
$script:MaxRetries = 7
$ErrorActionPreference = "Stop"
Set-StrictMode -Version 3.0
@jirutka
jirutka / -README.md
Last active January 20, 2024 17:52
Use LDAP to manage system users on Gentoo Linux

Use LDAP to manage system users on Linux

This configuration uses nsswitch and compat mode, which is supposedly obsolete, but much more convenient than alternatives.

Install packages

emerge -va sys-auth/nss_ldap sys-auth/pam_ldap sys-apps/unscd

Note: unscd (Micro Name Service Caching Daemon) is not necessary, but it’s recommended.

@prurigro
prurigro / archroot.sh
Last active June 17, 2021 22:31
An overlayfs-based chroot management script for deployable arch build environments
#!/usr/bin/env bash
#
# archroot
# An overlayfs chroot management script for deployable arch build environments
#
# Version 1.18
#
# Written by Kevin MacMartin
# Released under the MIT license