Dependencies to Java Testing with:
- JUnit 5
- API tests
- Architecture tests
- TestContainer for IT
- Jacoco for coverage report
- Pitest for mutation test
To run:
FROM maven:3.9-eclipse-temurin-17-alpine AS builder | |
WORKDIR /app | |
COPY pom.xml . | |
RUN mvn verify --fail-never | |
COPY src ./src | |
RUN mvn package | |
FROM ibm-semeru-runtimes:open-17-jre-centos7 |
<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee | |
http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd" | |
version="3.1"> | |
</web-app> |
/** | |
* Script to parse a Postman backupt to Insomnia keeping the same structure. | |
* | |
* It parses: | |
* - Folders | |
* - Requests | |
* - Environments | |
* | |
* Notes: Insomnia doesn't accept vars with dots, if you are using you must replace yours URLs manually (see ENVIRONMENTS_EXPORTS). | |
*/ |
/* ******************************************************************************************* | |
* TAILWIND.CSS | |
* DOCUMENTATION: https://tailwindcss.com/ | |
* | |
* Original file can be seen here: https://github.com/LeCoupa/awesome-cheatsheets/blob/master/frontend/tailwind.css | |
* ******************************************************************************************* */ | |
/* | |
* Available breakpoints | |
* -------------------- |
## Cluster | |
### Cluster info | |
kubectl cluster-info | |
kubectl get nodes | |
kubectl describe node | |
### Listar os eventos | |
kubectl get events |
Dependencies to Java Testing with:
To run:
run: build | |
java -cp .:dist Main | |
build: src/Main.java | |
javac -d dist src/Main.java | |
clean: | |
rm -rf dist | |
mkdir dist |
# This was created to export any JSON format to CSV. | |
# I've created to help extract MongoDb collection to one or more CSV, [hopefully] in a normalized tables. | |
import pandas as pd | |
class JsonToDataFrameCsvExporter(object): | |
""" Simple exporter to help transform a JSON into a DataFrame CSV file. | |
The main purpose of this exporter is to export a JSON as a collection of normalized | |
table in CSV file. |
import java.lang.reflect.Field; | |
import sun.misc.Unsafe; | |
public class TestThreadStackSize { | |
private static void crashVM() { | |
try { | |
makeSegfault(getUnsafe()); | |
} catch (Exception e) { | |
// swallow | |
} |
FROM maven:3.6-jdk-11 as builder | |
WORKDIR /app | |
COPY pom.xml . | |
# download dependencies as specified in pom.xml | |
# building dependency layer early will speed up compile time when pom is unchanged | |
RUN mvn verify --fail-never | |
COPY src ./src |