This commit is contained in:
Henrik Lissner 2014-08-31 03:01:05 -04:00
parent 067eeb7bb8
commit cd508eb3e5
2 changed files with 1 additions and 29 deletions

View file

@ -5,10 +5,7 @@
# #
# Note: MAC ONLY! # Note: MAC ONLY!
if ! is_mac; then if ! command -v "wkhtmltopdf" &> /dev/null; then
echo "Mac-only script!"
exit
elif ! command_exists wkhtmltopdf; then
# wkhtmltopdf > 0.9.9 has a habit of hanging after it completes, so we # wkhtmltopdf > 0.9.9 has a habit of hanging after it completes, so we
# install 0.9.9 explicitly instead. # install 0.9.9 explicitly instead.
brew install https://raw.github.com/mxcl/homebrew/6e2d550cf4961129a790bfb0973f8e88704f439d/Library/Formula/wkhtmltopdf.rb brew install https://raw.github.com/mxcl/homebrew/6e2d550cf4961129a790bfb0973f8e88704f439d/Library/Formula/wkhtmltopdf.rb

View file

@ -1,25 +0,0 @@
#!/usr/bin/env ruby
# A quick script for sending myself prowl notifications
require 'prowl'
APIKEY_FILE = File.expand_path("~/.prowl-apikey")
if ARGV.length != 3
p "Usage: prowl [appname] [title] [message]"
exit
end
if not File.exists? APIKEY_FILE
p "#{APIKEY_FILE} does not exist. Create it!"
exit
end
api_key = File.read(APIKEY_FILE).strip
Prowl.add(
:apikey => api_key,
:application => ARGV[0],
:event => ARGV[1],
:description => ARGV[2]
)