Skip to content

Instantly share code, notes, and snippets.

View jmickelin's full-sized avatar

Jonne Mickelin Sätherblom jmickelin

View GitHub Profile
@jmickelin
jmickelin / .envrc
Last active May 26, 2021 10:04
Add a directory-specific function path for fish using direnv
# Note that this script runs in Bash!
# This appends the the subdirectory ./scripts/fish/functions to the $fish_function_path in the environment
# set up by direnv.
realpath.dirname() { REPLY=.; ! [[ $1 =~ /+[^/]+/*$|^//$ ]] || REPLY="${1%${BASH_REMATCH[0]}}"; REPLY=${REPLY:-/}; echo $REPLY; }
repo_fish_functions="$(realpath.dirname "$@")/scripts/fish/functions"
# Load fish shell and export its fish_function_path variable, appending the scripts one
@jmickelin
jmickelin / checkexpansions.py
Created January 19, 2020 16:16
Boardgamegeek expansion checker tool
#!/usr/bin/env python3
#
# checkexpansions.py - Simple BGG expansion checker
#
# Usage: checkexpansions.py <username>
#
# This is a script that crossreferences the owned and preordered games
# in a Boardgamegeek user's collection with their expansions. All
# expansions that are not in the user's collection are printed to the
# command line.

Keybase proof

I hereby claim:

  • I am jmickelin on github.
  • I am jonne (https://keybase.io/jonne) on keybase.
  • I have a public key whose fingerprint is 725E EFDA DD73 0E57 2AFE E513 F125 3B2A 1E87 0F33

To claim this, I am signing this object: