Skip to content

Instantly share code, notes, and snippets.

View ranjithum's full-sized avatar

Ranjith Gowda ranjithum

View GitHub Profile
@ranjithum
ranjithum / bash_strict_mode.md
Created February 6, 2023 13:23 — forked from mohanpedala/bash_strict_mode.md
set -e, -u, -o, -x pipefail explanation
@ranjithum
ranjithum / unix-shark
Created December 8, 2019 06:33
Capture packets over unix domain sockets
#!/bin/bash
which socat >/dev/null 2>&1
if $?; then
echo "Please install socat using \"yum install socat -y\""
exit 1
fi
which tshark >/dev/null 2>&1
@ranjithum
ranjithum / Basic vimrc
Created May 24, 2018 03:58
Basic / Simple vimrc config file
set nocompatible
set encoding=utf-8
set hidden
filetype plugin indent on
syntax on
set synmaxcol=2048 " Don't syntax highlight super-long lines (for performance)
set autoindent " automatically indent lines and try to do it intelligently
set smartindent
set backspace=indent,eol,start " backspace behaves 'normally'
@ranjithum
ranjithum / .vimrc for c or c++
Last active May 16, 2018 05:18 — forked from rocarvaj/.vimrc
Minimal .vimrc for C/C++ developers
" VIM Configuration File
" Description: Optimized for C/C++ development, but useful also for other things.
" Author: Gerhard Gappmeier
"
" set UTF-8 encoding
set enc=utf-8
set fenc=utf-8
set termencoding=utf-8
" disable vi compatibility (emulation of old bugs)