This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cat ~/.bashrc | |
SHELL=/bin/zsh exec /bin/zsh --login |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo find . -xdev -type f | cut -d "/" -f 2 | sort | uniq -c | sort -n |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
awk '{s+=$1} END {print s}' $1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
awk '{s+=$1} END {print s}' $1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
if [ "$#" -ne 1 ]; then | |
echo "Usage: epoch unixtimestamp" | |
exit 1 | |
fi | |
perl -leprint\ scalar\ localtime\ $1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
cd ~/.vim/bundle | |
for i in `ls`; do | |
cd "$i" | |
git pull | |
cd .. | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
sudo yum groups install -y Development\ tools | |
sudo yum install -y cmake | |
sudo yum install -y python34-{devel,pip} | |
sudo pip-3.4 install neovim --upgrade | |
( | |
cd "$(mktemp -d)" | |
git clone https://github.com/neovim/neovim.git | |
cd neovim | |
make CMAKE_BUILD_TYPE=Release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[user] | |
email = arunav.sanyal91@gmail.com | |
name = Arunav Sanyal | |
signingkey = 352742D0A2C6851A | |
[color] | |
ui = true | |
[core] | |
pager = diff-so-fancy | less --tabs=4 -RFX | |
editor = nvr --remote-wait-silent | |
[push] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let mapleader = ";" | |
imap jj <Esc> | |
set timeoutlen=1000 | |
nmap <Leader>c :action GotoClass<CR> | |
nmap <Leader>s :action GotoSymbol<CR> | |
nmap <Leader>fi :action GotoFile<CR> | |
nmap <Leader>d :action GotoDeclaration<CR> | |
nmap <Leader>td :action GotoTypeDeclaration<CR> | |
nmap <Leader>b :action Back<CR> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tnoremap <Esc> <C-\><C-n> | |
tnoremap jj <C-\><C-n> | |
au TermOpen * set number |