Skip to content

Instantly share code, notes, and snippets.

View phouverneyuff's full-sized avatar

Paulo Henrique phouverneyuff

  • Sao Paulo, SP
View GitHub Profile
emulate sh -c 'source /etc/profile'
############################## NVM CONFIG START ##############################
# NVM bundle
export NVM_LAZY_LOAD=true
############################## COMPINIT CONFIG START ##############################
# it seems that oh-my-zsh already call for it
#autoload -Uz compinit
#for dump in ~/.zcompdump(N.mh+24); do
#!/bin/bash
source $ZSH/plugins/git/git.plugin.zsh
image: maven:3.6-jdk-8-alpine
stages:
- prepare
- compile
- deploy
variables:
MAVEN_CLI_OPTS: "-s settings-everis.xml -P everis-profile --batch-mode"
MAVEN_OPTS: "-Dmaven.repo.local=.m2/repository -Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true "
<settings xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.1.0 http://maven.apache.org/xsd/settings-1.1.0.xsd"
xmlns="http://maven.apache.org/SETTINGS/1.1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<servers>
<server>
<id>everis-microservice-chassis</id>
<username>${env.MAVEN_REPO_USER}</username>
<password>${env.MAVEN_REPO_PASS}</password>
</server>
<server>
@phouverneyuff
phouverneyuff / .gitignore
Last active January 17, 2019 14:57
twitter-databases
.metadata
mongo-data
postgres-kong-data
postgres-konga-data
collection-twitties
twitties-country
show-twitties-app
@phouverneyuff
phouverneyuff / docker-compose-twitter.yml
Last active January 10, 2019 13:55
Docker compose para subir todos as imagens docker para a avaliação
version: '2.1'
services:
mongodb:
image: mongo:latest
container_name: "mongodb"
environment:
- MONGO_DATA_DIR=/data/db
- MONGO_LOG_DIR=/dev/null
- MONGODB_APPLICATION_DATABASE=twitties
volumes:
@phouverneyuff
phouverneyuff / docker-compose.yml
Created March 13, 2017 19:34
Rancher SSL with compose
version: '2'
services:
rancher:
image: rancher/server
container_name: rancher-server
restart: always
nginx:
image: nginx:1.11
volumes:
@phouverneyuff
phouverneyuff / CreateIndices.sql
Last active May 4, 2019 16:25 — forked from adamatan/CreateIndices.sql
CreateIndices.sql
-- Creates an index if it does not already exist in MySQL.
-- Code by RolandoMySQLDBA, minor modifications by Adam Matan.
-- License: CC BY-SA, http://creativecommons.org/licenses/by-sa/3.0/
-- Source: http://dba.stackexchange.com/questions/24531/mysql-create-index-if-not-exists/24541#24541
DELIMITER $$
DROP PROCEDURE IF EXISTS `pixels`.`CreateIndex` $$
CREATE PROCEDURE `pixels`.`CreateIndex`
package main;
public class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello, World");
}
}
grep -Irl --exclude=*.cache* --exclude=*.{PlayOnLinux} /home/user1/ ./ | while read file; do sed -i s//home/user1///home/usario//g ; done