Skip to content

Instantly share code, notes, and snippets.

@mplusp
mplusp / .vimrc
Created December 3, 2025 10:12
This is the .vimrc file I use in my "Advent Of Vim 2025" video series.
set nocompatible
let mapleader=" "
let maplocalleader="<BS>"
filetype on
filetype indent on
filetype plugin on
syntax on
@scyto
scyto / proxmox-tb-net.md
Last active January 25, 2026 20:16
Thunderbolt Networking Setup

Thunderbolt Networking

this gist is part of this series

you wil need proxmox kernel 6.2.16-14-pve or higher.

Load Kernel Modules

  • add thunderbolt and thunderbolt-net kernel modules (this must be done all nodes - yes i know it can sometimes work withoutm but the thuderbolt-net one has interesting behaviou' so do as i say - add both ;-)
    1. nano /etc/modules add modules at bottom of file, one on each line
  1. save using x then y then enter
@scyto
scyto / proxmox-base.md
Last active April 22, 2025 08:52
Hardware Setup / Proxmox Base Install

Hardware Setup / Proxmox Base Install

this gist is part of this series

Hardware Setup (perform on all 3 nodes)

  • Connect all 3 NUC to power etc
  • Disable secure boot in BIOS on all nodes
  • Connect all 3 TB4 cables in a rinng topology:
using the numbers printed on the case of the intel13 nucs connect cables as follows (this is important):
@scyto
scyto / proxmox.md
Last active January 26, 2026 13:09
my proxmox cluster

ProxMox Cluster - Soup-to-Nutz

aka what i did to get from nothing to done.

note: these are designed to be primarily a re-install guide for myself (writing things down helps me memorize the knowledge), as such don't take any of this on blind faith - some areas are well tested and the docs are very robust, some items, less so). YMMV

Purpose of Proxmox cluster project

Required Outomces of cluster project

@r15ch13
r15ch13 / iommu.sh
Last active January 31, 2026 16:05
List IOMMU Groups and the connected USB Devices
#!/usr/bin/env bash
shopt -s nullglob
lastgroup=""
for g in `find /sys/kernel/iommu_groups/* -maxdepth 0 -type d | sort -V`; do
for d in $g/devices/*; do
if [ "${g##*/}" != "$lastgroup" ]; then
echo -en "Group ${g##*/}:\t"
else
echo -en "\t\t"
@sindresorhus
sindresorhus / esm-package.md
Last active January 29, 2026 08:34
Pure ESM package

Pure ESM package

The package that linked you here is now pure ESM. It cannot be require()'d from CommonJS.

This means you have the following choices:

  1. Use ESM yourself. (preferred)
    Use import foo from 'foo' instead of const foo = require('foo') to import the package. You also need to put "type": "module" in your package.json and more. Follow the below guide.
  2. If the package is used in an async context, you could use await import(…) from CommonJS instead of require(…).
  3. Stay on the existing version of the package until you can move to ESM.
@notpushkin
notpushkin / qifi.py
Last active April 16, 2019 18:24
Print Wi-Fi connection details saved in NetworkManager as a QR code
"""
Print Wi-Fi connection details saved in NetworkManager as a QR code supported
on Android (with Barcode Scanner or NeoReader) and iOS 11+.
Usage:
python3 qifi.py [SSID]
# (by default, currently active network will be used)
"""
import dbus # sudo apt install python3-dbus
@qoomon
qoomon / conventional-commits-cheatsheet.md
Last active January 31, 2026 21:47
Conventional Commits Cheatsheet
@ServerlessBot
ServerlessBot / IAMCredentials.json
Last active January 11, 2026 11:53
Minimum credential set for Serverless Framework
{
"Statement": [
{
"Action": [
"apigateway:*",
"cloudformation:CancelUpdateStack",
"cloudformation:ContinueUpdateRollback",
"cloudformation:CreateChangeSet",
"cloudformation:CreateStack",
"cloudformation:CreateUploadBucket",

Visual Studio Code shortcuts I use often

Navigation

Sidebar:

  • Cmd-Shift-F: search
  • Cmd-Shift-E: files

Navigating in current editor: