Skip to content

Instantly share code, notes, and snippets.

@scottmcdaniel
scottmcdaniel / contentblocker.json
Created August 13, 2015 01:58
Safari Content Blocker for iOS9
[
{
"trigger": {
"url-filter": "pubexchange.com"
},
"action": {
"type": "block"
}
},
{
@scottmcdaniel
scottmcdaniel / mail-to-things
Created March 9, 2015 21:54
Add email body to Things via Rule in Mail.app
on run {input, parameters}
set todoList to {}
repeat with theMessage in input
-- Grab message body and sender.
tell application "Mail"
set theSender to theMessage's sender as string
set theMessageBody to theMessage's content as string
end tell
@scottmcdaniel
scottmcdaniel / Styling Gravity Forms Error Messages
Created February 5, 2014 20:42
Styling Gravity Forms Error Messages
/* Gravity forms error handling - February 5, 2014 */
/* ############################################### */
/* Make the error stand out */
.gfield_error{
background-color: white;
color:#b94a48;
}
/* Prepend the error message to the missing but required field */
.gfield_error:before {
@scottmcdaniel
scottmcdaniel / DayOneTerpstra.rb
Created December 12, 2013 01:04
Archive of http://brettterpstra.com/2012/01/16/logging-with-day-one-geek-style/ - a script to add Day One events via command line.
#!/usr/bin/ruby
# logtodayone.rb
# Brett Terpstra (http://brettterpstra.com)
# Use and modify freely, attribution appreciated
#
# This script works with the Day One[1] command line utility
# It parses an input string for an exclamation point prefix to mark starred
# and/or a [date string] at the beginning to parse natural language dates
#
@scottmcdaniel
scottmcdaniel / Search operators to use in Google Voice for managing unread messages
Created November 11, 2013 16:16
Search operators to use in Google Voice for managing unread messages
Use these in the GV search field. You will likely need to refresh/select all after each as you can only do ten messages at a time.
* Mark all SMS/Text Messages as Read
label:sms is:unread
* Mark all voicemails as Read
label:voicemail is:unread
@scottmcdaniel
scottmcdaniel / Tweetbot_Mac_Dropbox
Created November 8, 2013 13:19
Save Images from @TweetBot (Mac) to Dropbox. As always, disclaimers apply: use only at your own risk.
ln -s ~/Library/Containers/com.tapbots.TweetbotMac/Data/Downloads ~/Dropbox/Photos/Tweetbot