This file contains hidden or 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
| #!/usr/bin/env python | |
| #coding: utf-8 | |
| import sys | |
| import hashlib | |
| import requests | |
| import urllib | |
| import time | |
| import random | |
| import os.path |
This file contains hidden or 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 | |
| docker run -it --rm --name mvn_docker \ | |
| -v "$HOME/.m2":/root/.m2 \ | |
| -v "$(pwd)":/tmp/tdd-lab \ | |
| -w /tmp/tdd-lab \ | |
| maven:3.5.4-jdk-8-alpine \ | |
| mvn "$@" |
This file contains hidden or 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
| WITH dados_teste AS ( | |
| /* Gera dados de exemplo */ | |
| SELECT * | |
| FROM (VALUES ('d1', 'Zé', 2010, 2012), | |
| ('d2', 'Jão', 2010, 2015), | |
| ('d3', 'Zoio', 2010, 2018)) | |
| AS t (id, nome, ano_inicio, ano_fim) | |
| ) | |
| SELECT tb.id, tb.nome, tb.ano_inicio, tb.ano_fim, | |
| /* Gera uma linha para cada ano dentro do intervalo (ano_inicio, ano_fim) */ |
This file contains hidden or 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/sh | |
| curl -L -b "oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/8u181-b13/96a7b8442fe848ef90c96a2fad6ed6d1/jdk-8u181-linux-x64.tar.gz -O |