Skip to content

Instantly share code, notes, and snippets.

Scott Smith oldfartdeveloper

View GitHub Profile

Multiple MySQL Versions with Homebrew

NOTE: this is me experimenting w/ more recent versions. This isn't working yet.

For homebrew version 1.3.0.

brew -v # => Homebrew 1.3.0

Install the current version of mysql.

View gist:a7143b989127b22e042faf033748111e
### Keybase proof
I hereby claim:
* I am oldfartdeveloper on github.
* I am oldfartdeveloper ( on keybase.
* I have a public key ASDjaJO8NVzg3hCTtiT6HRrNYioJ7C_Zf6pK8LkqXCBwiAo
To claim this, I am signing this object:
oldfartdeveloper /
Created Oct 23, 2015
My Elixirconf 2015 Austin Notes

Advanced Phoenix Traiing


  • web only has code that has no state. Changes to these files auto- restarts the server.
  • lib functionality manages state. (Note: server does not auto-reload w/ changes to these.

What is above is a property of :reloadable_paths.

oldfartdeveloper /
Created Oct 23, 2015
LA RubyConf 2015 Notes

LA RubyConf 2015

  • Hired, a placement company for developers is a sponsor

Build to last - Mike Moore - blomage


  • Write code for other programmers, not machines.
  • Code should represent the best understanding of the programmer when he writes it.
oldfartdeveloper / gist:bc4ee2ce8978e933424e
Last active Aug 29, 2015
Declarative implementation of Imperative Cucumber-like RSpec
View gist:bc4ee2ce8978e933424e

Here's the original:

require 'spec_helper'

feature "A user signing up for a beta invitation" do
  scenario "with valid parameters" do
    visit '/'
    fill_in "Name", with: "John Doe"
    fill_in "Email", with: ""
oldfartdeveloper /
Last active Jun 26, 2017
Driving Instructions to Orphanage from Dianne's House

Driving Instructions to Orphanage from Dianne's House

These instructions can be accessed two ways:

  • As a paper handout; see Dianne.
  • As a PDF file in your smart phone. The iPhone, for one, has iBooks which can hold a PDF file in your smart phone's memory and access it. Once loaded, you don't have to have a live Internet connection; this is handy when you want to turn off access in México to avoid (expensive!) roaming charges.
oldfartdeveloper /
Last active Aug 29, 2015
Opal can't seem to find Cucumber gem.

I'm trying to spike running Cucumber in Opal; it's not find it, and I don't know why.

Here's my app/application file. The only change is the addition of the last 3 lines:

# when using sprockets/rails, we must include the corelib
require 'opal'

[1, 2, 3].each { |a| puts a }
oldfartdeveloper / gist:5842002
Created Jun 22, 2013
A simple Ruby structure for experimenting with classes and definitions without having to retype them in (as in `irb`).
View gist:5842002

Use this as a template from your favorite editer/IDE. Simple replace the comment in the #execute method with your experiment.

class DirtyHarry

  def execute

    # Feeling lucky, punk?

oldfartdeveloper / gist:3956644
Created Oct 26, 2012 — forked from fkchang/gist:3956417
rails gem file for opal_test
View gist:3956644
# create app
rails new opal_test
# add to Gemfile below ruby
gem 'haml'
gem 'haml-rails'
gem 'opal-rails'
# generate controller w index action
You can’t perform that action at this time.