This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#---------------- | |
# upgrade-8 | |
#---------------- | |
## START | |
# on agoric-upgrade-7-2, with upgrade to agoric-upgrade-8 | |
FROM ghcr.io/agoric/ag0:agoric-upgrade-7-2 as prepare-upgrade-8 | |
ENV UPGRADE_TO=agoric-upgrade-8 | |
# put env functions into shell environment |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Support for Rspec / Capybara subdomain integration testing | |
# Make sure this file is required by spec_helper.rb | |
# (e.g. save as spec/support/subdomains.rb) | |
def switch_to_subdomain(subdomain) | |
# lvh.me always resolves to 127.0.0.1 | |
hostname = subdomain ? "#{subdomain}.lvh.me" : "lvh.me" | |
Capybara.app_host = "http://#{hostname}" | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Hard-code DNS resolver to Google's servers | |
# | |
# *Setup* | |
# # download this file while DNS is working | |
# curl https://gist.github.com/turadg/7876784/raw --output ~/google-resolv.conf | |
# # replace your old DNS resolver | |
# sudo cp /etc/resolv.conf /etc/resolv.conf.auto && sudo mv ~/google-resolv.conf /etc/resolv.conf | |
# # make it uneditable so Vagrant doesn't clobber it | |
# sudo chattr +i /etc/resolv.conf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module MyApp | |
class Application < Rails::Application | |
require Rails.root + 'lib/custom_public_exceptions' | |
config.exceptions_app = CustomPublicExceptions.new Rails.public_path | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
brew update | |
# upgrade any that were already installed | |
brew upgrade rbenv ruby-build readline openssl | |
# install what's missing | |
brew install rbenv ruby-build readline openssl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
/** | |
* Flowtype understands Node (or Haste) imports but not Webpack. | |
* | |
* Many codebases have webpack set up like: | |
* src/foo.js | |
* src/components/Bar.jsx | |
* | |
* And then import them like `require('foo')` or `require/components/Bar.jsx` | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
/** | |
* Since React v15.5, there's a warning printed if you access `React.createClass` or `React.PropTypes` | |
* https://reactjs.org/blog/2017/04/07/react-v15.5.0.html#new-deprecation-warnings | |
* | |
* `import * as React from 'react'` is required by Flowtype https://flow.org/en/docs/react/types/ , | |
* but the * causes both those deprecated getters to be called. | |
* This is particularly annoying in Jest since every test prints two useless warnings. | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "Testing prod build for modules in src that aren't ever imported." | |
echo | |
echo "NOTE: Any dev-only imports will appear to be unused." | |
USED_LIST_PATH=usedModules.txt | |
STATS_PATH=public/assets/stats.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# bash completion for rake | |
# | |
# some code from on Jonathan Palardy's http://technotales.wordpress.com/2009/09/18/rake-completion-cache/ | |
# and http://pastie.org/217324 found http://ragonrails.com/post/38905212/rake-bash-completion-ftw | |
# | |
# For details and discussion | |
# http://turadg.aleahmad.net/2011/02/bash-completion-for-rake-tasks/ | |
# | |
# INSTALL | |
# |
NewerOlder