This file contains hidden or 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
| <!DOCTYPE html> | |
| <head> | |
| <style> | |
| .chart { | |
| margin-left: 42px; | |
| } | |
| .chart rect { | |
| fill: steelblue; | |
| stroke: white; |
This file contains hidden or 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
| AWS set ulimit for ec2-user | |
| sudo su -c "ulimit -n 64000;su - ec2-user" | |
| checking open files | |
| ls -l /proc/PID/fd | wc -l |
This file contains hidden or 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 models | |
| import scala.collection.JavaConversions.asScalaIterator | |
| import com.fasterxml.jackson.annotation.JsonSubTypes | |
| import com.fasterxml.jackson.annotation.JsonTypeInfo | |
| import com.fasterxml.jackson.databind.JsonNode | |
| import com.fasterxml.jackson.databind.ObjectMapper | |
| object Processor { | |
| val mapper: ObjectMapper = new ObjectMapper(); |
This file contains hidden or 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.javacodegeeks.java.core; | |
| import java.io.BufferedReader; | |
| import java.io.File; | |
| import java.io.FileReader; | |
| import java.io.IOException; | |
| import java.util.Iterator; | |
| import org.codehaus.jackson.JsonGenerationException; | |
| import org.codehaus.jackson.JsonNode; |
This file contains hidden or 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 org.codehaus.jackson.annotate.{ JsonTypeInfo, JsonSubTypes, JsonProperty } | |
| //import org.codehaus.jackson.annotate.JsonSubTypes.Type | |
| //import org.codehaus.jackson.map.ObjectMapper | |
| import com.fasterxml.jackson.annotation.JsonProperty | |
| import com.fasterxml.jackson.annotation.JsonTypeInfo | |
| import com.fasterxml.jackson.databind.ObjectMapper | |
| import com.fasterxml.jackson.annotation.JsonSubTypes | |
| import com.fasterxml.jackson.annotation.JsonSubTypes.Type | |
| @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property = "type") |
This file contains hidden or 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
| wget --no-cookies --no-check-certificate --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie" "http://download.oracle.com/otn-pub/java/jdk/8u5-b13/jdk-8u5-linux-x64.rpm" |
NewerOlder