Skip to content

Instantly share code, notes, and snippets.

View tedwon's full-sized avatar

Ted Won tedwon

View GitHub Profile
@tedwon
tedwon / AjpReadListener.java
Created August 2, 2018 06:43
7.1.0:1.4.18.Final-redhat-2 => 7.1.1:1.4.18.SP2-redhat-1
/*
* JBoss, Home of Professional Open Source.
* Copyright 2014 Red Hat, Inc., and individual contributors
* as indicated by the @author tags.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
@tedwon
tedwon / AjpRequestParseState.java
Created August 2, 2018 06:42
7.1.0:1.4.18.Final-redhat-2 => 7.1.1:1.4.18.SP2-redhat-1
/*
* JBoss, Home of Professional Open Source.
* Copyright 2014 Red Hat, Inc., and individual contributors
* as indicated by the @author tags.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
@tedwon
tedwon / AjpRequestParseState.java
Created August 2, 2018 06:42
7.1.0:1.4.18.Final-redhat-2 => 7.1.1:1.4.18.SP2-redhat-1
/*
* JBoss, Home of Professional Open Source.
* Copyright 2014 Red Hat, Inc., and individual contributors
* as indicated by the @author tags.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
<?xml version='1.0' encoding='UTF-8'?>
<server xmlns="urn:jboss:domain:1.7">
<extensions>
<extension module="org.jboss.as.clustering.infinispan"/>
<extension module="org.jboss.as.clustering.jgroups"/>
<extension module="org.jboss.as.connector"/>
<extension module="org.jboss.as.deployment-scanner"/>
<extension module="org.jboss.as.ee"/>
<extension module="org.jboss.as.ejb3"/>
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ JBoss, Home of Professional Open Source.
~ Copyright 2016, Red Hat, Inc., and individual contributors
~ as indicated by the @author tags. See the copyright.txt file in the
~ distribution for a full listing of individual contributors.
~
~ This is free software; you can redistribute it and/or modify it
~ under the terms of the GNU Lesser General Public License as
@tedwon
tedwon / MyDDay.java
Created July 25, 2018 00:27
D day 계산 프로그램
package org.jbugkorea.util.data;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Scanner;
/**
* D day 계산 프로그램.
* <p/>
* 입력: 목표 날짜 예) 20180814
@tedwon
tedwon / DateUtilsTest.java
Created July 23, 2018 05:37
시간 차이 계산
package org.jbugkorea.util.date;
import org.jbugkorea.util.data.DateUtils;
import org.junit.Test;
import java.util.Date;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
@tedwon
tedwon / JBossSerializationTest.java
Last active July 25, 2019 04:36
Java Serialization Sample Code
import com.google.common.collect.Maps;
import com.google.common.io.ByteStreams;
import org.jboss.serial.io.JBossObjectInputStream;
import org.jboss.serial.io.JBossObjectOutputStream;
import org.junit.Test;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.FileInputStream;
@tedwon
tedwon / JavaSerializationTest.java
Last active March 31, 2023 09:49
Java Serialization Sample Code
import com.google.common.collect.Maps;
import com.google.common.io.ByteStreams;
import org.junit.Test;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
@tedwon
tedwon / SlowHTTPRequestClientReproducer.java
Last active April 20, 2018 10:43
HTTP Client Reproducer for long-running Request in Java
package org.jbugkorea.http.client;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.net.InetAddress;
import java.net.Socket;
public class SlowHTTPRequestClientReproducer {
public static void main(String[] args) throws Exception {