For MacOS Catalina, visit Install mysql2 on MacOS Catalina
Installing mysql2
gem errors on MacOS Mojave.
Make sure openssl
is installed on Mac via Homebrew.
For MacOS Catalina, visit Install mysql2 on MacOS Catalina
Installing mysql2
gem errors on MacOS Mojave.
Make sure openssl
is installed on Mac via Homebrew.
brew tap homebrew/versions | |
brew install v8-315 | |
gem install libv8 -v '3.16.14.13' -- --with-system-v8 | |
gem install therubyracer -- --with-v8-dir=/usr/local/opt/v8-315 | |
bundle install |
#!/usr/bin/env ruby | |
require 'optparse' | |
require 'fileutils' | |
DB_CONFIG=<<EOF | |
default: &default | |
hostname: localhost | |
adapter: postgresql | |
pv -tpreb ~/path/to/foo.img | sudo dd of=/dev/rdisk2 bs=1m |
#!/bin/sh | |
# So you've installed XCode 6 Beta | |
# Now we could use Swift toolchain to build a minimal | |
# command line Hellow World | |
# let's set new Developer Toolchain bundled with Xcode6-Beta.app | |
# as default toolchain | |
# sudo xcode-select -s /Applications/Xcode6-Beta.app/Contents/Developer | |
# alias for Swift binary |
To remove a submodule you need to: | |
Delete the relevant line from the .gitmodules file. | |
Delete the relevant section from .git/config. | |
Run git rm --cached path_to_submodule (no trailing slash). | |
Commit and delete the now untracked submodule files. |
# USAGE: Hash.from_xml(YOUR_XML_STRING)require 'rubygems' | |
require 'nokogiri' | |
# modified from http://stackoverflow.com/questions/1230741/convert-a-nokogiri-document-to-a-ruby-hash/1231297#123129 | |
7 | |
class Hash | |
class << self | |
def from_xml(xml_io) | |
begin | |
result = Nokogiri::XML(xml_io) |