Skip to content

Instantly share code, notes, and snippets.

View jfharden's full-sized avatar

Jonathan Harden jfharden

View GitHub Profile
@jfharden
jfharden / aoc_day_5_part_2.bats.bats
Created December 8, 2023 09:33
AoC 2023 day 5 part 2 unit tests
setup() {
load '../test_helper/bats-support/load' # this is required by bats-assert!
load '../test_helper/bats-assert/load'
# get the containing directory of this file
# use $BATS_TEST_FILENAME instead of ${BASH_SOURCE[0]} or $0,
# as those will point to the bats executable's location or the preprocessed file respectively
DIR="$( cd "$( dirname "$BATS_TEST_FILENAME" )" >/dev/null 2>&1 && pwd )"
# make executables in src/ visible to PATH
PATH="$DIR/../day5/:$PATH"
@jfharden
jfharden / aoc_day_5_part_2.sh
Created December 8, 2023 09:30
AoC 2023 day 5 part 2
#!/usr/bin/env bash
set -euo pipefail
MODE=${1:-real}
function usage {
echo "Usage:"
echo
echo " $0 [mode]"
@jfharden
jfharden / convert-m4v-to-mkv.sh
Created May 31, 2021 22:04
Script to convert m4v to mkv files and maintain audio/subtitle stream names
#!/bin/bash
# Requirements to use this script:
# HandBrakeCLI
# jq
# bash 4+ (sorry osx!)
# ffmpeg
set -e

Keybase proof

I hereby claim:

  • I am jfharden on github.
  • I am jfharden (https://keybase.io/jfharden) on keybase.
  • I have a public key ASA9fozggkFxlYhIed5_Ep8jneJkWptVb8zZL-uEnFNSLwo

To claim this, I am signing this object:

@jfharden
jfharden / ps4-games-on-disc.md
Last active November 27, 2019 12:54
My collection of PlayStation 4 games on disc

Non-VR Games

  • The Witcher 3: Wild Hunt
  • Air Conflicts: Pacific Carriers Playstation 4 Edition
  • No mans sky
  • Star Wars Battlefront
  • Middle Earth: Shadow of Mordor Game of the Year Edition
  • Alien Isolation
  • Carmageddon: Max Damage