Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env bash
set -Eeuo pipefail
trap cleanup SIGINT SIGTERM ERR EXIT
script_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd -P)
ide_script_name="ide_script.groovy"
usage() {
cat <<EOF
@j4ckofalltrades
j4ckofalltrades / badge.py
Last active July 14, 2023 11:38
Using the Badger2040 as a digital lanyard / badge - https://jduabe.dev/posts/2023/programmable-badge/
# Using the Badger2040 as a digital badge / lanyard
import badger2040
WIDTH = badger2040.WIDTH # 296
HEIGHT = badger2040.HEIGHT # 128
BANNER_HEIGHT = 30
BANNER_TEXT_SIZE = 0.8
NAME_PADDING_LEFT = 60
@j4ckofalltrades
j4ckofalltrades / .gitconfig
Last active October 16, 2025 10:43
git config options in the `git config --make-git-work-for-you` talk -- https://talks.jduabe.dev/git-config
# git config options in the `git config --make-git-work-for-you` talk
# https://talks.jduabe.dev/git-config
[alias]
br = branch
cm = commit
di = diff
dis = diff --staged
lol = log --oneline
rs = restore