###run docker-machine from another cmd on Windows
docker-machine env --shell cmd my-defaultdocker ps -a| var mongoose = require('mongoose'); | |
| mongoose.connect('mongodb://localhost/test'); | |
| var db = mongoose.connection; | |
| db.on('error', function() { | |
| return console.error.bind(console, 'connection error: '); | |
| }); | |
As configured in my dotfiles.
start new:
tmux
start new with session name:
| # ~/.tmux.conf | |
| # | |
| # See the following files: | |
| # | |
| # /opt/local/share/doc/tmux/t-williams.conf | |
| # /opt/local/share/doc/tmux/screen-keys.conf | |
| # /opt/local/share/doc/tmux/vim-keys.conf | |
| # | |
| # URLs to read: | |
| # |
| one one one | |
| one one one | |
| one one one | |
| one one one | |
| one one one | |
| one one one | |
| let barposition = "bottom" | |
| command g tabnew google | |
| let searchalias g = "google" | |
| let @@reddit_prog = 'http://www.reddit.com/r/programming' | |
| map gts :tabnew http://www.reddit.com/r/programming<CR> | |
| map gtf :tabnew https://www.figo.io/en/<CR> | |
| map gtt :tabnew https://trello.com/b/hhP1nPMu/todo<CR> |