Get it from the App Store.
In XCode's Preferences > Downloads you can install command line tools.
| # frozen_string_literal: true | |
| # By default, ActiveRecord will issue a PING command to the database to check | |
| # if it is active at various points. This overhead is unnecessary; we instead | |
| # attempt to issue queries without checking the connection, then if the query | |
| # returns an error and the connection was closed, try to reconnect. | |
| # This also allows for reconnection during a single UoW, improving resiliency | |
| # under transient connection failure (e.g. ProxySQL restarts). | |
| # | |
| # To avoid amplifying load when a database is intermittently down, the attempt |
| source :rubygems | |
| gem "puma" | |
| gem "sinatra" |
| class ActionDispatch::Routing::Mapper | |
| def draw(routes_name) | |
| instance_eval(File.read(Rails.root.join("config/routes/#{routes_name}.rb"))) | |
| end | |
| end | |
| BCX::Application.routes.draw do | |
| draw :api | |
| draw :account | |
| draw :session |
This installs a patched ruby 1.9.3-p327 with various performance improvements and a backported COW-friendly GC, all courtesy of funny-falcon.
You will also need a C Compiler. If you're on Linux, you probably already have one or know how to install one. On OS X, you should install XCode, and brew install autoconf using homebrew.
| source 'http://rubygems.org' | |
| gem 'rails', '3.0.4' | |
| group :test do | |
| gem 'database_cleaner' | |
| gem 'rspec-rails' | |
| gem 'rspec-rails-matchers' | |
| gem 'sham' | |
| gem 'spork', '=0.9.0.rc7' |
| " | |
| " While editing a Markdown document in Vim, preview it in the | |
| " default browser. | |
| " | |
| " Author: Nate Silva | |
| " | |
| " To install: Place markdown.vim in ~/.vim/ftplugin or | |
| " %USERPROFILE%\vimfiles\ftplugin. | |
| " | |
| " To use: While editing a Markdown file, press ',p' (comma p) |
| For the last two years I've been using Ubuntu Linux for software development. | |
| Last week I got a MacBook Pro and have been changing over. I run a heavily | |
| customized vim setup, so the change was particularly difficult with regards to | |
| my keyboard layout. | |
| These step show what I did to make my Mac work like my Linux machines which all | |
| have caps-lock remapped to control. I used OSX's built in keyboard setup tool | |
| to remap my caps-lock key to be a command key, since command, for the most | |
| part, takes the place of control as the primary shortcut key modifier. |