Skip to content

Instantly share code, notes, and snippets.

Avatar

takuya@mori takuya

  • Osaka City Univ
  • Osaka,Japan
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

@dtinth
dtinth / README.md
Created Oct 29, 2014
iPhoto Location Export
View README.md

iPhotoLocation

Exports the locations of photos in a photo album as JSON data...

osascript -l JavaScript iPhotoLocation.js "NAIST Internship"
@Griever
Griever / LinkDragSelectionForChrome.user.js
Created Feb 21, 2013
Chrome で Opera 風のリンクテキストの選択を再現するスクリプト
View LinkDragSelectionForChrome.user.js
// ==UserScript==
// @name LinkDragSelectionForChrome
// @description Opera like link selection for chrome.
// @namespace http://d.hatena.ne.jp/Griever/
// @author Griever
// @license MIT License
// @match http://*/*
// @match https://*/*
// @version 0.0.1
// ==/UserScript==
View fastforward.uc.js
// ==UserScript==
// @name fastforward.uc.js
// @namespace http://d.hatena.ne.jp/Griever/
// @include main
// @compatibility Firefox 4.0
// @charset UTF-8
// @license MIT License
// @version 0.0.1
// @note 昔作ったものが埋もれていたので公開
// ==/UserScript==