Get it from the App Store.
In XCode's Preferences > Downloads you can install command line tools.
Steps to install and run PostgreSQL 9.2 using Homebrew (Mac OS X) | |
(if you aren't using version 9.1.5, change line 6 with the correct version) | |
1. launchctl unload -w ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist | |
2. mv /usr/local/var/postgres /usr/local/var/postgres91 | |
3. brew update | |
4. brew upgrade postgresql | |
5. initdb /usr/local/var/postgres -E utf8 | |
6. pg_upgrade -b /usr/local/Cellar/postgresql/9.1.5/bin -B /usr/local/Cellar/postgresql/9.2.0/bin -d /usr/local/var/postgres91 -D /usr/local/var/postgres | |
7. cp /usr/local/Cellar/postgresql/9.2.0/homebrew.mxcl.postgresql.plist ~/Library/LaunchAgents/ |
require 'rspec/core/formatters/progress_formatter' | |
# Custom RSpec formatter that speaks aloud using the say command, if available. | |
# Not to be taken too seriously, but fun for annoying your coworkers. | |
# Usage: bundle exec rspec -r ./say_formatter.rb -f SayFormatter spec | |
class SayFormatter < RSpec::Core::Formatters::ProgressFormatter | |
VOICES = %w[Agnes Albert Alex Bad\ News Bahh Bells Boing Bruce Bubbles Cellos | |
Deranged Fred Good\ News Hysterical Junior Kathy Pipe\ Organ | |
Princess Ralph Trinoids Vicki Victoria Whisper Zarvox] |
## Prepare ################################################################### | |
# Remove RVM | |
rvm implode | |
# Ensure your homebrew is working properly and up to date | |
brew doctor | |
brew update | |
## Install ################################################################### |
/* | |
* Outputs a float representing the iOS version if user is using an iOS browser i.e. iPhone, iPad | |
* Possible values include: | |
* 3 - v3.0 | |
* 4.0 - v4.0 | |
* 4.14 - v4.1.4 | |
* false - Not iOS | |
*/ | |
var iOS = parseFloat( |
#!/usr/bin/env ruby | |
# copy or symlink this file to .git/hooks/ | |
# automatically strip spaces from the end of lines and add newlines to the end of files as necessary | |
filetypes = %w( | |
builder | |
conf | |
css | |
erb | |
haml |