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
apt-get install haveged | |
nano /etc/default/haveged # Setup DAEMON_ARGS="-w 1024" | |
update-rc.d haveged defaults | |
cat /dev/random | rngtest -c 1000 # Testing Availability of Entropy & Quality of Random Data | |
cat /proc/sys/kernel/random/entropy_avail # To test the amount of available entropy |
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.emmanueloga.cracking.arrays; | |
import java.util.Iterator; | |
import com.google.common.collect.ImmutableList; | |
import com.google.common.collect.Lists; | |
class StringCodepointsIterable implements Iterable<String> { | |
public class StringCodepointsIterator implements Iterator<String> { | |
private int index = 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
package monitoring | |
import java.util.concurrent.TimeUnit | |
import akka.dispatch._ | |
import com.typesafe.config.Config | |
import org.slf4j.MDC | |
import scala.concurrent.ExecutionContext | |
import scala.concurrent.duration.{Duration, FiniteDuration} |