Remove rbenv and any rubies, gems etc.:
$ rm -rf ~/.rbenv
Uninstall rbenv if installed via Homebrew
$ brew uninstall rbenv
Remove references to rbenv in ~/.bash_profile etc.
| MAINTAINER Pete Keen "[email protected]" | |
| # Use Ubuntu 12.04 as the base image | |
| FROM ubuntu:precise | |
| # Install a bunch of prerequisites | |
| RUN apt-get update | |
| RUN apt-get install -y git-core curl wget libssl1.0.0 python-yaml build-essential libssl-dev | |
| # Install ruby-build |
Remove rbenv and any rubies, gems etc.:
$ rm -rf ~/.rbenv
Uninstall rbenv if installed via Homebrew
$ brew uninstall rbenv
Remove references to rbenv in ~/.bash_profile etc.
| require 'yaml' | |
| require 'fileutils' | |
| if ARGV.empty? | |
| $stderr.puts "! Must pass one or more filenames to convert from Syck output to Psych output." | |
| exit 1 | |
| end | |
| bad_files = ARGV.select{ |f| ! File.exists?(f) } | |
| if bad_files.any? |
Out of the box, Homebrew does a default installation on Sphinx:
$ brew install sphinx
However, if you're using MySQL, the thinking-sphinx gem won't work because it needs to use MySQL libraries.
If you managed to screw up the first time, uninstall sphinx first:
$ brew remove sphinx
| #!/bin/env ruby | |
| # lazy hack from Robert Klemme | |
| module Memory | |
| # sizes are guessed, I was too lazy to look | |
| # them up and then they are also platform | |
| # dependent | |
| REF_SIZE = 4 # ? | |
| OBJ_OVERHEAD = 4 # ? |
| module Delayed | |
| module Plugins | |
| class Airbrake < Plugin | |
| module Notify | |
| def error(job, error) | |
| ::Airbrake.notify_or_ignore(error) | |
| super | |
| end | |
| end |
| --colour | |
| -I app |
| Jbuilder.encode do |json| | |
| json.content format_content(@message.content) | |
| json.(@message, :created_at, :updated_at) | |
| json.author do |json| | |
| json.name @message.creator.name.familiar | |
| json.email_address @message.creator.email_address_with_name | |
| json.url url_for(@message.creator, format: :json) | |
| end |
| # Knife Configuration File. | |
| # | |
| # This is a Ruby DSL to set configuration parameters for Knife's | |
| # general options. The default location for this file is | |
| # ~/.chef/knife.rb. If multiple Chef repositories are used, | |
| # per-repository configuration files can be created. A per repository | |
| # configuration file must be .chef/knife.rb in the base directory of | |
| # the Chef repository. For example, | |
| # | |
| # ~/Development/chef-repo/.chef/knife.rb |
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.