Skip to content

Instantly share code, notes, and snippets.

View durrantm's full-sized avatar

Michael Durrant durrantm

View GitHub Profile
$ cat .tmux.conf
# mdd tmux settings
set -g history-limit 20000
bind r source-file ~/.tmux.conf \; display "Reloaded!" # Reload with ctrl-r
set -g prefix C-a # prefix from ctrl-b to ctrl-a
unbind C-b # allow ctrl-b for other things
set -sg escape-time 1 # quicker responses
bind C-a send-prefix # Pass on ctrl-a for other apps
set -g base-index 1 # Numbering of windows
set -g pane-base-index 1 # Numbering of panes
repositories_and_ruby_versions=(
# NOTE: The order here is important due to dependencies
# Specifically:
# Company contacts and activerecord-boolean-converter are upstream of rails core
# Most of the other apps are downstream of rails core
'notification::1.7.4'
'supersenderd::1.7.4'
'partycomm::1.7.4'
)
check_rvm_rubies_installed() {
rvm list > $BASE/local_ruby_versions.txt
#TODO local versions=""
for ruby in "${ruby_versions[@]}"
do
versions=$versions"${ruby##*::} "
done
unique_versions=`echo $versions | tr ' ' '\n' | sort -u | tr '\n' ' '`
#!/bin/bash
BASE=~/zipcar
REPOS_AREA=supersender
REPOSITORIES_LOCATION=$BASE/$REPOS_AREA
. `dirname $0`/functions.sh
. `dirname $0`/supersender_repos.sh
### SETUP ##
check_rvm_installed
SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0;
SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0;
SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='TRADITIONAL';
CREATE SCHEMA IF NOT EXISTS `survey_001_models_from_tables` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci ;
USE `survey_001_models_from_tables` ;
-- -----------------------------------------------------
-- Table `survey_001_models_from_tables`.`organizations`
-- -----------------------------------------------------