Skip to content

Instantly share code, notes, and snippets.


Shuhei Kagawa shuhei

View GitHub Profile
# Place this code to your .profile, .bashrc, .bash_profile or whatever
program_exists () {
type "$1" &> /dev/null ;
if program_exists go; then
shuhei / growlnotify.rb
Last active Dec 18, 2015 — forked from ttscoff/growlnotify.rb
Seamless drop-in to turn existing growlnotify calls into Mountain Lion Notifications. Forked from, now read message from STDIN if -m is not provided and use the first argument as title if -t is not provided.
View growlnotify.rb
#!/usr/bin/env ruby
# encoding: utf-8
# == Synopsis
# Requires the terminal-notifier gem ([sudo] gem install terminal-notifier)
# growlnotify wrapper to turn Growl alerts into Mountain Lion notifications
# Uses growlnotify option syntax to keep your old scripts working with the new shiny.
# If you use Growl via growlnotify in your shell scripting, this script
# will replace Growl's alerts with Mountain Lion notifications.
You can’t perform that action at this time.