Skip to content

Instantly share code, notes, and snippets.

View NiravBhuva's full-sized avatar
🎯
Focusing

Nirav Bhuva NiravBhuva

🎯
Focusing
View GitHub Profile
@NiravBhuva
NiravBhuva / .eslintrc.json
Created May 6, 2025 11:16
Basic .eslintrc for Node and React
{
"env": {
"browser" : true,
"node" : true,
"commonjs": true,
"es6" : true
},
"extends": "eslint:recommended",
"parser" : "babel-eslint",
"parserOptions": {
@NiravBhuva
NiravBhuva / setup.sh
Created May 6, 2025 11:16
Ubuntu basic setup after fresh install
sudo apt update
sudo apt upgrade
#install essential packages
sudo apt install -y vim
sudo apt install -y avahi-daemon
sudo apt install -y python
sudo apt install -y git
sudo apt install -y curl
sudo apt install -y dconf-cli
@NiravBhuva
NiravBhuva / vim-setup.sh
Created May 6, 2025 11:13
Vim setup script
# 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/aqual3o/b6c2478c38d1e08f76697b224efb9490/raw/.vimrc
# Switch to home dir and copy .eslintrc.json
@NiravBhuva
NiravBhuva / init.vim
Created May 6, 2025 11:11
Neo Vim config
set nocompatible " disable compatibility to old-time vi
set showmatch " show matching
set ignorecase " case insensitive
set mouse=v " middle-click paste with
set hlsearch " highlight search
set incsearch " incremental search
set tabstop=4 " number of columns occupied by a tab
set softtabstop=4 " see multiple spaces as tabstops so <BS> does the right thing
"set expandtab " converts tabs to white space
set shiftwidth=4 " width for autoindents