Skip to content

Instantly share code, notes, and snippets.

View bbarberBPL's full-sized avatar

Ben Barber bbarberBPL

  • Boston Public Library
  • Boston Public Library
View GitHub Profile
@bbarberBPL
bbarberBPL / README.md
Last active December 4, 2025 16:55
Converts a batch of tiffs in sub folders to jp2 using kakadu's kdu_compress tool

Install Guide MacOS

  1. Ensure homebrew is installed on MacOS by running brew --version

    a. Install homebrew if previous command failed by running /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

  2. Install imagemagick and exiftool by running brew install imagemagick and brew install exiftool

  3. Install kakadu by downloading mac os version and running installer

  4. Add the file below to your local machine by running curl -o name_of_file_you_want_on_local https://rawcontentofbelowfile

@bbarberBPL
bbarberBPL / .env
Last active October 28, 2019 14:16
Python script for verifying contents in a copied directory from source directory
DIR_CMP_SRC_ROOT=${HOME}/path/to/dir
DIR_CMP_DEST_ROOT=${HOME}/path/to/dir
@bbarberBPL
bbarberBPL / \lib\systemd\system\sidekiq-static.service
Created June 21, 2019 19:20 — forked from dsadaka/\lib\systemd\system\sidekiq-static.service
systemd unit files for sidekiq service. note backslashes in filenames are really front slashes.
# This file actually fires up multiple sidekiq services.
# to start: systemctl start sidekiq.target
#
[Unit]
Description=Fire up up to 6 sidekiqs
# If you want more than 6 processes, append sidekiq@7.service, sidekiq@8.service, etc. to the ExecStart line below
# Note that only as many as have been enabled will actually start.
# Note also that the Unit data for each sidekiq process is in /lib/systemd/system/sidekiq@.service
[Service]