Skip to content

Instantly share code, notes, and snippets.

View Y-k-Y's full-sized avatar
๐ŸŠ
I can swim!

YeoKyung Yoon Y-k-Y

๐ŸŠ
I can swim!
View GitHub Profile
@Y-k-Y
Y-k-Y / 20220627-spring-boot-application-configuration-data-desc.adoc
Created November 4, 2022 09:34 — forked from ihoneymon/20220627-spring-boot-application-configuration-data-desc.adoc
์Šคํ”„๋ง ๋ถ€ํŠธ ๊ตฌ์„ฑํŒŒ์ผ ๋ฐ์ดํ„ฐ ์ ์žฌ ๊ฐ„๋‹จ์„ค๋ช…

์Šคํ”„๋ง ๋ถ€ํŠธ ๊ตฌ์„ฑ์†์„ฑ ์ด์šฉ(Spring Boot External Configuration)

์Šคํ”„๋ง ๋ถ€ํŠธ์—์„œ๋Š” ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜์—์„œ ํ•„์š”ํ•œ ์†์„ฑ์„ "์• ํ”Œ๋ฆฌ์ผ€์ด์…˜ ๊ตฌ์„ฑํŒŒ์ผ" application.yml(ํ˜น์€ applicatoin.properties) ์— ์ž‘์„ฑํ•˜์—ฌ ํ™œ์šฉํ•ฉ๋‹ˆ๋‹ค.

Note

๋ฐ์ดํ„ฐ๊ตฌ์กฐ๋ฅผ ๊ณ„์ธตํ˜•์œผ๋กœ ํ‘œํ˜„ํ•  ์ˆ˜ ์žˆ์–ด์„œ ๊ฐœ์ธ์ ์œผ๋กœ .properties ํŒŒ์ผ ๋ณด๋‹ค๋Š” .yml(YAML) ํŒŒ์ผ ์ด์šฉ์„ ์„ ํ˜ธํ•ฉ๋‹ˆ๋‹ค.

Using an Access Token for the first time

Follow the instructions on Github to Create an Access Token in Github

Configure Git to use the osxkeychain

By default, git credentials are not cached so you need to tell Git if you want to avoid having to provide them each time Github requires you to authenticate. On Mac, Git comes with an โ€œosxkeychainโ€ mode, which caches credentials in the secure keychain thatโ€™s attached to your system account.

You can tell Git you want to store credentials in the osxkeychain by running the following:-

@Y-k-Y
Y-k-Y / AdbCommands
Created June 17, 2022 06:46 — forked from dswapnil104/AdbCommands
Adb useful commands list
adb help // List all comands
== Adb Server
adb kill-server
adb start-server
== Adb Reboot
adb reboot
adb reboot recovery
adb reboot-bootloader
@Y-k-Y
Y-k-Y / ClientInfo.java
Last active July 6, 2021 06:51 — forked from c0rp-aubakirov/ClientInfo.java
How to get full client info using servlet request, including client IP, browser, os, use-agent and referer
@RequiredArgsConstructor
public class HttpClientUtil {
private final HttpServletRequest request;
private final String[] HEADERS_TO_TRY_TO_GET_IP = {
"X-Forwarded-For",
"Proxy-Client-IP",
"WL-Proxy-Client-IP",
"HTTP_X_FORWARDED_FOR",