But original post can not access anymore.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM anapsix/alpine-java:8_jdk_unlimited | |
MAINTAINER lanhuai<[email protected]> | |
# alpine 的时区配置不起作用,主要依靠JDK的参数设置 | |
# -Duser.language=zh -Duser.country=CN -Duser.timezone=Asia/Shanghai | |
# Expose web port | |
EXPOSE 8080 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# to generate your dhparam.pem file, run in the terminal | |
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.ArrayList; | |
import java.util.Arrays; | |
import java.util.Collections; | |
import java.util.List; | |
import java.util.Set; | |
import java.util.concurrent.CopyOnWriteArrayList; | |
import java.util.concurrent.CopyOnWriteArraySet; | |
import java.util.concurrent.CountDownLatch; | |
public class VolatileDemo { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.lanhuai.common.util; | |
import java.util.concurrent.locks.Condition; | |
import java.util.concurrent.locks.ReentrantLock; | |
/** | |
* @author lanhuai | |
*/ | |
public class ThreadAbc { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.sagedevices.platform.jersey.core; | |
import com.sagedevices.platform.api.util.StringUtil; | |
public class RequestId { | |
public static final String HEADER_NAME_ORIGIN = "X-Origin-Request-Id"; | |
public static final String HEADER_NAME_LOCAL = "X-Local-Request-Id"; | |
public static final String MDC_NAME_LOCAL = "LocalRequestId"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
logger_general() | |
{ | |
logger -s -p local0.notice -t geek_script $1 | |
} | |
logger_general "###########Geek script Started###########" | |
if [ $1 = "web-gui" ] ;then | |
logger_general "###########Geek script started from web-gui###########" | |
logger_general "Sleeping for 30 secs to give time for router boot" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@startuml | |
interface ReadableByteChannel | |
interface WritableByteChannel | |
interface InterruptibleChannel | |
interface GatheringByteChannel | |
interface ScatteringByteChannel | |
interface Channel | |
interface ByteChannel | |
abstract AbstractInterruptibleChannel |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Carbon (part of Graphite) | |
# | |
# chkconfig: 3 50 50 | |
# description: Carbon init.d | |
. /etc/rc.d/init.d/functions | |
prog=carbon | |
RETVAL=0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.lanhuai.zookeeper.distributelock.DistributeLock; | |
import com.lanhuai.zookeeper.distributelock.DistributeLockFactory; | |
import junit.framework.TestCase; | |
import org.apache.zookeeper.KeeperException; | |
import java.util.concurrent.ConcurrentHashMap; | |
import java.util.concurrent.ConcurrentMap; | |
import java.util.concurrent.CountDownLatch; | |
import java.util.concurrent.CyclicBarrier; |
NewerOlder