Skip to content

Instantly share code, notes, and snippets.

View plasmadice's full-sized avatar

Herman plasmadice

View GitHub Profile
@plasmadice
plasmadice / dual-stack-openfabric-mesh-v2.md
Created December 3, 2025 02:32 — forked from scyto/dual-stack-openfabric-mesh-v2.md
New version of my mesh network using openfabric

Enable Dual Stack (IPv4 and IPv6) OpenFabric Routing

Version 2.5 (2025.04.27)

this gist is part of this series

This assumes you are running Proxmox 8.4 and that the line source /etc/network/interfaces.d/* is at the end of the interfaces file (this is automatically added to both new and upgraded installations of Proxmox 8.2).

This changes the previous file design thanks to @NRGNet and @tisayama to make the system much more reliable in general, more maintainable esp for folks using IPv4 on the private cluster network (i still recommend the use of the IPv6 FC00 network you will see in these docs)

@plasmadice
plasmadice / run.sh
Last active November 13, 2025 16:45
Docker disk and network benchmark + Geekbench 6
#!/bin/bash
# Minimal YABS benchmark - copy-paste this command to run on any Docker instance
# Includes disk, Geekbench, and network tests
docker run --rm -it debian:stable bash -c "
apt-get update -qq &&
apt-get install -y -qq curl jq sed bc &&
echo 'Running YABS benchmark...' &&
OUTPUT=\$(curl -sL https://yabs.sh | bash -s -- -rj -w /tmp/results.json 2>&1) &&
echo \"\$OUTPUT\" &&
@plasmadice
plasmadice / kanata.kbd
Created July 15, 2025 15:46
Kanata config snapshot
;;-----------------------------------------------------------------------------
;; Timing variables for tap-hold effects.
(defvar
;; The key must be pressed twice in 200ms to enable repetitions.
TAP 200
;; The key must be held 200ms to become a layer shift.
HOLD 200
;; Slightly higher value for typing keys, to prevent unexpected hold effect.
LONG_HOLD 300
@plasmadice
plasmadice / init.lua
Created January 3, 2025 20:23
Neovim init.lua backup -
--[[
=====================================================================
==================== READ THIS BEFORE CONTINUING ====================
=====================================================================
======== .-----. ========
======== .----------------------. | === | ========
======== |.-""""""""""""""""""-.| |-----| ========
======== || || | === | ========
======== || KICKSTART.NVIM || |-----| ========
@plasmadice
plasmadice / win11-mouse-scroll-reverse.md
Last active October 10, 2024 02:13 — forked from gagarine/win11-mouse-scroll-reverse.md
Reverse Mouse Wheel scroll in Windows 11 (Natural Mode like MacOS)

Reverse Mouse Wheel scroll in Windows 11

Chose between natural mode like MacOS or Windows default mode.

Step 1: Open Windows PowerShell in Administrator Mode.

You can do this by going to Start Menu, type PowerShell, and click Run as Administrator.

Step 2: Copy the following code and paste it in the command line of Windows PowerShell:

$mode = Read-host "How do you like your mouse scroll (0 - [Wrong, Windows] or 1 - [Natural, Mac])?"; Get-PnpDevice -Class Mouse -PresentOnly -Status OK | ForEach-Object { "$($_.Name): $($_.DeviceID)"; Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Enum\$($_.DeviceID)\Device Parameters" -Name FlipFlopWheel -Value $mode; "+--- Value of FlipFlopWheel is set to " + (Get-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Enum\$($_.DeviceID)\Device Parameters").FlipFlopWheel + "`n" }
@plasmadice
plasmadice / reinstall-betterdiscord.sh
Last active June 18, 2024 21:46 — forked from iGlitch/bd.sh
BetterDiscord Automatic Manual Installer - Mac OS
#!/bin/bash
# Required parameters:
# @raycast.schemaVersion 1
# @raycast.title Reinstall BetterDiscord
# @raycast.mode compact
# Optional parameters:
# @raycast.icon 🤖
@plasmadice
plasmadice / getRecentCommitCount.ts
Last active June 11, 2023 04:11
getRecentCommitCount - Get a user's GitHub commit count within a timeframe using fetch()
export async function getRecentCommitCount(username: string, email: string, days: number = 30) {
let totalCommits = 0
let page = 1
const perPage = 100
const timeFrame = new Date()
timeFrame.setDate(timeFrame.getDate() - days)
let stop = false
// Loop through pages until we find a commit outside of our timeframe
while (!stop) {