Skip to content

Instantly share code, notes, and snippets.

@lsneucamp
lsneucamp / nginx.conf
Created December 19, 2017 12:52 — forked from plentz/nginx.conf
Best nginx configuration for improved security(and performance). Complete blog post here http://tautt.com/best-nginx-configuration-for-security/
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
@lsneucamp
lsneucamp / build.sh
Created May 25, 2017 04:47
Docker build script
#! /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
@lsneucamp
lsneucamp / firebase_to_es.js
Created September 24, 2016 19:24
[Jobs] Firebase->Elasticsearch
/**
*
* Created by luciano on 9/18/16.
*/
const Firebase = require('firebase');
const UUID = require('node-uuid');
@lsneucamp
lsneucamp / Dockerfile
Created April 24, 2016 02:27
Dockerfile Copy SSH-KEYS
# 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
@lsneucamp
lsneucamp / generators-test.js
Created April 15, 2016 19:35
Js Test Generator
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);