Skip to content

Instantly share code, notes, and snippets.

View itsmaheshkariya's full-sized avatar
🏠
Working from home

Mahesh Kariya itsmaheshkariya

🏠
Working from home
View GitHub Profile
@itsmaheshkariya
itsmaheshkariya / Dotnet core
Created February 1, 2020 14:33
Dotnet notes
dotnet tool install --global dotnet-ef --version 3.0.0
dotnet ef
dotnet new web
@itsmaheshkariya
itsmaheshkariya / VimSettings.md
Last active July 12, 2020 20:58
Vim Settings for Making IDE.

#Set NERDTree vim ~/.vimrc

let g:netrw_banner = 0
let g:netrw_liststyle = 3
let g:netrw_browse_split = 4
let g:netrw_altv = 1
let g:netrw_winsize = 25
augroup ProjectDrawer
 autocmd!
@itsmaheshkariya
itsmaheshkariya / curl.md
Created June 2, 2020 08:53 — forked from subfuzion/curl.md
curl POST examples

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.

@itsmaheshkariya
itsmaheshkariya / VimConfig.md
Created August 17, 2020 17:27
Best Vim Config

set runtimepath+=~/.vim_runtime set mouse=a set encoding=UTF-8 let g:airline_powerline_fonts = 1 source ~/.vim_runtime/vimrcs/basic.vim source ~/.vim_runtime/vimrcs/filetypes.vim source ~/.vim_runtime/vimrcs/plugins_config.vim source ~/.vim_runtime/vimrcs/extended.vim

try

@itsmaheshkariya
itsmaheshkariya / sed cheatsheet
Created January 19, 2021 19:35 — forked from freewind/sed cheatsheet
magic of sed -- find and replace "text" in a string or a file
FILE SPACING:
# double space a file
sed G
# double space a file which already has blank lines in it. Output file
# should contain no more than one blank line between lines of text.
sed '/^$/d;G'