Skip to content

Instantly share code, notes, and snippets.

View johnjkjung's full-sized avatar

John Jung johnjkjung

View GitHub Profile
@johnjkjung
johnjkjung / .gitconfig
Created March 24, 2018 14:08 — forked from pksunkara/config
Sample of git config file (Example .gitconfig)
[user]
name = Pavan Kumar Sunkara
email = pavan.sss1991@gmail.com
username = pksunkara
[core]
editor = vim
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol
excludesfile = ~/.gitignore
[sendemail]
smtpencryption = tls
@johnjkjung
johnjkjung / sed cheatsheet
Created March 24, 2018 14:05 — 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'