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 / 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>
one one one
one one one
one one one
one one one
one one one
one one one
@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:
#

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

@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: ');
});
@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 / google_text2speech.md
Created September 20, 2016 13:53 — forked from alotaiba/google_text2speech.md
Google Text to Speech API

Google Text to Speech API

Base URL: http://translate.google.com/translate_tts
It converts written words into audio. It accepts GET requests.

GET

q
The query string to convert to audio

tl
Translation language, for example, ar for Arabic, or en-us for English

@vasergen
vasergen / .npmrc
Created September 19, 2016 19:15 — forked from kentcdodds/.npmrc
save-exact=true
@vasergen
vasergen / gist:37d5446a8acec67d1e1fa2138635bc84
Created September 15, 2016 07:55 — forked from totherik/gist:3a4432f26eea1224ceeb
v8 --allow-natives-syntax RuntimeFunctions
Per https://code.google.com/p/v8/codesearch#v8/trunk/src/runtime.cc
%CreateSymbol
%CreatePrivateSymbol
%CreateGlobalPrivateSymbol
%NewSymbolWrapper
%SymbolDescription
%SymbolRegistry
%SymbolIsPrivate