Skip to content

Instantly share code, notes, and snippets.

// set variables for environment
var express = require('express');
var app = express();
var path = require('path');
var port = 4000;
// Displays server log in the CLI
app.use(express.logger());
// Set server port
bigtiger@world-1:~$ gem install dictatorship —version ‘benevolent’
Fetching: i18n-0.6.9.gem (100%)
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions for the /Library/Ruby/Gems/2.0.0 directory.
@bigtiger
bigtiger / dosh.sh
Last active August 29, 2015 14:22
Show list of docker containers and make it easier to connect to them.
function dosh() {
if [ "$1" != "" ]
then
docker exec -i -t `docker ps|grep $1|cut -d ' ' -f 1` bash
else
docker ps|grep gopro.*:latest|grep -v postgres|cut -d ' ' -f 1-10
fi
}
What do all of these have in common?
Units per USD
TIC-PC
########
TIC-PI
USD per Unit
###BACKUP###
ZERO GRAVITY TOILET
PASSENGERS ARE ADVISED TO
READ INSTRUCTIONS BEFORE USE
1
The toilet is of the standard zero-gravity type. Depending on
requirements, system A and/or system B can be used, details of which
are clearly marked in the toilet compartment. When operating system A,
set :application, "deezmag"
default_run_options[:pty] = true
set :scm, "git"
set :repository, "git@github.com:obie/#{application}.git"
set :repository_cache, "git_cache"
set :deploy_via, :copy
set :ssh_options, {
:keys => ["#{ENV['HOME']}/.ec2/id_rsa-hashrocket-utility-keypair"]
}
Host builder
HostName ec2-174-129-130-182.compute-1.amazonaws.com
Port 4777
User root
IdentityFile ~/.ec2/id_rsa-hashrocket-utility-keypair
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAuirJan8xTTn77RlOtDY5xAI7YSzEnD+1KWSLWYfiGfqDD32fwIJqeF6Icts6FENhsvwSEPOy6OoNq2mDALs7bHfgZFFIRohWQSRxVYe2MmOVKpe15WmxFHEdDPAovJc/cs9ve8MqiSbfP3YbSBrFFSoaGpzlKbYgLhleCNHXVAQ/AFzOgoQS8QpZgWr32ebSJ0M58zx5GVEFlqVXb7J2vk/b16B/cFKmAVsfEcEgxbOV9bjswTD/GTnZPyLB3X7s6UBeI7XLVnjDV4cpQLegZqIaJAfeCQLN2OkrQGxQgHymDXSUsiUzNqDGSsYRH9di+sc8xkLT9RS7bQrkgLV54w== root@domU-12-31-39-02-F5-77

Pair Programming: The Hashrocket Way

Description

See a real-life implementation of pair programming. Hashrocket, a consultancy of less than twenty developers has effectively paired all of our developers up on projects since day one and created better software and a better team in the process.

Abstract

script/plugin install git://github.com/freelancing-god/thinking-sphinx.git