Skip to content

Instantly share code, notes, and snippets.

View rbereziuk's full-sized avatar
☯️
Deliberate practice

Roman rbereziuk

☯️
Deliberate practice
  • Ukraine
  • 04:01 (UTC +03:00)
View GitHub Profile
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
# -------------------------------------------------
# --- Box Settings --------------------------------
# -------------------------------------------------
config.vm.box = "ubuntu/trusty64"
config.vm.hostname = "ubuntu"
@rbereziuk
rbereziuk / vimrc
Last active January 22, 2021 07:54
My vimrc
" vim:fdm=marker
"===== 📌 PLUGINS DEFINITION ===== {{{
"Automatic installation of vim-plug
if empty(glob('~/.vim/autoload/plug.vim'))
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
endif
@rbereziuk
rbereziuk / tmux.conf
Created October 14, 2019 22:58
My tmux config
set -g default-terminal "screen-256color"
# Rebind prefix key
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
@rbereziuk
rbereziuk / object.create.js
Created September 17, 2019 22:09
Object.create polyfill for older browsers
if (!Object.create) {
Object.create = function(o) {
if (arguments.length > 1) {
throw new Error(
'Object.create implementation only accepts the first parameter.'
);
}
function F() {}
F.prototype = o;
return new F();
@rbereziuk
rbereziuk / .editorconfig
Created September 17, 2019 21:56
editorconfig
root = true
[*]
indent_style = space
indent_size = 2
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
end_of_line = lf
# editorconfig-tools is unable to ignore longs strings or urls