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
# to generate your dhparam.pem file, run in the terminal | |
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
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/bash | |
#exit on error | |
set -e | |
DOCKER_IMAGE_NAME='maven-indexer-jar' | |
# define a docker volume for maven packages repositories | |
PROJECT_NAME='indexer'; | |
# define a docker volume for maven packages repositories |
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
/** | |
* | |
* Created by luciano on 9/18/16. | |
*/ | |
const Firebase = require('firebase'); | |
const UUID = require('node-uuid'); | |
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
# Fixes empty home | |
ENV HOME /root | |
# add custom ssh config / keys to the root user | |
ADD .ssh/ /root/.ssh/ | |
# Fixes permission if needed | |
RUN chmod 600 /root/.ssh/* | |
# Avoid first connection host confirmation | |
RUN ssh-keyscan -p22 example.com > /root/.ssh/known_hosts |
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
var utils = { | |
gerarCPF: function () { | |
var cpf; | |
var comPontos = true; | |
var n = 9; | |
var n1 = this.randomiza(n); | |
var n2 = this.randomiza(n); | |
var n3 = this.randomiza(n); | |
var n4 = this.randomiza(n); |