Skip to content

Instantly share code, notes, and snippets.

View ibroadfo's full-sized avatar

Iain D Broadfoot ibroadfo

View GitHub Profile
@ibroadfo
ibroadfo / readinglist.py
Last active September 23, 2018 21:53
Export Safari Reading List bookmarks to pinboard
#!/usr/bin/env python
"""
forked from http://alexwlchan.net/2015/11/export-urls-from-safari-reading-list/
Requires Python 3.
"""
import os
import plistlib
INPUT_FILE = os.path.join(os.environ['HOME'], 'Library/Safari/Bookmarks.plist')
[alias]
branchdates = for-each-ref --sort=-committerdate refs/heads/ --format='%(committerdate:relative) %09 %(refname:short)'
branchdatesandremotes = ! git for-each-ref --sort=-committerdate --format='%(committerdate:relative) %09 %(refname:short)'|head
wdiff = diff --word-diff -D
wdiffdot = diff --word-diff -D --word-diff-regex=.
vcherry = cherry -v
graphlog = log --graph --oneline --decorate
graphlogall = log --graph --all --oneline --decorate
wibble
<script type="text/javascript" src="http://ibroadfo.tumblr.com/js"></script>