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
# OSX | |
cat /etc/localtime | bzip2 | boot2docker ssh 'sudo sh -c "bunzip2 | cat > /etc/localtime"' | |
boot2docker ssh 'sudo ntpclient -s -h pool.ntp.org' |
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
export DOMAIN="PUT THE DOMAIN NAME OR IP ADDRESS HERE" | |
export PASSPHRASE=$(head -c 500 /dev/urandom | tr -dc a-z0-9A-Z | head -c 128; echo) | |
openssl genrsa -des3 -out private.key.pwd -passout env:PASSPHRASE 2048 | |
openssl req \ | |
-new \ | |
-batch \ | |
-subj "/commonName=$DOMAIN/" \ | |
-key private.key.pwd \ |
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.lang.annotation.Annotation; | |
import java.lang.reflect.Method; | |
import org.aopalliance.intercept.MethodInterceptor; | |
import com.google.inject.Binder; | |
import com.google.inject.Key; | |
import com.google.inject.MembersInjector; | |
import com.google.inject.Module; | |
import com.google.inject.PrivateBinder; |