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 -e | |
# | |
# You can run this script directly from github as root like this: | |
# curl -sS https://gist.githubusercontent.com/kamermans/94b1c41086de0204750b/raw/configure_docker0.sh | sudo bash -s - 192.168.254.1/24 | |
# | |
# * Make sure you replace "192.168.254.0/24" with the network that you want to use | |
# | |
# NOTE: This script is intended for Debian / Ubuntu only! | |
if [ $# -lt 1 ]; then |
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
public class Test | |
{ | |
public static void main(String[] args) throws InterruptedException | |
{ | |
Integer threadNum = 200; // 35 | |
AtomicInteger upCnt = new AtomicInteger(0); | |
List<MyThreadIcvNew> listThreads = new ArrayList<MyThreadIcvNew>(); | |
Map<String, Map<String, Integer>> countMap = new ConcurrentHashMap<String, Map<String, Integer>>(); | |
for (int i = 0; i < threadNum; i++) | |
{ |