Skip to content

Instantly share code, notes, and snippets.

Ricky Mondello rmondello

Block or report user

Report or block rmondello

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@rmondello
rmondello / gist:b933231b1fcc83a7db0b
Created Jan 7, 2015
Exporting (iCloud) Keychain and Safari credentials to a CSV file
View gist:b933231b1fcc83a7db0b

Exporting (iCloud) Keychain and Safari credentials to a CSV file

After my dad died, I wanted to be able to have access any of his online accounts going forward. My dad was a Safari user and used iCloud Keychain to sync his credentials across his devices. I don’t want to have to keep an OS X user account around just to access his accounts, so I wanted to export his credentials to a portable file.

This is the process I used to create a CSV file of his credentials in the format “example.com,user,pass”. This portable format would be pretty easy to import into 1Password or Safari in the future.

The way I went about this isn’t great; it opens up more opportunities for apps to control one’s Mac through Accessibility APIs, it writes plaintext passwords to disk, and it could use some cleaning up. A better approach might leverage the security command line tool that ships with OS X. That said, I found this method to be a fun illustration of what’s possible us

View cloudapp-export.rb
#!/usr/bin/env ruby
# A quick script to download all your files from CloudApp.
# To run this just run the script passing your e-mail & password
# to the script, for example:
#
# gem install cloudapp_api
# ruby cloudapp-export.rb adam@atechmedia.com mypassword
#
@rmondello
rmondello / contributions.sh
Created Aug 15, 2012 — forked from tangphillip/contributions.sh
Find your contributions to a git repo, by file
View contributions.sh
# A regex that matches your commit name. Escape colons, if you use any.
NAME="(Phil(lip)? Tang|tangphillip@gmail.com)"
# Find all plaintext files. Warning: Can be slow with moderate or large repos
FILES=(`find . -type f -exec sh -c "file {} | grep text >/dev/null" \; -print`)
# Find files with extension ".coffee" or ".sass"
FILES=(`find . -name "*.coffee" -o -name "*.sass"`)
for FILE in ${FILES[@]}
@rmondello
rmondello / gist:1983168
Created Mar 6, 2012
Fantastic Spam Comment
View gist:1983168
Author : sinus headaches
Just wish to say your article is as surprising. The clarity on your
submit is simply nice and that i could assume you're an expert in
this subject. Fine together with your permission allow me to grasp
your feed to keep updated with forthcoming post. Thank you one million
and please carry on the gratifying work.
View Genius this Track.scpt
-- click the genius button on the currently playing track
tell application "System Events"
click button 2 of scroll area 1 of window "iTunes" of application process "iTunes"
end tell
View gist:1796731
property theURL : ""
tell application "Safari"
set theURL to URL of current tab of window 1
end tell
tell application "Google Chrome"
open location theURL
activate
end tell
You can’t perform that action at this time.