Skip to content

Instantly share code, notes, and snippets.

@milo-minderbinder
milo-minderbinder / pbcopyt.bash
Last active April 4, 2022 11:49
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