Skip to content

Instantly share code, notes, and snippets.

View mathias's full-sized avatar

Matt Gauger mathias

View GitHub Profile
@mathias
mathias / .zshrc
Last active October 4, 2023 19:37 — forked from bashbunni/.zshrc
CLI Pomodoro for Mac
# I'll be doing another one for Linux, but this one will give you
# a pop up notification and sound alert (using the built-in sounds for macOS)
# Requires https://github.com/caarlos0/timer to be installed
# Mac setup for pomo
alias work="timer 60m && osascript -e 'display notification \"☕\" with title \"Work Timer is up!\" subtitle \"Take a Break 😊\" sound name \"Crystal\"'"
alias rest="timer 10m && osascript -e 'display notification \"☕\" with title \"Break is over!\" subtitle \"Get back to work 😬\" sound name \"Crystal\"'"
@mathias
mathias / gemfresh
Last active June 29, 2021 18:38 — forked from stevenharman/gemfresh
gemfresh: A handy script for determining the freshness of dependencies in a Ruby code base. Leverages bundler and libyear-bundler.
#!/usr/bin/env bash
# shellcheck disable=SC2059
set -eu
RED='\033[0;31m'
GREEN='\033[0;32m'
NO_COLOR='\033[0m'
CLEAR_LINE='\r\033[K'
@mathias
mathias / README.md
Last active December 30, 2015 22:43

Forked from the dashing Verbinski plugin, which uses the excellent Forecast.io API.

@mathias
mathias / try_chain.rb
Created July 25, 2012 01:42 — forked from rbxbx/try_chain.rb
eeevil
class Object
def try_chain *meths
meths.inject(self) do |res, meth|
break unless result = res.try(meth)
result
end
end
end