Skip to content

Instantly share code, notes, and snippets.

View brandonb927's full-sized avatar

Brandon Brown brandonb927

View GitHub Profile
@arianvp
arianvp / SSH_MACOS_SECURE_ENCLAVES.md
Last active December 6, 2025 08:11
Native Secure Enclaved backed ssh keys on MacOS

Native Secure Enclave backed ssh keys on MacOS

It turns out that MacOS Tahoe can generate and use secure-enclave backed SSH keys! This replaces projects like https://github.com/maxgoedjen/secretive

There is a shared library /usr/lib/ssh-keychain.dylib that traditionally has been used to add smartcard support to ssh by implementing PKCS11Provider interface. However since recently it also implements SecurityKeyProivder which supports loading keys directly from the secure enclave! SecurityKeyProvider is what is normally used to talk to FIDO2 devices (e.g. libfido2 can be used to talk to your Yubikey). However you can now use it to talk to your Secure Enclave instead!

@pbarone
pbarone / unraid-nfs-configuration.md
Created September 2, 2025 15:21
UNRAID NFS Configuration Guide

UNRAID NFS Configuration Guide - Complete Issue Resolution

Executive Summary

This document details the investigation, root cause analysis, and resolution of recurring NFS stale file handle issues in a home lab environment with UNRAID NAS and multiple Linux clients. The solution involved migrating from static NFS mounts to systemd automount configuration, eliminating stale handle problems while maintaining full container compatibility.

Environment Overview

Infrastructure

  • UNRAID Server: unraid-server (192.168.1.100) - Primary NAS with NFS exports
@GingerGraham
GingerGraham / bash_logging.md
Last active November 27, 2025 20:23
Bash Logging

Bash Logging Module

A flexible, reusable logging module for Bash scripts that provides standardized logging functionality with various configuration options.

Features

  • Standard syslog log levels (DEBUG, INFO, WARN, ERROR, CRITICAL, etc.)
  • Console output with color-coding by severity
  • Optional file output
  • Optional systemd journal logging
@adrienne
adrienne / mullenweg-wpe.md
Last active November 22, 2025 13:16
The Mullenweg/WPE Thing
@milesrichardson
milesrichardson / open-vlc-m3u8-url-with-http.md
Created July 10, 2024 21:50
How to use VLC to watch m3u8 playlist at URL with custom HTTP referrer and user agent

Imagine this: it's Sunday afternoon at 1pm, and you want to watch some live content. But you don't have a TV subscription. So you do a little Googling, and eventually you find yourself on a sketchy website where you can watch the content you're looking for. But while the website has a video player, it's surrounded by advertisements, and probably a cryptominer too. You don't want this website eating your CPU for 2 hours while you're watching your favorite Sunday afternoon content.

Wouldn't it be nice if you could watch that video in VLC instead? Then you can close the sketchy website and still watch your content. It's like having your cake and taking a bite of it too!

Here's how you do it:

  1. Capture the m3u8 request in dev tools. Open the site (or just the iframe, if possible) in DevTools and click "play." Search the network tab for m3u8 and grab the first request.

  2. Run VLC with command line flags to set the User Agent and Referrer. From the request body, you need to copy the requested URL,

@SMUsamaShah
SMUsamaShah / list_of_p2p_file_sharing.md
Last active December 4, 2025 21:08
List of P2P file sharing tools

Browser Based

  1. Web Wormhole https://webwormhole.io/ https://github.com/saljam/webwormhole
  2. Localsend https://web.localsend.org/
  3. FilePizza https://file.pizza/
  4. ShareDrop sharedrop.io https://github.com/szimek/sharedrop (SOLD, not recommended, use one of the forks)
    1. A clone SnapDrop snapdrop.net https://github.com/RobinLinus/snapdrop (SOLD, not recommended, use one of the forks)
      1. A fork PairDrop https://pairdrop.net/ https://github.com/schlagmichdoch/pairdrop
  5. ToffeeShare https://toffeeshare.com/
  6. Instant.io https://instant.io/
@soxrok2212
soxrok2212 / Reolink RLC-810A Homebridge 4K Configuration.md
Last active October 5, 2025 03:13
Reolink RLC-810A Homebridge 4K Configuration
@Iliannnn
Iliannnn / Discord.js-v14-Events.md
Last active November 11, 2025 19:33
Discord.js v14 Events - Cheatsheet

Discord.js v14 Events

An overview of all events in Discord.js v14 with examples.

📢 | Last updated: 27 July 2022

ℹ️ | client references to your client instance.

ℹ️ | The v13 overview can be found here.

@mikkipastel
mikkipastel / app.js
Last active March 14, 2024 03:46
sample for cronjob in Discord.js for alert with standup meeting
const cron = require('node-cron');
const Discord = require("discord.js");
const client = new Discord.Client();
client.once('ready', async () => {
common.log('Ready!');
try {
const webhook = new Discord.WebhookClient(process.env.WEBHOOK_ID, process.env.WEBOOK_TOKEN);