Skip to content

Instantly share code, notes, and snippets.

View siwonred's full-sized avatar

Red Siwon Choi siwonred

View GitHub Profile
<html>
hi
<p>
</p>
<!-- Channel Plugin Scripts -->
<script>
(function() {
var w = window;
if (w.ChannelIO) {
return (window.console.error || window.console.log || function(){})('ChannelIO script included twice.');
@siwonred
siwonred / stream.java
Created August 7, 2018 04:04
Stream Problem
import java.util.ArrayList;
import org.apache.commons.lang3.BooleanUtils;
public class Test {
private boolean push(int i) {
System.out.println(String.format("push message: %d", i));
return i % 3 == 2;
}
@siwonred
siwonred / test.md
Created February 27, 2018 10:38
test.md

\a\b\c &lt;&gt;

@siwonred
siwonred / swagger-partner.json
Last active December 28, 2017 12:03
swagger-partner.json
{
"swagger":"2.0",
"info":{
"description":"Channel Open API. You may need Access Key and Access Secret Credential for authentication.<a href=\"https://help.channel.io/hc/categories/115000834847\">See API Guides</a>",
"title":"Channel Open Api"
},
"basePath":"/",
"tags":[
{
"name":"Bots"
@siwonred
siwonred / test.md
Last active November 21, 2017 10:51
test.md
@siwonred
siwonred / test
Created November 21, 2017 10:47
test.md
\[abc\]\(http://naver.com\)
@siwonred
siwonred / ch-swagger.json
Last active April 14, 2017 13:49
ch-swagger.json
{
"swagger":"2.0",
"info":{
"description":"Private API for channel applications.",
"version":"1.0",
"title":"Channel General Api"
},
"basePath":"/",
"tags":[
{
@siwonred
siwonred / readme.md
Created May 16, 2016 08:22
Storm Issue

2016.05.09 ~ 15 Storm 대란 사건

사건 발생 개요

  1. 카프카 도입과 함께 스톰 1.0.x 로 버전업 함
  2. 문제를 심플하게 하기 위해 SSID 토폴로지랑 Signal 토폴로지 중에서 리얼타임 기능을 주석 처리 함
  3. 처음에는 카프카 머신에서 스톰을 구동했음
  4. CPU를 많이 쓰는 문제인지, 카프카도 죽고 스톰도 죽는 문제 발견
  5. 카프카가 죽으면 문제가 너무 복잡해지기 때문에 스톰 머신을 카프카 머신에서 빼서 새로 설정 했음
  6. 이전 docker 가 스톰 0.8.x에 맞춰서 설정 됐고, nimbus, supervisor 등 각 인스턴스 별로 이미지가 별도로 있어서 관리 이슈가 있었음. 특히 슈퍼바이저의 경우 kill 커멘드가 씹히는 문제가 있어서 도커 리드플로이도 잘 안되는 문제가 있었음. 그래서 새로운 도커 이미지를 만듬. deploy 프로젝트 참고
{"funnel_insights":[{"datetime":"2015-06-01 00:00:00","profile":"all","out":16058,"visitors":3500,"guests":3168,"bounce":332,"capture_rate":0.2179599,"guest_rate":0.90514284,"bounce_rate":0.09485714},{"datetime":"2015-06-01 00:00:00","profile":"revisit:new","out":16058,"visitors":3500,"guests":3168,"bounce":332,"capture_rate":0.2179599,"guest_rate":0.90514284,"bounce_rate":0.09485714},{"datetime":"2015-06-02 00:00:00","profile":"all","out":15820,"visitors":3194,"guests":2846,"bounce":348,"capture_rate":0.20189634,"guest_rate":0.8910457,"bounce_rate":0.10895429},{"datetime":"2015-06-02 00:00:00","profile":"revisit:new","out":15820,"visitors":3194,"guests":2846,"bounce":348,"capture_rate":0.20189634,"guest_rate":0.8910457,"bounce_rate":0.10895429},{"datetime":"2015-06-03 00:00:00","profile":"all","out":15736,"visitors":3084,"guests":2760,"bounce":324,"capture_rate":0.19598374,"guest_rate":0.8949416,"bounce_rate":0.105058365},{"datetime":"2015-06-03 00:00:00","profile":"revisit:new","out":15736,"visitors":3084,"
4월의 어느 해맑은 아침,
하라주쿠의 뒤안길에서 나는 100%의 여자아이와 엇갈린다.
솔직히 말해 그다지 예쁜 여자아이는 아니다.
눈에 띄는 데가 있는 것도 아니다.
멋진 옷을 입고 있는 것도 아니다.
머리카락 뒤쪽에는 나쁜 잠버릇이 끈질기게 달라붙어 있고,
나이도 적지 않다.
벌써 서른 살에 가까울테니까.