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.typesafe.scalalogging.slf4j.Logging | |
import com.sun.mail.imap.IMAPSSLStore | |
import javax.mail.{Store, Session} | |
import java.security.{Provider, Security} | |
import java.util.Properties | |
import OAuth2SaslClientFactory | |
/** |
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
-server | |
-Xms512m | |
-Xmx2048m | |
-XX:MaxPermSize=512m | |
-XX:ReservedCodeCacheSize=256m | |
-XX:+UseCodeCacheFlushing | |
-XX:+UseCompressedOops | |
-XX:+UseConcMarkSweepGC | |
-XX:+AggressiveOpts | |
-XX:+CMSClassUnloadingEnabled |
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 ... | |
ARG GITHUB_TOKEN # GITHUB_TOKEN is only defined for build stage! https://help.github.com/en/articles/creating-a-personal-access-token-for-the-command-line | |
RUN apk add git # This might contain more system packages depending on what is about to be installed by NPM | |
RUN git config --global url."https://${GITHUB_TOKEN}:x-oauth-basic@github.com".insteadOf ssh://git@github.com # Force NPM to use https://${GITHUB_TOKEN}:x-oauth-basic@github.com/<user name>/<repository>.git for modules installed from GitHub | |
COPY package.json /package.json | |
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
# Adjust Docker Machine Memory+CPU | |
# http://stackoverflow.com/questions/32834082/how-to-increase-docker-machine-memory-mac | |
docker-machine stop | |
VBoxManage modifyvm default --cpus 2 | |
VBoxManage modifyvm default --memory 4096 | |
docker-machine start |
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
0.12 |
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
# Save this file | |
# mac - "~/Library/Application Support/Sublime Text 3/Packages/" | |
# linux - "~/.config/sublime-text-3/Packages/" | |
# NOTE! | |
# ~/.nvm/alias/default must contain full version name. | |
# $ nvm alias default v4.3.5 | |
import os |
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
1. Convert our ".jks" file to ".p12" (PKCS12 key store format): | |
keytool -importkeystore -srckeystore oldkeystore.jks -destkeystore newkeystore.p12 -deststoretype PKCS12 | |
1.1. List new keystore file contents: | |
keytool -deststoretype PKCS12 -keystore newkeystore.p12 -list | |
2. Extract pem (certificate) from ".p12" keysotre file: | |
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
# Use only codes greater than 418, do not use common status codes 404, 402, 403, etc | |
location /js { | |
error_page 418 = @backend; return 418; | |
} | |
location /data { | |
error_page 418 = @backend; return 418; | |
} |
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
server { | |
listen 443 ssl; | |
server_name hostname; | |
ssl on; | |
ssl_certificate /etc/nginx/ssl_certs/hostname.bndl.crt; | |
ssl_certificate_key /etc/nginx/ssl_certs/hostname.key; | |
ssl_session_timeout 5m; |
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
// This will simply create link to underscore libraries via wrapping it into service | |
angular.module('underscore', []) | |
.factory('_', function() { | |
return window._; | |
}); |
NewerOlder