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 / 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 / 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