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
# My Heroku git production remote is called 'production' | |
git remote -v | |
# Yields: | |
# | |
# origin git@github.com:Loft47/loft.git (fetch) | |
# origin git@github.com:Loft47/loft.git (push) | |
# production https://git.heroku.com/loft47-prod.git (fetch) | |
# production https://git.heroku.com/loft47-prod.git (push) | |
# staging https://git.heroku.com/vey-staging.git (fetch) |
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
When you have a bunch of poorly written Rails migrations that include data migrations, sometimes it is impossible to update very old databases because the migrations required old versions of the code. | |
How to get around this? | |
Use git-bisect. |
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 | |
VOL_ID=$1 | |
DESCRIPTION=$2 | |
MAX_BACKUPS=$3 | |
ERROR_EMAIL=test@developer.com | |
LOG_FILE=~/aws_vol_backup.log | |
function log { |
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
--- | |
# file ruby.yml | |
- hosts: all | |
gather_facts: false | |
sudo: true | |
vars: | |
# Where to install rbenv | |
- rbenv_root: /usr/local/rbenv | |
# The version of Ruby to install |
NewerOlder