Skip to content

Instantly share code, notes, and snippets.

View deuxksy's full-sized avatar
๐ŸŒด
On vacation

Crong deuxksy

๐ŸŒด
On vacation
View GitHub Profile
## Configuration options with # in front are not active and they were
## valid at install time. Updating the package does not update this file
## automatically.
## Latest options listed at:
## https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/files/gitlab-config-template/gitlab.rb.template
## Url on which GitLab will be reachable.
## For more details on configuring external_url see:
## https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/doc/settings/configuration.md#configuring-the-external-url-for-gitlab
@legowerewolf
legowerewolf / readme.md
Last active April 7, 2024 02:13
Tailscale on Steam Deck
@rabelais88
rabelais88 / docker-swarm.md
Created November 10, 2019 05:18
์Šคํƒ€ํŠธ์—…์— traefik + docker-swarm์„ ์ถ”์ฒœํ•˜๋Š” ์ด์œ 

์Šคํƒ€ํŠธ์—…์— traefik + docker-swarm์„ ์ถ”์ฒœํ•˜๋Š” ์ด์œ 

  • Traefik: Reverse-proxy router
  • Docker-swarm: Docker-supported orchestrator

์™œ Docker-Swarm์ธ๊ฐ€?

  • kubernetes(์ดํ•˜ k8) ๋Š” ๋ฌด๊ฒ๊ณ  ๋А๋ฆฌ๋‹ค. docker-swarm(์ดํ•˜ DS) ์€ docker ์ตœ์‹ ๋ฒ„์ „์— ๊ธฐ๋ณธ์œผ๋กœ ํƒ‘์žฌ๋˜์–ด ๋‚˜์˜จ๋‹ค. ๋˜ํ•œ helm์ด๋‚˜ ๋ณ„๋„์˜ ๊ด€๋ฆฌ cli(kubeadm, kubectl)๋ฅผ ์„ค์น˜ํ•  ํ•„์š”๊ฐ€ ์—†๋‹ค.

  • k8 ์€ ์„ธํŒ…๋„ ์–ด๋ ต๋‹ค: ์„ธํŒ…ํ•˜๊ธฐ๊ฐ€ ์›Œ๋‚™ ๊นŒ๋‹ค๋กœ์›Œ ์‹ค์ œ๋กœ ์šด์˜ํ•˜๊ธฐ ์ ์ ˆํ•œ ๊ฒฝ์šฐ๋Š” devops ํŒ€์„ ๊ฐ€์ง„ ์ตœ์†Œ 20๋ช… ์ด์ƒ์˜ ๋Œ€๊ทœ๋ชจ ์‚ฌ์ด์ฆˆ ํŒ€์ด๋‹ค. ํ•œ ๋ช…์ด ์ž‘์—…ํ•˜๋Š” ๊ฒƒ์ด ์•„์ฃผ ๋ถˆ๊ฐ€๋Šฅํ•œ ๊ฒƒ์€ ์•„๋‹ˆ์ง€๋งŒ, ๊ธด๊ธ‰์ˆ˜์ •์‹œ์—๋Š” ๋งŽ์ด ์œ„ํ—˜ํ•ด์งˆ ์ˆ˜ ์žˆ๋‹ค. ์ด์›์ด 10๋ช…์ด ๋˜์ง€ ์•Š๋Š” ์šฐ๋ฆฌํŒ€ ๊ฐ™์€ ๊ฒฝ์šฐ๋Š” ํ•œ ์‚ฌ๋žŒ์ด ๊ธ‰ํ•˜๊ฒŒ ๊ธฐ๋Šฅ์ˆ˜์ •์„ ํ•ด์•ผ๋  ์ผ์ด ๋งŽ๋‹ค.

@ihoneymon
ihoneymon / 20190509-woowahan-tech-seminar-jvm.adoc
Last active May 19, 2023 07:00
2019/05/09 5์›” ์šฐ์•„ํ•œํ˜•์ œ๋“ค ํ…Œํฌ ์„ธ๋ฏธ๋‚˜

