Skip to content

Instantly share code, notes, and snippets.

@milo-minderbinder
milo-minderbinder / pbcopyt.bash
Last active March 19, 2026 21:00
Simple drop-in alternative for `pbcopy` which wipes the clipboard contents after a set time (30 seconds by default).
#!/usr/bin/env bash
#
# Simple drop-in alternative for `pbcopy` which wipes the clipboard contents
# after a set time (30 seconds by default).
set -o errexit -o errtrace -o noclobber -o nounset -o pipefail
trap 'e=$?; if [ "$e" -ne "0" ]; then printf "LINE %s: exit %s <- %s%s\\n" "$BASH_LINENO" "$e" "${BASH_COMMAND}" "$(printf " <- %s" "${FUNCNAME[@]:-main}")" 1>&2; fi' EXIT
@milo-minderbinder
milo-minderbinder / build-excludes.txt
Last active March 4, 2023 06:47
global excludes file for restic
*.class
build/**/*.[jwe]ar
gems/
gradle/wrapper/*.jar
node_modules/
target/**/*.[jwe]ar
@milo-minderbinder
milo-minderbinder / neovim-docs-helper.user.js
Last active May 18, 2026 19:12
Tampermonkey user script that adds collapsable links for each heading, subheading, and tag (e.g. API methods, subtopics, etc.) in the right-hand navigation section.
// ==UserScript==
// @name neovim-docs-helper
// @namespace https://gist.github.com/milo-minderbinder/
// @version 0.3
// @description adds collapsable links for each heading, subheading, and tag (e.g. API methods, subtopics, etc.) in neovim user doc pages.
// @author Chris Passarello
// @match https://neovim.io/doc/user/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=neovim.io
// @downloadURL https://gist.github.com/milo-minderbinder/2f8f084e3a6ab3adfbf91f0d5b79b2c4/raw/neovim-docs-helper.user.js
// @updateURL https://gist.github.com/milo-minderbinder/2f8f084e3a6ab3adfbf91f0d5b79b2c4/raw/neovim-docs-helper.user.js