As configured in my dotfiles.
start new:
tmux
start new with session name:
As configured in my dotfiles.
start new:
tmux
start new with session name:
# | |
# This config file is a combination of ideas from: | |
# http://www.37signals.com/svn/posts/1073-nuts-bolts-haproxy | |
# http://www.igvita.com/2008/05/13/load-balancing-qos-with-haproxy/ | |
# http://wiki.railsmachine.com/HAProxy | |
# http://elwoodicious.com/2008/07/15/nginx-haproxy-thin-fastcgi-php5-load-balanced-rails-with-php-support/ | |
# http://upstream-berlin.com/2008/01/09/using-haproxy-with-multiple-backends-aka-content-switching/ | |
# http://wiki.railsmachine.com/HAProxy | |
# http://gist.github.com/raw/25482/d39fb332edf977602c183194a1cf5e9a0b5264f9 | |
# |
var express = require('express'); | |
var mongoose = require('mongoose'); | |
var dbs = {}; | |
for (var i = 0; i < 40; i++) { | |
dbs['t' + i] = mongoose.createConnection('mongodb://localhost/t' + i + '__multitenant', { server: { poolSize: 5 } }); | |
} | |
var app = express(); |
var dbs = db.getMongo().getDBNames(); | |
for (var i in dbs) { | |
db = db.getMongo().getDB( dbs[i] ); | |
if (db.getName().indexOf('multitenant') > -1) { | |
print('dropping db ' + db.getName()); | |
db.dropDatabase(); | |
} | |
} |
<!doctype html> | |
<html ng-app="Demo"> | |
<head> | |
<meta charset="utf-8" /> | |
<title> | |
Animating A Single Item Using ngRepeat And ngAnimate In AngularJS | |
</title> | |
<link rel="stylesheet" type="text/css" href="./demo.css"></link> |
This script is no longer required with Docker for Mac which includes an option to run Docker at startup and doesn't use docker-machine
to administer the local Docker engine.
docker-machine create --driver virtualbox default
(this is the default with Docker toolkit).(function () { | |
"use strict"; | |
var _theme; | |
angular | |
.module('mdColors',['mdColors']) | |
.config(['$mdThemingProvider', function($mdThemingProvider){ | |
_theme = $mdThemingProvider.theme(); |