Skip to content

Instantly share code, notes, and snippets.

View Khalian's full-sized avatar

Arunav Sanyal Khalian

  • Vancouver, BC, Canada
View GitHub Profile
@Khalian
Khalian / Default zsh shell
Created August 7, 2018 01:57
Default zsh shell
cat ~/.bashrc
SHELL=/bin/zsh exec /bin/zsh --login
sudo find . -xdev -type f | cut -d "/" -f 2 | sort | uniq -c | sort -n
#!/bin/sh
awk '{s+=$1} END {print s}' $1
#!/bin/sh
awk '{s+=$1} END {print s}' $1
@Khalian
Khalian / epoch
Created October 5, 2017 07:12
Epoch command line
#!/bin/sh
if [ "$#" -ne 1 ]; then
echo "Usage: epoch unixtimestamp"
exit 1
fi
perl -leprint\ scalar\ localtime\ $1
@Khalian
Khalian / updatepathogen.sh
Last active September 17, 2017 08:45
updatepathogen.sh
#!/bin/sh
cd ~/.vim/bundle
for i in `ls`; do
cd "$i"
git pull
cd ..
done
@Khalian
Khalian / install_neovim_to_amazonlinux.sh
Created September 11, 2017 07:24 — forked from kawaz/install_neovim_to_amazonlinux.sh
install neovim to amazonlinux
#!/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
[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]
@Khalian
Khalian / ideavimrc
Last active November 8, 2022 22:50
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>
tnoremap <Esc> <C-\><C-n>
tnoremap jj <C-\><C-n>
au TermOpen * set number