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
[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 |
{ | |
"default_line_ending": "unix", | |
"draw_white_space": "all", | |
"enable_tab_scrolling": false, | |
"highlight_line": true, | |
"highlight_modified_tabs": true, | |
"ignored_packages": | |
[ | |
"Vintage" | |
], |
" 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 |
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
# run external cmd and dump its output in ~realtime | |
sub run_or_die { | |
my $cmd = shift; | |
local $| = 1; | |
say "[cmd]: $cmd"; | |
open my $hp, "$cmd |" or die "$!\n"; | |
while (<$hp>) { | |
s/\r|\n//g; | |
say; |
# found here: http://stackoverflow.com/questions/1286183/git-find-fat-commit | |
#!/usr/bin/perl | |
foreach my $rev (`git rev-list --all --pretty=oneline`) { | |
my $tot = 0; | |
($sha = $rev) =~ s/\s.*$//; | |
foreach my $blob (`git diff-tree -r -c -M -C --no-commit-id $sha`) { | |
$blob = (split /\s/, $blob)[3]; | |
next if $blob == "0000000000000000000000000000000000000000"; # Deleted | |
my $size = `echo $blob | git cat-file --batch-check`; |
git checkout <tag> | |
make configure | |
./configure --with-curl | |
make -j4 all doc | |
sudo make install install-man |
№ | Work time | Rest time | Full time | Pure work | Pure rest |
---|---|---|---|---|---|
1 | 20 | 5 | 00:25 | 00:20 | 00:05 |
2 | 20 | 5 | 00:50 | 00:40 | 00:10 |
3 | 20 | 5 | 01:15 | 01:00 | 00:15 |
4 | 20 | 15 | 01:50 | 01:20 | 00:30 |
5 | 20 | 5 | 02:15 | 01:40 | 00:35 |
6 | 20 | 5 | 02:40 | 02:00 | 00:40 |
7 | 20 | 5 | 03:05 | 02:20 | 00:45 |
8 | 20 | 15 | 03:40 | 02:40 | 01:00 |