Skip to content

Instantly share code, notes, and snippets.

Convert CRLF to LF
find . -name '*.p?' -exec dos2unix {} \;

Get mount point for a directory
df -P /di/rec/to/ry | tail -1 | cut -d' ' -f 1

@amaslenn
amaslenn / .vimrc
Last active February 26, 2017 16:18
Vim config
" Vundle and friends
set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'flazz/vim-colorschemes'
call vundle#end()
filetype plugin indent on
" colorscheme
@amaslenn
amaslenn / Preferences.sublime-settings
Last active July 12, 2016 06:25
Sublime Text 3 settings
{
"default_line_ending": "unix",
"draw_white_space": "all",
"enable_tab_scrolling": false,
"highlight_line": true,
"highlight_modified_tabs": true,
"ignored_packages":
[
"Vintage"
],
@amaslenn
amaslenn / .gitconfig
Last active May 15, 2017 09:24
Git aliases and config for Beyond Compare 3
[user]
name = Maslennikov, Andrey
email = andrew.maslennikov@gmail.com
[alias]
st = status -sb
br = branch
co = checkout
ci = commit
rb = rebase
hist = log --graph --pretty=format:\"%C(red)%h%C(reset) %C(cyan)%ad%C(reset) [%C(green)%an%C(reset)] %C(bold)%d%C(reset) %s\" --abbrev-commit --date=short