Skip to content

Instantly share code, notes, and snippets.

View rmondello's full-sized avatar

Ricky Mondello rmondello

View GitHub Profile
@rmondello
rmondello / gist:b933231b1fcc83a7db0b
Last active October 6, 2024 20:11
Exporting (iCloud) Keychain and Safari credentials to a CSV file

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

Update (October 2021)

Exporting password + one-time code data from iCloud Keychain is now officially supported in macOS Monterey and Safari 15 (for Monterey, Big Sur, and Catalina). You can access it in the Password Manager’s “gear” icon (System Preferences > Passwords on Monterey, and Safari > Passwords everywhere else), or via the File > Export > Passwords... menu item). You shouldn't need to hack up your own exporter anymore.

Original, Obsolete Content (2014)

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.

#!/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 August 15, 2012 05:53 — forked from tangphillip/contributions.sh
Find your contributions to a git repo, by file
# 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 March 6, 2012 03:10
Fantastic Spam Comment
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.
-- 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
@rmondello
rmondello / gist:1796731
Created February 11, 2012 05:33
Open in Chrome
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