Skip to content

Instantly share code, notes, and snippets.

View saikrn112's full-sized avatar

Ramana Kiran saikrn112

View GitHub Profile
#!/usr/bin/env bash
set -euo pipefail
VIMRC_RAW_URL="https://gist.githubusercontent.com/saikrn112/b55bf8a8bad6f6538a40561bdafe45bc/raw/.vimrc"
ZIMRC_COMPONENTS_URL="https://gist.githubusercontent.com/saikrn112/1e353283a091824bb0074c7aafe203fe/raw/zimrc-components"
ALIAS_URL="https://gist.githubusercontent.com/saikrn112/b9d16ad838fc240fe7370697039eb56c/raw/alias.sh"
need(){ command -v "$1" >/dev/null 2>&1; }
fetch(){ curl -fsSL "$1"; }
alias lt='ls -lrth'
alias gs='git status'
alias ga='git add'
alias gc='git commit'
alias gco='git checkout'
alias gcf='git clean -fd'
alias gb='git branch'
alias gcfo='git checkout . && git clean -df'
alias gd='git diff'
alias gg='git graph'
@saikrn112
saikrn112 / install_conda.sh
Created September 3, 2022 16:16
installing conda
mkdir -p ~/miniconda3
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda3/miniconda.sh
bash ~/miniconda3/miniconda.sh -b -u -p ~/miniconda3
rm -rf ~/miniconda3/miniconda.sh
~/miniconda3/bin/conda init bash
~/miniconda3/bin/conda init zsh
@saikrn112
saikrn112 / install_cv.sh
Last active November 8, 2022 02:52
for installing CV environment
source ~/miniconda3/etc/profile.d/conda.sh
conda create -n CV
conda activate CV
conda install python=3.6 -y
conda install matplotlib -y
conda install numpy -y
conda install opencv -y
conda install jupyter -y
conda install -c conda-forge termcolor -y
conda install -c conda-forge ipywidgets -y
zmodule prompt-pwd
zmodule gitster
zmodule sorin
zmodule environment
zmodule completion
zmodule input
zmodule fzf
@saikrn112
saikrn112 / .vimrc
Last active January 14, 2026 20:48
vim configuration file
" ================================
" vim-plug bootstrap
" ================================
if empty(glob('~/.vim/autoload/plug.vim'))
silent !mkdir -p ~/.vim/autoload
silent !curl -fsSLo ~/.vim/autoload/plug.vim https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
endif
call plug#begin('~/.vim/plugged')
@saikrn112
saikrn112 / tmux-cheatsheet.markdown
Last active January 7, 2018 07:32 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@saikrn112
saikrn112 / tmux.conf
Created January 7, 2018 07:05 — forked from spicycode/tmux.conf
The best and greatest tmux.conf ever
# 0 is too far from ` ;)
set -g base-index 1
# Automatically set window title
set-window-option -g automatic-rename on
set-option -g set-titles on
#set -g default-terminal screen-256color
set -g status-keys vi
set -g history-limit 10000