Skip to content

Instantly share code, notes, and snippets.

@guilhermeteodoro
guilhermeteodoro / mavericks_installation_guide.md
Last active November 1, 2016 16:27
CJ installation guide for mavericks

OSX - Mavericks

HomeBrew

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

brew update
brew upgrade
# create file adb-hosts
192.168.0.133 adm.dev
192.168.0.133 api.clickjogos.dev
192.168.0.133 clickjogos.dev
192.168.0.133 connect.clickjogos.dev
192.168.0.133 devcenter.dev
192.168.0.133 jdm.dev
192.168.0.133 m.clickjogos.dev
192.168.0.133 sso_example.clickjogos.dev
@guilhermeteodoro
guilhermeteodoro / gist:3771ea060d25b9e11ec67632eb757970
Created November 9, 2021 13:45 — forked from tombh/gist:b45e86788620435adc5a
Use .env file to filter sensitive data from VCR cassettes
# Assuming that you're using .env to store your sensitive app credentials, then you can
# use VCR's `filter_sensitive_data` method to convert occurrences of those credentials
# to `<%= ENV['#{key}'] %>` in your recorded VCR cassettes.
require 'vcr'
# Use the .env file to compile the list of sensitive data that should not be recorded in
# cassettes
def sensitive_strings
contents = File.read "#{Rails.root}/.env"