Skip to content

Instantly share code, notes, and snippets.

View nik-garg's full-sized avatar

Nikhil nik-garg

View GitHub Profile
@nik-garg
nik-garg / .vimrc
Last active April 30, 2020 14:14
Vimrc config
" general vim features toggle
set hlsearch
" for vim 7
set t_Co=256
" Theme
syntax on
set background=dark
@nik-garg
nik-garg / vim-setup.sh
Created April 30, 2020 14:15
Vim setup
# Install required pakcages
echo 'Installing required apt packages...'
sudo apt install -y curl git wget vim
# Switch to home dir and copy .vimrc
echo 'Downloading vimrc...'
cd $HOME
wget https://gist.githubusercontent.com/nik-garg/9c2337b00dc6147d74b630c5fcee0a00/raw/038e4f4c55f514f9391adeabcb52eb8f9fee8eb6/.vimrc
# Install vundle
@nik-garg
nik-garg / .eslintrc.json
Created April 30, 2020 14:20
ESlintrc config
{
"env": {
"browser" : true,
"node" : true,
"commonjs": true,
"es6" : true
},
"extends": "eslint:recommended",
"parserOptions": {
"ecmaFeatures": {
@nik-garg
nik-garg / linter-setup.sh
Created April 30, 2020 14:21
Setup ES Linter
# Install required pakcages
echo 'Installing required apt packages...'
sudo apt install -y curl git wget vim
# Switch to home dir and copy .eslintrc.json
echo 'Downloading eslintrc...'
cd $HOME
wget https://gist.githubusercontent.com/nik-garg/99d4e81864f1d928fe55ed7da0da5b87/raw/58758be07fccb9ffd4277b501b5b78c76a31e7ed/.eslintrc.json
# Install linting modules
@nik-garg
nik-garg / .tmux.conf
Last active September 4, 2021 11:50
Tmux config
# Improve colors
set -g default-terminal "tmux-256color"
set -ag terminal-overrides ",xterm-256color:RGB"
# Set scrollback buffer to 10000
set -g history-limit 10000
# Customize the status line
set -g status-fg green
set -g status-bg black
@nik-garg
nik-garg / .alacritty.yml
Last active December 29, 2020 15:38
Alacritty config
# Window configuration
window:
dimensions:
columns: 0
lines: 0
position:
x: 0
y: 0
padding:
x: 10
@nik-garg
nik-garg / bashrc
Last active May 8, 2020 12:43
Bash rc commands for tmux
echo '' >> .bashrc
echo 'alias tmux="TERM=screen-256color-bce tmux"' >> .bashrc
echo 'export TERM=xterm-256color' >> .bashrc
@nik-garg
nik-garg / .vimrc
Last active May 5, 2021 21:09
Vimrc using Vim Plug
" required before initialization
set nocompatible " disable compatibility mode with vi
" Calling plugin system
call plug#begin('~/.vim/plugged')
Plug 'nanotech/jellybeans.vim' " Vim color scheme
Plug 'pangloss/vim-javascript' " JavaScript bundle for vim, this bundle provides syntax highlighting and improved indentation
Plug 'digitaltoad/vim-pug' " Vim syntax highlighting for Pug (formerly Jade) templates
Plug 'Raimondi/delimitMate' " Provides insert mode auto-completion for quotes, parens, brackets, etc.
@nik-garg
nik-garg / vim-setup.sh
Last active May 5, 2021 15:25
Vim setup 2
# Install required pakcages
echo 'Installing required apt packages...'
sudo apt install -y curl wget
# Installing latest VIM
sudo add-apt-repository -y ppa:jonathonf/vim
sudo apt update
sudo apt install -y vim
# Switch to home dir and copy .vimrc
@nik-garg
nik-garg / cloud-init.yaml
Last active May 5, 2021 15:26
Cloud init for multipass
users:
- name: nikhil
sudo: ALL=(ALL) NOPASSWD:ALL
ssh_authorized_keys:
- ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC5a0P6gC1qsszcrz65QeT2b+21FpaUM2K9EHJI68mpSIEVEy+uN7BoJ2kTBcC+0SkAV5y8gUbxlSHeba3j8ofHNYalEQ0QSHO3bsjDFevmQJqBJyf++N0KPvnRaYJYr64ztkMX5LYgvzJbCgHCVHnMy2xAbh440hXrWcKszL6JZ0Bw2nExCpisAxUE6ULcukMdbSp4GoniA6NFSqc0wXEPV3feWXM+M/L6He9jcP58Ixw5dZ9bO9CgW5jCJlv80oqQhYUZPJDiC5chtEObKx811G/C0Wqbbp3C6a3mZxkCF39nqpg7R1/vMb8SFC5rFGmiEmSV5ONU3aD9bwCTLKU7 [email protected]
home: /home/nikhil
shell: /bin/bash
gecos: Nikhil Garg
runcmd: