Skip to content

Instantly share code, notes, and snippets.

View password-reseterator.applescript
activate application "Password Generator"
tell application "System Events"
tell process "Password Generator"
set value of text field 1 of tab group 1 of window "Password Generator" to "7"
select checkbox "A-Z" of tab group 1 of window "Password Generator"
select checkbox "0-9" of tab group 1 of window "Password Generator"
select checkbox "a-z" of tab group 1 of window "Password Generator"
click button "Generate" of window "Password Generator"
click button "Copy" of window "Password Generator"
click button 1 of window "Password Generator"
pdxmph / sprint_animals.rb
Last active Aug 29, 2015
Sprint Animal Namerator
View sprint_animals.rb
require 'sentimental'
require 'sinatra'
require 'searchbing'
#sprint_letter = ARGV[0]
Sentimental.threshold = 0.5
analyzer =
pdxmph / Things2Org.applescript
Created Nov 16, 2014
Convert all your Things projects to org mode projects and todos. Understands tags (converts to org-mode-style colon-delimited lists), due dates (converts to deadlines), status (converts "open" to "todo", "completed" to "DONE" and "canceled" to "CANCELED")
View Things2Org.applescript
tell application "Things"
set myOrgOutput to ""
repeat with theProject in projects
set myName to the name of theProject & return
set myTasks to the to dos of theProject
set myOrgOutput to myOrgOutput & return & return & "* " & myName
repeat with myTodo in myTasks
pdxmph /
Created Dec 23, 2014
Some handy mutt macros for this and that

Implement Lightweight Profiles to switch between email personae

Setup: Make personal.profile and work.profile files and use them to configure the things that are unique to each identity, e.g.

	# -*- muttrc -*-                                                                                                                                         
	# Mutt sender profile : personal/default                                                                                                                 

	# get us out of whatever default folder we're in																																																																								 
	unset folder
View org-custom-faces.el
;; These faces go pretty well with the flatui theme from
'(org-agenda-date ((t (:inherit org-agenda-structure :weight semi-bold :height 1.2))) t)
'(org-date ((t (:foreground "Purple" :underline t :height 0.8 :family "Helvetica Neue"))))
'(org-done ((t (:foreground "gray57" :weight light))))
'(org-level-1 ((t (:weight semi-bold :height 1.1 :family "Helvetica Neue"))))
'(org-level-2 ((t (:inherit outline-2 :weight semi-bold :height 1.1))))
'(org-level-3 ((t (:inherit outline-3 :weight bold :family "Helvetica Neue"))))
'(org-level-5 ((t (:inherit outline-5 :family "Helvetica Neue"))))
pdxmph / mail_to_trello.applescript
Created Jan 11, 2015
Send a message to Trello
View mail_to_trello.applescript
on log_err(message)
display notification message
log message
end log_err
on run
tell application "Mail"
set theAddress to ""
set messageURL to ""
View amail2trello.rb
#!/usr/bin/env ruby
require 'trello'
include Trello
subject = ARGV[0]
id = ARGV[1]
message = ARGV[2]
# There's a little setup involved here.
View applemail_trello.rb
#!/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:

org-mode questions

Make a list

Make a list from the selected region


C-c -

pdxmph / gist:fc350764571f97870fc5
Created Jul 16, 2015
iTunes Rating Schema for Use on Assorted Devices of Varying Storage Capacity
View gist:fc350764571f97870fc5
1Necessary standalone track
2Part of an okay album
3Essential within an okay album
4Part of a great album
5Essential within a great album