Skip to content

Instantly share code, notes, and snippets.

View benelog's full-sized avatar

Sanghyuk Jung benelog

View GitHub Profile
@benelog
benelog / git.md
Last active January 19, 2021 13:14
버전관리 유랑기, Git 적응기

버전 관리 시스템 유랑기, 그리고 Git 적응기

2011년 6월 9일11월 10일에 열린 세미나에서 두 번 발표했던 내용을 글로 정리했습니다.

지금까지 다양한 버전관리 시스템을 쓴 경험과 Git의 장점이라고 느낀 점에 대해서 발표했었습니다.

버전관리를 거의 안 하던 시절

버전관리는 먼 나라의 이야기?

Git에 대해 이야기를 하기 전에 지금까지 어떻게 버전관리를 해왔는지 되돌아보겠습니다. 아마 비슷한 경험을 하시고 공감하실 분들이 많으실 듯합니다.

@benelog
benelog / naver-sw.md
Last active September 5, 2020 10:55
Naver S/W

네이버가 공유한 S/W 개발 자원

오픈 소스

홈페이지는 소스저장소 외에 따로 존재하는 경우에만 이름에서 링크로 연결함.

| 이름(홈페이지) | 설명 | 소스저장소 | 분류 | 라이센스 | |-------------------|-----|----------------|-----------|-----|--------| | XpressEngine | PHP기반 CMS | https://github.com/xpressengine | CMS | GPL v2 | | Cubrid | 관계형 데이터베이스 | http://svn.cubrid.org/ | 저장소 | GPL v2 | | Arcus | 메모리캐쉬 클라우드 | | 저장소 | |

@benelog
benelog / h2-config.md
Last active May 11, 2019 15:58
h2 DB사용법

별도의 DB설치 없이 사용할 수 있어서, 테스트, 교육용, 패키지용 소프트웨어에서 사용핧만하다.

1. 의존성 추가

pom.xml에 추가한다.

<dependency>
    <groupId>com.h2database</groupId>
    <artifactId>h2</artifactId>
    <version>1.4.181</version>
@benelog
benelog / AspectTest.java
Created April 9, 2019 19:56
spring aop order 테스트
package com.test.aop;
import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.aop.support.AopUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
@benelog
benelog / RestCall.kt
Last active April 18, 2019 19:38
RestTemplate 활용
private fun getResponse(disqusOauthUrl: String): ResponseEntity<String> {
val endpoint = URI.create(disqusOauthUrl)
val req = RequestEntity<Any>(HttpMethod.GET, endpoint)
val resType = object : ParameterizedTypeReference<String>() {}
return RestTemplate().exchange<String>(req, resType)
}
@benelog
benelog / IpFilter.java
Last active February 27, 2019 13:00
IpFilter
package net.benelog.markerboard.filter;
import java.net.InetAddress;
import java.net.UnknownHostException;
import java.util.Arrays;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.slf4j.Logger;
@benelog
benelog / Matrix.java
Last active January 15, 2018 15:03
나선형배열 문제
package problems;
import static java.util.Arrays.*;
import java.util.Collections;
import java.util.List;
import java.util.Scanner;
import java.util.function.Consumer;
/**
@benelog
benelog / Test.jsh
Last active December 3, 2017 04:14
int count = 3; // main count1;
int count2 = 3; // main count2;
int count3 = 3; // main count3;
int count4 = 3; // main count4;
int causeCategoryCount = 3; // main count1;
I hope this edition captures my continued enthusiasm for the platform and helps make your use of the platform and its new features more effective and enjoyable.
@benelog
benelog / 0-retry.md
Last active October 8, 2017 15:51
retry.md

Spring retry

pom.xml에 아래와 같이 의존성을 추가하면 사용할수 있습니다.

<dependency>
    <groupId>org.springframework.retry</groupId>
    <artifactId>spring-retry</artifactId>
    <version>1.0.3.RELEASE</version>
</dependency>

RetryTemplate 과 RetryOperationsInterceptor 를 제공합니다. RetryTemplate이라는 클래시에 재시도 횟수와 대기시간 정책 등을 지정할 수 있습니다.