Get it from the App Store.
In XCode's Preferences > Downloads you can install command line tools.
| brew update | |
| brew versions FORMULA | |
| cd `brew --prefix` | |
| git checkout HASH Library/Formula/FORMULA.rb # use output of "brew versions" | |
| brew install FORMULA | |
| brew switch FORMULA VERSION | |
| git checkout -- Library/Formula/FORMULA.rb # reset formula | |
| ## Example: Using Subversion 1.6.17 | |
| # |
| <!doctype html> | |
| <title>Site Maintenance</title> | |
| <style> | |
| body { text-align: center; padding: 150px; } | |
| h1 { font-size: 50px; } | |
| body { font: 20px Helvetica, sans-serif; color: #333; } | |
| article { display: block; text-align: left; width: 650px; margin: 0 auto; } | |
| a { color: #dc8100; text-decoration: none; } | |
| a:hover { color: #333; text-decoration: none; } | |
| </style> |
| <item> | |
| <name>Greek Layer</name> | |
| <appendix>Right PC Application key activates the Greek key layer.</appendix> | |
| <identifier>space_cadet.greek_layer</identifier> | |
| <autogen> | |
| --KeyToKey-- | |
| KeyCode::PC_APPLICATION, | |
| KeyCode::VK_STICKY_EXTRA4 |
| # Adds node_modules/.bin to the PATH | |
| npm_chpwd_hook() { | |
| if [ -n "${PRENPMPATH+x}" ]; then | |
| PATH=$PRENPMPATH | |
| unset PRENPMPATH | |
| fi | |
| if [ -f package.json ]; then | |
| PRENPMPATH=$PATH | |
| PATH=$(npm bin):$PATH | |
| fi |
| >>> from jinja2 import Template | |
| >>> tmpl = """{% if name != "Jeff" %}Nothing to see here move along{% else %} | |
| ... hello {{name}}, how are you?{% endif %}""" | |
| >>> template = Template(tmpl) | |
| >>> print template.render({"name": "Jeff"}) | |
| hello Jeff, how are you? | |
| >>> print template.render({"name": "John"}) | |
| Nothing to see here move along | |
| >>> |
This article is now published on my website: A one-off git repo server.
I have spent quite a bit of time figuring out automounts of NFS shares in OS X...
Somewhere along the line, Apple decided allowing mounts directly into /Volumes should not be possible:
/etc/auto_master (see last line):
#
# Automounter master map
#
+auto_master # Use directory service