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
@freewind
freewind / sed cheatsheet
Created October 21, 2015 16:21 — forked from un33k/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'
@subfuzion
subfuzion / curl.md
Last active July 3, 2024 11:43
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