Skip to content

Instantly share code, notes, and snippets.

View raymzag's full-sized avatar

Raymond Ag raymzag

  • Australia
View GitHub Profile
@raymzag
raymzag / postgres.sh
Created November 19, 2020 03:16
useful psql commands
# pg_dump
pg_dump -h localhost -p 5432 -U postgres -d my_db -x -O -Fc > my_db.dump
# pg_restore
pg_restore -h localhost -p 5432 -U postgres -d my_db -x -O -c -j 4 my_db.dump
@raymzag
raymzag / .gitmessage.txt
Created October 4, 2019 12:51
git message template
# <- Subject message. Maximum 50 characters. ->|
#
# <- After two line breaks come the rest of the lines, or the body. ->|
# <- The maximum line length for the body is 72 characters. ->|
#
# For more info on how to write a good commit message, see:
# http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html
@raymzag
raymzag / .gitconfig
Last active October 4, 2019 12:44
My git config file
[user]
name =
email =
github = raymzag
[push]
default = current
[credential]
helper = osxkeychain
[color]
ui = always
@raymzag
raymzag / git-commands.sh
Last active October 2, 2019 00:21
Git Useful Commands
# list config
git config -l
# update git user in current repo
git config user.email "[email protected]"
git config user.name "Raymond Aung"
# create new branch
git checkout -b new-branch
@raymzag
raymzag / .vimrc
Created October 2, 2019 00:08
My vimrc
set nocompatible
set rtp+=~/code/my-projects/.vim
" execute pathogen#infect()
filetype on
syntax on
" let mapleader=" "
set encoding=utf8
" syntax enable