Skip to content

Instantly share code, notes, and snippets.

View prenagha's full-sized avatar

Padraic Renaghan prenagha

View GitHub Profile
@prenagha
prenagha / Dial with GrowlVoice.scpt
Created March 9, 2012 01:37
LaunchBar dial phone via GrowlVoice
--
-- Use GrowlVoice (version 2.0 or later) to dial a phone number from LaunchBar
-- http://www.growlvoice.com/
--
-- To Use:
-- Put this script in ~/Library/Application Support/LaunchBar/Actions
-- In LaunchBar preferences, Actions screen, Default Actions tab,
-- set the Phone Numbers field to this script
-- This script will appear by default as the action for a phone number, invoke it
-- to start a call to that number in GrowlVoice
@prenagha
prenagha / Text with GrowlVoice.scpt
Created March 9, 2012 01:38
LaunchBar text phone via GrowlVoice
--
-- Use GrowlVoice (version 2.0 or later) to dial a phone number from LaunchBar
-- http://www.growlvoice.com/
--
-- To Use:
-- Put this script in ~/Library/Application Support/LaunchBar/Actions
-- This script will appear as an action for a phone number, invoke it
-- to start a text to that number in GrowlVoice
--
on handle_string(s)
@prenagha
prenagha / Prowl.scpt
Created June 22, 2012 18:40
Launchbar to Prowl
--
-- Take text input from a launchbar action and send to iPhone via prowl
-- Put this file as ~/Library/Application Support/Launchbar/Actions/Prowl.scpt
-- Update prowlAPIKey in the script below
-- Then enter Launchbar, type "Prowl", once its selected hit "Space", then type
-- the text you want to send to your phone, hit "Enter"
--
on handle_string(s)
set prowlAPIKey to "xxxxxx"
set prowlURL to "https://prowl.weks.net/publicapi/add"
@prenagha
prenagha / fake workflow.txt
Last active December 15, 2015 03:58
Google Voice Delete All History
Google Voice provides no easy way to clear your history.
Here is how I did it.
1) Get the Fake app http://fakeapp.com
It lets you write scripts to automate Safari
2) Create a workflow in Fake that has the following steps
Load URL, https://www.google.com/voice/#history
Assert Condition, page title equals : Google Voice - History
@prenagha
prenagha / Chat.applescript
Created January 7, 2014 01:58
Launchbar script to allow you to send an Adium chat message directly from within Launchbar Install: put this script in ~/Library/Application Support/Adium/Actions Invoke Launchbar type "Chat" to find this action, then space to trigger text entry, then "<contact partial name><space>chat message"
-- used via launchbar
-- im_text: contact_partial_name message
handle_string("foobar testing")
on handle_string(im_text)
-- start adium if its not running
if application "Adium" is not running then
tell application "Adium" to activate
-- wait a few seconds to let the accounts login

Keybase proof

I hereby claim:

  • I am prenagha on github.
  • I am prenagha (https://keybase.io/prenagha) on keybase.
  • I have a public key ASC04lRyBGeCmnZDKGqGfErdoTXJCGmx9XgSGdj5Nive8go

To claim this, I am signing this object:

@prenagha
prenagha / fluid-inotes.js
Created January 14, 2013 17:30
Javascript to use as a Userscript file within a custom Fluid app wrapper for Lotus Notes iNotes # Will update the app's doc badge with the current unread count # Will trigger alert sound and send a growl notification when new mail arrives http://fluidapp.com See also https://gist.github.com/4531763
// put this file somewhere on your Mac
// download jquery and put it there as well
// then in Fluid, under the Userscripts option set the path pattern to match your
// inotes UL, then add the below, tweak for your path
// window.fluid.include("/Users/userid/Documents/Mac/Fluid/jquery-1.8.3.min.js");
// window.fluid.include("/Users/userid/Documents/Mac/Fluid/fluid-inotes.js");
//
// Note the auto userid and password filling this script does. Obviously adjust to
// your info. Line ~108 below.
@prenagha
prenagha / fluid-inotes.css
Created January 14, 2013 17:35
CSS to use as a Userstyles file within a custom Fluid app wrapper for Lotus Notes iNotes. Will show overlay please wait after login. http://fluidapp.com see also https://gist.github.com/4531725
/* Start by setting display:none to make this hidden.
Then we position it in relation to the viewport window
with position:fixed. Width, height, top and left speak
speak for themselves. Background we set to 80% white with
our animation centered, and no-repeating */
div.loading {
display: block;
position: fixed;
z-index: 1000;
@prenagha
prenagha / micropub-micro-blog-example.sh
Created April 27, 2017 22:03
Micropub sample post to Micro.blog
#!/bin/bash
# http://help.micro.blog/2017/api-posting/
# https://indieweb.org/Micropub
URL="https://micro.blog/micropub"
TOKEN="aabbcc"
CONTENT="Sample Post Here - http://example.com"
curl --verbose \
@prenagha
prenagha / ArqMonitor.scpt
Last active February 4, 2018 15:25
Applescript to monitor age of last arq backupand send alert to notification center and email if too oldHook it up to run via launchd daily
--
-- Applescript to monitor age of last arq backup
-- and send alert to notification center if too old
--
set arqF to (path to current user folder) & "Library:Arq:lastsV2.dat" as string
set latest to arqF as alias
set mod_date to modification date of (info for latest)
set file_age to round (((current date) - mod_date) / days)
log "most recent Arq backup " & file_age & " days old " & arqF