Skip to content

Instantly share code, notes, and snippets.

View rkdgusrnrlrl's full-sized avatar

Kang Hyeon Ku rkdgusrnrlrl

View GitHub Profile
@JosimarCamargo
JosimarCamargo / README.md
Last active April 6, 2024 15:39
How to setup a Postgres replication with docker and docker-compose

How to setup a Postgres replication with docker and docker-compose

How to use

To run you will need docker and docker-compose installed, and run the command docker-compose up on a folder within this file named docker-compose.yml(attached in this Gist)

How the PGAudit is enable, you will see the queries log and in which database is running which query, this is the main purpose of this Gist, along with have a database with replication working out of the box

To add user with just reading rights to access the database on slave replica

@rsp
rsp / GitHub-Project-Guidelines.md
Last active June 11, 2024 12:41
Git Strict Flow and GitHub Project Guidelines - setup rules and git flow for commercial and open-source projects by @rsp

Git Strict Flow and GitHub Project Guidelines

Or how to turn this:

into this:

# git filter-branch 사용법
외부 라이브러리 또는 플러그인을 사용하는 경우(이후 의존성이라 지칭) 바이너리 혹은 소스코드를 프로젝트 디렉터리 안에서 관리하게 됩니다. git을 사용하는 경우 내려받은 외부 의존성들의 바이너리, 소스코드는 `.gitignore` 파일에 추가해서 git 이 추적하지 않도록 해야합니다.
실수 혹은 의도치 않게 git으로 관리하는 파일이 된 경우 파일을 삭제하더라도 히스토리에 남게 됩니다. 만약 용량이 큰 바이너리 파일이 히스토리에 추가된 경우 소스코드 저장소에 따라 `push` 를 할 수 없는 경우가 생깁니다.
**filter-branch** 기능을 사용하면 커밋에서 특정 파일을 지울 수 있습니다. 모든 커밋을 추적하여 사용자가 지정한 작업을 할 수 있습니다.
git으로 관리하고 있는 프로젝트에서 아래 명령어로 작업합니다.

요새는 바야흐로 대 해적시대 Docker시대이다.

그럼 대체 저 고래가 뭔데? 라는 의문이 가질 수 있다.

그래서 Docker의 특징을 살펴보고 Vagrant랑 비교했을때 차이점을 살펴보고자 한다.