Skip to content

Instantly share code, notes, and snippets.

View ikudriavtsev's full-sized avatar

Iurii Kudriavtsev ikudriavtsev

View GitHub Profile
@ikudriavtsev
ikudriavtsev / .bash_profile
Last active October 2, 2017 13:53
My .bash_profile
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
export PATH=/usr/local/bin:/usr/local/sbin:$PATH
# git autocomplete
source /usr/local/etc/bash_completion.d/git-completion.bash
# Ruby gem executables
export PATH=$PATH:$HOME/.gem/ruby/1.8/bin
# coloring
@ikudriavtsev
ikudriavtsev / .vimrc
Created March 20, 2016 08:52
My .vimrc
set number
syntax enable
set t_Co=256
let g:solarized_termcolors=256
set background=dark
colorscheme solarized
filetype plugin indent on
{
"caret_style": "phase",
"color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme",
"draw_white_space": "all",
"fade_fold_buttons": false,
"file_exclude_patterns":
[
"*.pyc",
"*.pyo",
"*.exe",
@ikudriavtsev
ikudriavtsev / gunicorn_restart.py
Created March 12, 2014 20:46
Graceful restart of gunicorn server
# the idea is taken from here: http://unicorn.bogomips.org/SIGNALS.html
import os
import signal
# first we need to get the master process id
# it might be stored in a .pid file, e.g.
# let's assume we have the id in `master_pid`