Skip to content

Instantly share code, notes, and snippets.

View rkdgusrnrlrl's full-sized avatar

Kang Hyeon Ku rkdgusrnrlrl

View GitHub Profile
@rkdgusrnrlrl
rkdgusrnrlrl / GitHub-Project-Guidelines.md
Created July 8, 2018 03:03 — forked from rsp/GitHub-Project-Guidelines.md
Strict Flow and GitHub Project Guidelines - setup rules and git flow for commercial and open-source projects by @rsp

Strict Flow and GitHub Project Guidelines

This documment explains how to set up and develop a software project using Git in general and GitHub in particular (but it can be easily adapted to work on any Git platform like GitLab, Bitbucket or any other, as everything outside of the GitHub configuration section is not GitHub-specific). It consists of rules that proved to work well over the years in multiple commercial and open-source projects, both small and large-scale.

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

Docker 치트 시트

한국어 번역(초벌) : nacyot

왜 Docker를 사용해야하는가?

Why Should I Care (For Developers)

"나에게 Docker의 매력은 간단히 격리된 환경을 만들 수 있다는 것과, 그러한 환경을 재사용할 수 있다는 점이다."런타임 환경을 한 번 만들어 패키지로 만들면, 이 패키지를 다른 어떤 머신에서도 다시 사용할 수 있다. 또한 여기서 실행되는 모든 것은 마치 가상머신과 같이 호스트로부터 격리되어있다. 무엇보다도 이런 모든 일들이 빠르고 간단히 가능하다.

@rkdgusrnrlrl
rkdgusrnrlrl / README.md
Created July 14, 2023 00:30 — forked from JosimarCamargo/README.md
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