Skip to content

Instantly share code, notes, and snippets.

View iho's full-sized avatar
🏠
Working from home

iho iho

🏠
Working from home
  • Kyiv, Ukraine
  • 16:47 (UTC +02:00)
View GitHub Profile
@iho
iho / .vimrc
Last active February 4, 2017 09:17
set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" if has('python3')
" let g:syntastic_python_python_exec = 'python3'
" let g:jedi#force_py_version = 3
" endif
if has('python')
@iho
iho / comp.sh
Last active July 13, 2016 13:59
Build vim with two python`s for vim-pyenv
sudo apt-get install libncurses5-dev libgnome2-dev libgnomeui-dev \
libgtk2.0-dev libatk1.0-dev libbonoboui2-dev \
libcairo2-dev libx11-dev libxpm-dev libxt-dev python-dev \
ruby-dev python3-dev
sudo apt-get remove vim vim-runtime vim-common
./configure --with-features=huge \
--enable-multibyte \
# for wheezy 7
# main and backports
deb http://http.debian.net/debian/ wheezy-backports main
deb http://http.debian.net/debian/ wheezy main contrib non-free
deb http://mirror.yandex.ru/debian/ wheezy main contrib non-free
deb http://security.debian.org/ wheezy/updates main contrib non-free
deb http://ftp.debian.org/debian/ wheezy-updates main contrib non-free
@iho
iho / sources.list
Last active August 29, 2015 14:16
debian 8
deb http://http.debian.net/debian/ jessie main contrib non-free
deb http://security.debian.org/ jessie/updates main contrib non-free
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10
echo "deb http://repo.mongodb.org/apt/debian "$(lsb_release -sc)"/mongodb-org/3.0 main" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.0.list
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
sudo apt-get install wget ca-certificates
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo apt-get update
apt-get install wget ca-certificates curl sudo
apt-get install software-properties-common lsb-release
echo "uk_UA.UTF-8 UTF-8"> /etc/locale.gen
locale-gen
apt-get install ncdu htop zsh
apt-get purge python3.4
apt-get install mongodb-org-server postgresql-9.4 nginx # mongodb-org-shell mongodb-org-tools
@iho
iho / pyenv.sh
Last active August 29, 2015 14:16
Install pyenv in not user dir.
sudo apt-get install -y make build-essential libssl-dev zlib1g-dev libbz2-dev \
libreadline-dev libsqlite3-dev wget curl llvm ccache git
export PYENV_ROOT=/pyenv
curl -L https://raw.githubusercontent.com/yyuu/pyenv-installer/master/bin/pyenv-installer | bash
export PATH="/pyenv/bin:$PATH"
eval "$(pyenv init -)"
sudo apt-get install libtiff5-dev libjpeg8-dev zlib1g-dev \ libopenjpeg-dev
libfreetype6-dev liblcms2-dev libwebp-dev
@iho
iho / python3
Last active August 29, 2015 14:16
sudo apt-get install python3-dev python3-pip python3-pillow python3-psycopg2
[push]
default = matching
[user]
name = Ihor Gorobets
email = [email protected]
[color]
ui = true
[alias]
c = commit -m
aa = add .
@iho
iho / .zshrc
Last active July 12, 2016 11:15
ZSH=$HOME/.oh-my-zsh
#set -e
#export CHROMIUM_USER_FLAGS="--disk-cache-dir=/tmp --disk-cache-size=50000000"
ZSH_THEME="robbyrussell"
# ZSH_THEME="kolo"
DEFAULT_USER="ihor"