This guide assumes a fresh install of Mac OSX 10.7 Lion.
export PATH=/usr/local/bin:$PATH | |
export PATH=/usr/local/share/python:$PATH | |
RED="\[\033[01;31m\]" | |
GREEN="\[\033[32m\]" | |
LGREEN="\[\033[01;32m\]" | |
YELLOW="\[\033[01;33m\]" | |
BLUE="\[\033[01;34m\]" | |
PURPLE="\[\033[01;35m\]" | |
CYAN="\[\033[01;36m\]" |
Sublime Text 2 ships with a CLI called subl (why not "sublime", go figure). This utility is hidden in the following folder (assuming you installed Sublime in /Applications
like normal folk. If this following line opens Sublime Text for you, then bingo, you're ready.
open /Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl
You can find more (official) details about subl here: http://www.sublimetext.com/docs/2/osx_command_line.html
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
import sqlite3 | |
import sys | |
import re | |
import uuid | |
from bs4 import * | |
import lxml | |
import unicodedata |
Ideas are cheap. Make a prototype, sketch a CLI session, draw a wireframe. Discuss around concrete examples, not hand-waving abstractions. Don't say you did something, provide a URL that proves it.
Nothing is real until it's being used by a real user. This doesn't mean you make a prototype in the morning and blog about it in the evening. It means you find one person you believe your product will help and try to get them to use it.
This has been incorporated in a small library.
#!/usr/bin/env python | |
import sys | |
import urllib | |
import urlparse | |
import base64 | |
import mimetypes | |
import cgi | |
from os import path |
Last updated: 2017-03-18
exiftool -filename -filemodifydate -createdate -r -if '(not $datetimeoriginal) and $filetype eq "JPEG"' .
###Output photos that don't have datetimeoriginal to a CSV### Note this can take a long time if you have a lot of jpgs
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.
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.
(* | |
Export All Safari Tabs in All Open Windows to a Markdown File | |
July 13, 2015 | |
// SCRIPT PAGE | |
http://hegde.me/urlsafari | |
// ORIGINAL SCRIPT ON WHICH THIS SCRIPT IS BUILT | |
http://veritrope.com/code/export-all-safari-tabs-to-a-text-file |