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
# HELP prometheus_http_requests_total Counter of HTTP requests. | |
# TYPE prometheus_http_requests_total counter | |
prometheus_http_requests_total{code="200",handler="/api/v1/query"} 30 | |
prometheus_http_requests_total{code="200",handler="/api/v1/status/config"} 1 | |
prometheus_http_requests_total{code="200",handler="/api/v1/targets"} 1 | |
prometheus_http_requests_total{code="200",handler="/metrics"} 509 |
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
version: "3" | |
networks: | |
kong-net: | |
driver: bridge | |
services: | |
####################################### | |
# Postgres: The database used by Kong |
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
version: '3' | |
services: | |
rabbitmq: | |
image: rabbitmq:management | |
container_name: rabbitmq | |
networks: | |
- desenv-local | |
ports: | |
- "5672:5672" | |
- "15672:15672" |
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
public class SessionRepositoryFilter implements Filter { | |
public doFilter(ServletRequest request, ServletResponse response, FilterChain chain) { | |
HttpServletRequest httpRequest = (HttpServletRequest) request; | |
SessionRepositoryRequestWrapper customRequest = | |
new SessionRepositoryRequestWrapper(httpRequest); | |
chain.doFilter(customRequest, response, chain); | |
} |
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 static org.junit.jupiter.api.Assertions.assertEquals; | |
import org.junit.jupiter.api.DisplayName; | |
import org.junit.jupiter.api.Tag; | |
import org.junit.jupiter.api.Test; | |
import org.junit.jupiter.api.TestInfo; | |
@Tag("fast") | |
class FirstTest { |
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
// module-info.java | |
module br.com.esig.database { | |
} |
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
package br.com.esig.database; | |
import java.sql.ResultSet; | |
public interface MapeadorLinha<T> { | |
T mapear(ResultSet res, int index); | |
} |
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
Field f = Unsafe.class.getDeclaredField("theUnsafe"); | |
f.setAccessible(true); | |
Unsafe unsafe = (Unsafe) f.get(null); |
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
class Pessoa { | |
def methodMissing(String name, args){ | |
println "Foi chamado ${name} com os argumentos ${args}" | |
} | |
} | |
def p = new Pessoa() | |
p.andar() | |
p.falar("Groovy!") |
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
class Pessoa { | |
} | |
def p = new Pessoa() | |
p.andar() | |
//groovy.lang.MissingMethodException: No signature of method: Pessoa.andar() is applicable for argument types: () values: [] | |
//Possible solutions: any(), any(groovy.lang.Closure), find(), miau(), find(groovy.lang.Closure), findAll() | |
// at ConsoleScript3.run(ConsoleScript3:6) |
NewerOlder