Skip to content

Instantly share code, notes, and snippets.

@kcivey
kcivey / pomodoro
Last active September 7, 2019 15:11
Pomodoro
#!/bin/bash
# Run for Pomodoro timer. Defaults to 25 min session and 5 minute break.
# Set $QUIET environment variable to eliminate the countdown output.
# I run it with a gnome-terminal profile called "pomodoro" where I have
# the text size set to 72 pt, with text and background colors adjusted,
# starting it like this:
#
# gnome-terminal --window-with-profile pomodoro --hide-menubar -- \
# sh -c "setterm -cursor off; resize -s 1 7; pomodoro $1 $2"
@kcivey
kcivey / make-captions.sh
Created August 6, 2019 01:57
add captions to images
#!/bin/bash
# Give a tab-separated file of filenames for images and captions (captions.tsv), add the captions
# at the bottom of the corresponding images. Requires that identity and imagemagick be installed.
set -e
#set -x
DIR=captioned
mkdir -p $DIR
while read line