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

스프링 부트 구성속성 이용(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",