Skip to content

Instantly share code, notes, and snippets.

View vasergen's full-sized avatar

Vasyl Gendzeliuk vasergen

  • Hamburg, Germany
View GitHub Profile
@vasergen
vasergen / docker.md
Last active September 22, 2016 12:22

###run docker-machine from another cmd on Windows

docker-machine env --shell cmd my-default

see all containers

docker ps -a
@vasergen
vasergen / app.js
Created October 15, 2016 17:59 — forked from stongo/app.js
Joi validation in a Mongoose model
var mongoose = require('mongoose');
mongoose.connect('mongodb://localhost/test');
var db = mongoose.connection;
db.on('error', function() {
return console.error.bind(console, 'connection error: ');
});

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

@vasergen
vasergen / tmux.conf
Created December 3, 2016 23:16 — forked from shinzui/tmux.conf
tmux.conf
# ~/.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
@vasergen
vasergen / cvimrc
Last active December 24, 2017 23:39
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>