I hereby claim:
- I am christiannelson on github.
- I am xianpants (https://keybase.io/xianpants) on keybase.
- I have a public key ASDLBvmc60ul0izAzkjTOx1ttbTt3MZ4Nx6jC2q49WPx-Qo
To claim this, I am signing this object:
| Uninstall any existing node and nodenv brew packages | |
| $ brew uninstall node nodenv nodenv-default-packages node-build-update-defs | |
| Move any existing nodenv config out of the way | |
| $ mv ~/.nodenv ~/.nodenv.orig | |
| Start a new shell | |
| Clone the nodenv repo in a scratch directory | |
| $ cd Code/scratch |
| # The steps for upgrading a Heorku PostgreSQL database. | |
| # | |
| # https://devcenter.heroku.com/articles/upgrading-heroku-postgres-databases | |
| # https://elements.heroku.com/addons/heroku-postgresql | |
| heroku addons:create heroku-postgresql:hobby-basic -r production | |
| heroku pg:info -r production | |
| # Note the database names, we'll call them HEROKU_POSTGRESQL_NEW_URL and HEROKU_POSTGRESQL_OLD_URL | |
| heroku maintenance:on -r production |
| #!/bin/sh | |
| # This script captures a series of git commands that emcompass merging a feature into a target branch, like | |
| # development or master. It updates the target branch and rebases the feature before merging with --no-ff. | |
| # The end result is that there's always a merge commit and all of the commits are at the top of the timeline. | |
| # This makes for easier to read git histories, especially with active teams. | |
| # Is this a git repo? | |
| if [[ ! -d .git ]]; then | |
| echo "\nDirectory is not a git repo. Exiting...\n" |
| #!/bin/sh | |
| echo "\nBootstrapping this machine...\n" | |
| # Install HomeBrew | |
| # HOMEBREW_PREFIX="/opt/homebrew" | |
| if ! command -v brew >/dev/null; then | |
| echo "- Installing Homebrew..." |
| require_relative 'boot' | |
| require 'rails/all' | |
| # Require the gems listed in Gemfile, including any gems | |
| # you've limited to :test, :development, or :production. | |
| Bundler.require(*Rails.groups) | |
| module EnumTest | |
| class Application < Rails::Application |
| class Client < ActiveRecord::Base | |
| has_many :projects | |
| scope :active, -> { where(active: true) } | |
| end | |
| class Project < ActiveRecord::Model | |
| belongs_to :client | |
| scope :active, -> { |
I hereby claim:
To claim this, I am signing this object:
| # Opinionated instructions for setting up a laptop for development at Carbon Five. | |
| # Not intended to be run wholesale; read, interpret, tweak (maybe), then run piece by piece. | |
| # | |
| # Tested against Yosemite 10.10. | |
| #-------------------------------------- | |
| # Install Homebrew. | |
| ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" |
These instructions walk you through using Raygun to generate a new app, pushing it to GitHub, deploying it to Heroku (two envs: production and acceptance), and setting up continuous integration and deployment using CircleCI. There's a preference for command-line operations when possible.
brew install heroku-toolbelt)brew install postgres) and runningcreateuser -s postgres)brew install phantomjs)gem install hub)