Skip to content

Instantly share code, notes, and snippets.

@baroquebobcat
baroquebobcat / sake_scheduler.rb
Last active February 26, 2026 18:04
A tool for planning sake making
# Sake Brewing Scheduler
require 'date'
def dfmt date
case date
when Date
date.strftime "%a, %b %e"
when Range
[date.first,date.last].map{|d|dfmt(d)}.join(" - ")
end
export NOTIFY_TIME=10
function timer_start {
previous_command=$this_command
if [ "$BASH_COMMAND" != "timer_stop" ]
then
this_command=$BASH_COMMAND
fi
timer=${timer:-$SECONDS}