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 / my-mac-coding-setup.sh
Last active July 19, 2025 09:07
My Mac basic terminal setup
# Install brew, package manager for mac
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# Install oh-my-zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
# Install oh-my-zsh plugins
#
# zsh-autosuggestions
# brew install zsh-autosuggestions
@nik-garg
nik-garg / kitty.conf
Created December 20, 2021 14:20
Kitty config
# vim:fileencoding=utf-8:foldmethod=marker
#: Fonts {{{
#: kitty has very powerful font management. You can configure
#: individual font faces and even specify special fonts for particular
#: characters.
font_family Victor Mono
bold_font auto
##########
# Tweaked Win10 Initial Setup Script
# Primary Author: Disassembler <[email protected]>
# Primary Author Source: https://github.com/Disassembler0/Win10-Initial-Setup-Script
# Tweaked Source: https://gist.github.com/alirobe/7f3b34ad89a159e6daa1/
#
# If you're a power user looking to tweak your machinea, or doing larger roll-out..
# Use the @Disassembler0 script instead. It'll probably be more up-to-date than mine:
# https://github.com/Disassembler0/Win10-Initial-Setup-Script
#
# VIM setup
curl -o- https://gist.githubusercontent.com/nik-garg/5ebf7518d294999a327c5dc46220c4d8/raw/7a7fae654c8c0c00dbdce246505f05a49cbcff53/vim-setup.sh | bash
# TMUX setup
curl -o- https://gist.githubusercontent.com/nik-garg/afb90cbb089747b338d7d636ddc38823/raw/06ff60a283712080c7c2d94cd763ddb0a503692d/tmux-setup.sh | bash
@nik-garg
nik-garg / tmux-update.sh
Created May 11, 2020 20:30
Tmux update script
#!/usr/bin/env bash
sudo apt update
sudo apt install -y git
sudo apt install -y automake
sudo apt install -y bison
sudo apt install -y build-essential
sudo apt install -y pkg-config
@nik-garg
nik-garg / tmux-setup.sh
Last active September 4, 2021 11:52
Tmux Setup
# Installing TPM - TMUX Package Manager
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
# Getting Tmux configuration
wget https://gist.githubusercontent.com/nik-garg/cd128360d137e173c66cac97949d76bc/raw/b87771ea5ad40b1e548f418698aef2d5bb5bdbd3/.tmux.conf
# Updating bashrc for tmux colors
curl -o- https://gist.githubusercontent.com/nik-garg/f164554a078f498c816d8865244bfd0f/raw/e1ab0bb0a4a85953260f5d54b77f12055dc83393/bashrc | bash
@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:
@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 / .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 / 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