Skip to content

Instantly share code, notes, and snippets.

View pdxmph's full-sized avatar

Mike Hall pdxmph

View GitHub Profile
@pdxmph
pdxmph / something_up.txt
Created February 24, 2018 06:11
Something Up
Breathless -- X
Temptation Inside Your Heart -- The Velvet Underground
I Will Dare -- The Replacements
Teen Age Riot -- Sonic Youth
Soldiers Requiem -- Naked Raygun
Human Cannonball -- Butthole Surfers
Look At The Rain -- Meat Puppets
Spoon -- Cibo Matto
Whirlpool -- Meat Puppets
Who Are You -- The Who
@pdxmph
pdxmph / things_to_reminders.rb
Last active April 9, 2018 22:19
Move your Things inbox and today lists into Reminders.app
#!/usr/bin/env ruby
require 'rb-scpt'
include Appscript
# Needs a list in Reminders called "Things," or adjust this to taste:
target_list_name = "Things"
things_lists = ["Inbox", "Today"]
things = app("Things3")
@pdxmph
pdxmph / puppet-friends-forest-coc.md
Last active January 30, 2018 02:17 — forked from annalee/sample-slack-coc.md
The Puppet Friends Forest Code of Conduct

Puppet Friends Forest Code of Conduct

Welcome!

Hi, and welcome to Puppet Friends Forest.

The purpose of this slack is to give Puppet alumni and current Puppet employees a place to hang out and keep in touch. It's not an official Puppet production, meaning it's not sanctioned or supported by the company.

@pdxmph
pdxmph / things3_to_org.rb
Created October 11, 2017 20:12
rb-appscript lives on enough in rb-scpt to do a quick-and-dirty things2org conversion.
#!/usr/bin/env ruby
require "rb-scpt"
include Appscript
app = app("Things3")
projects = app.projects.get
untasked_projects = []
@pdxmph
pdxmph / fix_pinboard_titles.rb
Last active June 4, 2018 23:56
Fix Pinboard bookmarks with URLs for titles
#!/usr/bin/env ruby
require 'pinboard'
require 'nokogiri'
require 'open-uri'
# get your Pinboard API token here: https://pinboard.in/settings/password
pinboard = Pinboard::Client.new(:token => 'XXXXXXXXXXXXXX')
posts = pinboard.posts(:results => 50)
@pdxmph
pdxmph / omnifocus2evernote.applescript
Last active August 31, 2018 19:40
An AppleScript to take the currently selected item in OmniFocus and connect it to Evernote.
tell application "OmniFocus"
tell front window
set the_selection to selected trees of content
set my_selection to value of item 1 of the_selection
set task_name to get name of my_selection
set task_id to get id of my_selection
set a_note to get note of my_selection
@pdxmph
pdxmph / adium_away_for_10.rb
Created September 10, 2015 21:23
Set Adium away message to now + 10 minutes so I can go for a walk around the park.
#!/usr/bin/env ruby
require "rubygems"
require "appscript"
require "active_support/all"
include Appscript
adium = app("Adium")
time = Time.current + 10.minutes
back = time.strftime("%l:%M")
@pdxmph
pdxmph / gist:fc350764571f97870fc5
Created July 16, 2015 16:05
iTunes Rating Schema for Use on Assorted Devices of Varying Storage Capacity
StarsMeaning
1Necessary standalone track
2Part of an okay album
3Essential within an okay album
4Part of a great album
5Essential within a great album

org-mode questions

Make a list

Make a list from the selected region

Answer

C-c -

#!/usr/bin/env ruby
require 'trello'
require 'appscript'
include Trello
include Appscript
# There's a little setup involved here.
# Step 1. Get Your Application Key from here:
# https://trello.com/1/appKey/generate