Never forget to activate that virtualenv or set that environment variable ever again...
-
Install pyenv
brew install pyenv
Download a Kindle-compatible version of the dictionary here. Unzip the .rar archive.
Get the "Send to Kindle" program on your computer. Here's the link for the Mac.
Right-click your recently downloaded (unzipped) dictionary file, and click the "Send to Kindle" menu item. It will arrive on your Kindle shortly.
Once the dictionary has arrived, go to your settings -- on my newish paperwhite, it's at Home > Settings > Device Options > Language and Dictionaries > Dictionaries > English. Choose the Webster's 1913.
javascript:(function(){ | |
var w=window,d=document,selectedTxt=w.getSelection?w.getSelection():(d.getSelection)?d.getSelection():(d.selection?d.selection.createRange().text:0),pageUri=w.location.href,isGMail=w.location.host.match(/mail\.google\.com/),subject=d.title,source; | |
if(isGMail){ | |
var msgFrm=d.getElementById("canvas_frame"),subjectSpans; | |
if(msgFrm){ | |
subjectSpans=msgFrm.contentDocument.getElementsByClassName("hP"); | |
if(subjectSpans)subject=subjectSpans[0].innerText; | |
}; | |
if(!subjectSpans){ | |
subject=d.title.substring(d.title.indexOf("-")+1,d.title.lastIndexOf("-")).replace(/^%20+/,"").replace(/%20+$/,"") |
#!/usr/bin/env ruby -w | |
# brew-services(1) - Easily start and stop formulas via launchctl | |
# =============================================================== | |
# | |
# ## SYNOPSIS | |
# | |
# [<sudo>] `brew services` `list`<br> | |
# [<sudo>] `brew services` `restart` <formula><br> | |
# [<sudo>] `brew services` `start` <formula> [<plist>]<br> |
>>> import appscript | |
>>> things = appscript.app("Things") | |
>>> things.lists.get() | |
[app(u'/Applications/Things.app').lists.ID(u'FocusInbox'), | |
app(u'/Applications/Things.app').lists.ID(u'FocusToday'), | |
app(u'/Applications/Things.app').lists.ID(u'FocusNextActions'), | |
app(u'/Applications/Things.app').lists.ID(u'FocusTickler'), | |
app(u'/Applications/Things.app').lists.ID(u'FocusMaybe'), | |
app(u'/Applications/Things.app').lists.ID(u'FocusActivityLevel-1'), | |
app(u'/Applications/Things.app').lists.ID(u'FocusLogbook'), |
emacs -q --eval '(condition-case err (progn (load "~/.emacs") (kill-emacs 0)) (error (kill-emacs 1)))' | |
# Source http://groups.google.com/group/gnu.emacs.help/browse_thread/thread/bed5b2bd8b237f5a?pli=1 |
#!/bin/sh -e | |
# Usage: license | |
# Prints an MIT license appropriate for totin' around. | |
# | |
# $ license > COPYING | |
year=`date "+%Y"` | |
cat <<EOF | |
Copyright (c) $year Chris Wanstrath | |
Permission is hereby granted, free of charge, to any person obtaining |