Skip to content

Instantly share code, notes, and snippets.

View borisaka's full-sized avatar

Boris Kraportov borisaka

View GitHub Profile
set nocompatible
let base16colorspace=256 " Access colors present in 256 colorspace
set nu
set mouse=a
set clipboard+=unnamedplus
set list
set colorcolumn=80
" syntax enable
" File type
filetype plugin on
# Any items in the `env` entry below will be added as
# environment variables. Some entries may override variables
# set by alacritty it self.
env:
# TERM env customization.
#
# If this property is not set, alacritty will set it to xterm-256color.
#
# Note that some xterm terminfo databases don't declare support for italics.
# You can verify this by checking for the presence of `smso` and `sitm` in
# Base16 Shell
set -gx OBJC_DISABLE_INITIALIZE_FORK_SAFETY YES
if status --is-interactive
eval sh $HOME/.config/base16-shell/scripts/base16-twilight.sh
end
set -gx LANG en_US.UTF-8
set -gx LC_ALL en_US.UTF-8
set -gx EDITOR nvim
set -gx PATH /home/linuxbrew/.linuxbrew/bin /opt/Telegram $PATH /usr/local/go/bin /home/boris/go/bin /home/boris/.yarn/bin
set -gx LDFLAGS $LDFLAGS "-L/home/linuxbrew/.linuxbrew/opt/[email protected]/lib" "-L/home/boris/code/rocksdb"
set -g default-terminal "screen-256color"
set -g terminal-overrides 'xterm*:smcup@:rmcup@'
# Mouse
set -g mouse on
#setw -g mode-mouse on
#set -g mouse-select-pane on
# VI key binding
set -g status-keys vi
setw -g mode-keys vi
# Set prefix to ``
set nocompatible
let base16colorspace=256 " Access colors present in 256 colorspace
set nu
set mouse=a
" syntax enable
" File type
filetype plugin on
filetype plugin indent on " Enable filetype-specific plugins
"""""""""""""COMMON EDITOR RULES"""""""""""""""""""
set tabstop=4
@borisaka
borisaka / create_chrootjail.sh
Created August 6, 2017 05:57 — forked from schnell18/create_chrootjail.sh
Script to automate the creation of chroot jail w/ minimal executables to run git.
#!/bin/sh
# script to automate the creation of chroot jail
# w/ minimal executables to run git
export CHROOT=/var/chroot
function copy_binary() {
for i in $(ldd $*|grep -v dynamic|cut -d " " -f 3|sed 's/://'|sort|uniq)
do
cp --parents $i $CHROOT
@borisaka
borisaka / README.md
Created July 6, 2017 03:56 — forked from Lazza/README.md
VPNGate Python script

vpngate.py

This script allows to use the free VPN service provided by VPNGate in an easy way. The user just needs to provide the desidered output country, and the script automatically chooses the best server.

After this step, OpenVPN is launched with the proper configuration. The VPN can be terminated by pressing Ctrl+C.

Usage

Run the script by providing the desired output country:

@borisaka
borisaka / gist:65d1d0d92a9dcbd04a1bc6f494837be4
Created May 29, 2017 17:54 — forked from jfreeze/gist:8894279
Get VI bindings in IEX (Elixir REPL)
# VI bindings in iex:
brew install rlwrap # on OSX
echo "alias iex='rlwrap -a foo iex'" >> ~/.bash_profile
echo "set editing-mode vi" >> ~/.inputrc
source ~/.bash_profile
# To run iex WITHOUT rlwrap
\iex
@borisaka
borisaka / build-boost-libc++
Created April 18, 2017 11:30 — forked from jimporter/build-boost-libc++
Build Boost against libc++
#!/bin/sh
# First, build libc++ See <http://libcxx.llvm.org/>, "Build on Linux using CMake
# and libsupc++." and substitute libsupc++ for libstdc++. NOTE: You'll probably
# need to explicitly link libsupc++ when you compile your own code!
#
# Next, download Boost and extract it somewhere. Set SRC_DIR to that location.
SRC_DIR=$HOME/src/boost_1_55_0
# Set this to be the install prefix. "/usr" is also a good choice.