Skip to content

Instantly share code, notes, and snippets.

View jaygooby's full-sized avatar
✏️
working on https://writiny.com in my sparse spare time

Jay Caines-Gooby jaygooby

✏️
working on https://writiny.com in my sparse spare time
View GitHub Profile
@jaygooby
jaygooby / bluetooth-device-toggle.applescript
Created August 8, 2023 10:47
Toggle your Nothing ear (1) as the active bluetooth device
# Totally stolen from
# https://gist.github.com/ieatfood/814b065964492f71f728da59a47413bc
#
# Export this applescript as an app, and then just double click to toggle on & off
use framework "IOBluetooth"
use scripting additions
set blueToothDevice to "Nothing ear (1)"
@jaygooby
jaygooby / Dockerfile
Last active June 13, 2024 18:24
Testing my understanding of how `BUNDLE_DEPLOYMENT` affects `bundle install`
# syntax = docker/dockerfile:1
FROM registry.docker.com/library/ruby:3.3.1-slim as base
ARG BUNDLE_DEPLOYMENT \
BUNDLE_WITHOUT
ENV BUNDLE_DEPLOYMENT=$BUNDLE_DEPLOYMENT \
BUNDLE_WITHOUT=$BUNDLE_WITHOUT \
BUNDLE_PATH="/usr/local/bundle" \
@jaygooby
jaygooby / notify-cli
Created August 18, 2026 12:15
A simple macOS cli for a dismissible notification
#!/bin/bash
#
# Usage:
# ./notify
# ./notify "Hi"
# ./notify "Finished" "Your thing is done"
set -e
TITLE="${1:-Yo!}"
MESSAGE="${2:-Your thing completed}"