20190509 ์šฐ์•„ํ•œ ํ…Œํฌ ์„ธ๋ฏธ๋‚˜: ์ž๋ฐ”, ์„ฑ๋Šฅ, ๋ชจ๋‹ˆํ„ฐ๋ง

0. ์†Œ๊ฐœ

  • ์„ฑ๋Šฅํ…Œ์ŠคํŠธ ์ „๋ฌธ๊ฐ€!

  • ๊ฐœ๋ฐœ์ž๊ฐ€ ๋ฐ˜๋“œ์‹œ ์•Œ์•„์•ผ ํ•  ์ž๋ฐ” ์„ฑ๋Šฅ ํŠœ๋‹ ์ด์•ผ๊ธฐ, 2015

  • ์ž๋ฐ” ๊ฐœ๋ฐœ์ž์™€ ์‹œ์Šคํ…œ ์šด์˜์ž๋ฅผ ์œ„ํ•œ ํŠธ๋Ÿฌ๋ธ” ์ŠˆํŒ… ์ด์•ผ๊ธฐ, 2011

S3_ACCESS_KEY_ID_GITLAB_BACKUP=<ACCESS_KEY>
S3_SECRET_ACCESS_KEY_GITLAB_BACKUP=<SECRET_KEY>
@ihoneymon
ihoneymon / 201904-java-byte-array-to-input-stream.adoc
Created April 4, 2019 08:52
[spring] RestTemplate ๋ฅผ ์ด์šฉํ•œ ํŒŒ์ผ ์—…๋กœ๋“œ ๊ธฐ๋Šฅ: ByteArrayResource -> InputStreamResource ๋ณ€๊ฒฝ

20190404 [spring] RestTemplate ๋ฅผ ์ด์šฉํ•œ ํŒŒ์ผ ์—…๋กœ๋“œ ๊ธฐ๋Šฅ

๊ธฐ์กด ๋ฐฉ์‹์˜ ๋ฌธ์ œ์ 

public AgreementResponse uploadAgreement(String memberId, File agreementFile) {
    log.info("Upload CMS Agreement: memberId: {}, agreement: {}, size: {}", memberId, agreement.getName(), agreement.getSize());
    MultiValueMap<String, Object> bodyMap = new LinkedMultiValueMap<>();
alias ls='ls --color=auto'
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'
alias dir='dir --color=auto'
alias vdir='vdir --color=auto'
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
# Add an "alert" alias for long running commands. Use like so:
@jackblk
jackblk / squid_proxy_tutorial.md
Last active January 10, 2026 03:03
Tutorial on how to setup a squid proxy with authentication.

Note

This tutorial is for Ubuntu & Squid3. Use AWS, Google cloud, Digital Ocean or any services with Ubuntu to follow this tutorial.

Install squid & update

sudo apt-get update
sudo apt-get install squid3
sudo apt-get install apache2-utils
@npearce
npearce / install-docker.md
Last active January 28, 2026 11:06
Amazon Linux 2 - install docker & docker-compose using 'sudo amazon-linux-extras' command

UPDATE (March 2020, thanks @ic): I don't know the exact AMI version but yum install docker now works on the latest Amazon Linux 2. The instructions below may still be relevant depending on the vintage AMI you are using.

Amazon changed the install in Linux 2. One no-longer using 'yum' See: https://aws.amazon.com/amazon-linux-2/release-notes/

Docker CE Install

sudo amazon-linux-extras install docker
sudo service docker start

[springboot] ์Šคํ”„๋ง ๋ถ€ํŠธ ํ”Œ๋Ÿฌ๊ทธ์ธ: spring-boot-gradle-plugin

Note
Boot Spring Boot

Boot Spring Boot! ์ถœ๊ฐ„ ์ดํ›„ ๋ฐœํ‘œํ•  ๊ธฐํšŒ๊ฐ€ ๋ช‡ ๋ฒˆ ์žˆ์—ˆ๊ณ  ๊ทธ ๋•Œ๋งˆ๋‹ค ๊ฐœ๋ฐœ์ž ์ธ์ƒ์€