First, fire it up using
mux new sprucemail
Then close it down (Ctrl-B D) and start up tmux using the iTerm2 integration
tmux -CC attach
function __fish_hg_prompt --description 'Promp function for Mercurial' | |
# Colors | |
set -l color_branch (set_color magenta) | |
set -l color_cleanslate (set_color green) | |
set -l color_added (set_color green) | |
set -l color_modified (set_color blue) | |
set -l color_removed (set_color red) | |
set -l color_unknown (set_color magenta) | |
set -l color_deleted (set_color cyan) | |
set -l color_renamed (set_color yellow) |
00:00.0 Host bridge [0600]: Intel Corporation 5520 I/O Hub to ESI Port [8086:3406] (rev 13) | |
00:01.0 PCI bridge [0604]: Intel Corporation 5520/5500/X58 I/O Hub PCI Express Root Port 1 [8086:3408] (rev 13) | |
00:03.0 PCI bridge [0604]: Intel Corporation 5520/5500/X58 I/O Hub PCI Express Root Port 3 [8086:340a] (rev 13) | |
00:05.0 PCI bridge [0604]: Intel Corporation 5520/X58 I/O Hub PCI Express Root Port 5 [8086:340c] (rev 13) | |
00:06.0 PCI bridge [0604]: Intel Corporation 5520/X58 I/O Hub PCI Express Root Port 6 [8086:340d] (rev 13) | |
00:07.0 PCI bridge [0604]: Intel Corporation 5520/5500/X58 I/O Hub PCI Express Root Port 7 [8086:340e] (rev 13) | |
00:09.0 PCI bridge [0604]: Intel Corporation 5520/5500/X58 I/O Hub PCI Express Root Port 9 [8086:3410] (rev 13) | |
00:14.0 PIC [0800]: Intel Corporation 5520/5500/X58 I/O Hub System Management Registers [8086:342e] (rev 13) | |
00:14.1 PIC [0800]: Intel Corporation 5520/5500/X58 I/O Hub GPIO and Scratch Pad Registers [8086:3422] (rev 13) | |
00:14.2 PIC [0800]: Intel Corporation 5520/5500/X |
var httpResponseQueue = Ember.A(); | |
var checkQueueInterval = null; | |
var checkQueue = function() { | |
for (var i = 0; i < httpResponseQueue.length; i++) { | |
var queuedItem = httpResponseQueue[i]; | |
var found = fakehr.match(queuedItem.verb.toUpperCase(), queuedItem.url); | |
if (found) { | |
found.respond(queuedItem.status || 200, {'content-type': 'application/json'}, queuedItem.body); |
First, fire it up using
mux new sprucemail
Then close it down (Ctrl-B D) and start up tmux using the iTerm2 integration
tmux -CC attach
post.attachments << image.as(ImageProcessing::Roles::ImageAttacher) { |i| i.attach } |
name: sprucemail | |
root: /Users/nathan/Source/SpruceMail/App | |
pre_window: rvm use (cat .ruby-version) | |
windows: | |
- redis: redis-server | |
- node: sleep 1; node ../messaging/server.js | |
- guard: bundle exec guard -P livereload | |
- queue: bundle exec sidekiq -C config/sidekiq.yml |
def main_method | |
puts '1: Start' | |
some_method_with_block do | |
puts '2: Inside' | |
fail 'Something bad happened' | |
end | |
puts '3: Finish' | |
end | |
def some_method_with_block |
#!/usr/bin/env bash | |
# make sure it's setup as UTF-8 by default | |
update-locale LANG=C.UTF-8 LC_ALL=C.UTF-8 | |
dpkg-reconfigure locales | |
# install postgres | |
apt-get update | |
apt-get -y install postgresql-9.3 postgresql-server-dev-9.3 postgresql-contrib-9.3 | |
sed -i '/local all all peer/c\local all all trust' /etc/postgresql/9.3/main/pg_hba.conf |
#!/usr/bin/env bash | |
# install rvm | |
gpg --keyserver hkp://keys.gnupg.net --recv-keys D39DC0E3 | |
curl -sSL https://get.rvm.io | bash -s stable | |
source /etc/profile | |
rvm install ruby-2.1.2 |
# Postgres | |
source <(curl -s https://gist.githubusercontent.com/nathanpalmer/aa102e03ab3c9432f8c5/raw/718f019bfef9984c4aaf6feaa559809bf014039f/install-postgres.sh) | |
# Redis | |
sudo apt-get install redis-server redis-tools -y | |
# RVM | |
source <(curl -s https://gist.githubusercontent.com/nathanpalmer/b00226cc57a3eaed3110/raw/ef458d3c21f1350d595cb674737e9eb47f87c79b/install-rvm.sh) | |
# Other things we need |