Skip to content

Instantly share code, notes, and snippets.

View alexaugustobr's full-sized avatar
🤔
0x141A140E6

Alex alexaugustobr

🤔
0x141A140E6
View GitHub Profile
@alexaugustobr
alexaugustobr / index.html
Created February 13, 2026 14:09
HTTP Cache Debug Page
<!DOCTYPE html>
<html lang="pt-BR">
<head>
<meta charset="UTF-8" />
<title>HTTP Cache Debug</title>
<style>
body {
font-family: Arial, sans-serif;
background: #f4f6f8;
@alexaugustobr
alexaugustobr / .gitignore
Last active January 17, 2026 00:46
AlgaDelivery - Docker Compose e Ignore
HELP.md
.gradle
build/
!gradle/wrapper/gradle-wrapper.jar
!**/src/main/**/build/
!**/src/test/**/build/
### STS ###
.apt_generated
.classpath
@alexaugustobr
alexaugustobr / open-api.yml
Last active July 16, 2025 16:44
AlgaDelivery Open API
openapi: 3.0.4
info:
title: Algadelivery Delivery Tracking and Courier Management API
description: API para rastreamento e gerenciamento de entregas e gestão de entregadores do sistema Algadelivery.
version: 1.0.0
servers:
- url: http://localhost:8080
- url: http://localhost:8081
tags:
- name: Couriers
@alexaugustobr
alexaugustobr / .gitignore
Last active January 20, 2026 13:41
AlgaDelivery
HELP.md
.gradle
build/
!gradle/wrapper/gradle-wrapper.jar
!**/src/main/**/build/
!**/src/test/**/build/
### STS ###
.apt_generated
.classpath
@alexaugustobr
alexaugustobr / .gitignore
Last active June 27, 2025 12:52
.gitignore
HELP.md
.gradle
build/
!gradle/wrapper/gradle-wrapper.jar
!**/src/main/**/build/
!**/src/test/**/build/
### STS ###
.apt_generated
.classpath
server:
port: '8080'
spring:
application:
name: device-management
datasource:
username: sa
url: jdbc:h2:file:~/algasensors-device-management-db;CASE_INSENSITIVE_IDENTIFIERS=TRUE;
driverClassName: org.h2.Driver
spring.datasource.url=jdbc:h2:file:~/algasensors-device-management-db;CASE_INSENSITIVE_IDENTIFIERS=TRUE;
spring.datasource.driverClassName=org.h2.Driver
spring.datasource.username=sa
spring.datasource.password=123
#Permite acesso remoto
spring.h2.console.enabled=true
spring.h2.console.settings.web-allow-others=true
spring.jpa.database-platform=org.hibernate.dialect.H2Dialect
@alexaugustobr
alexaugustobr / data.sql
Created April 3, 2025 23:59
AlgaSensors
INSERT INTO TEMPERATURE_LOG (ID, REGISTERED_AT, SENSOR_ID, "VALUE") VALUES
('0195cfd5-0487-7da9-a98e-ed69225fc211', '2025-03-25 21:12:00.766567-03', 692426757632926458, 100.0);
INSERT INTO TEMPERATURE_LOG (ID, REGISTERED_AT, SENSOR_ID, "VALUE") VALUES
('0195cfd5-9e8b-7374-b5bf-18fbafdf9537', '2025-03-25 21:12:00.766567-03', 692426757632926458, 50.0);
server:
port: '8082'
spring:
application.name: temperature-monitoring
datasource:
username: sa
url: jdbc:h2:file:~/algasensors-temperature-monitoring-db;CASE_INSENSITIVE_IDENTIFIERS=TRUE;
driverClassName: org.h2.Driver
password: '123'
package com.algaworks.algashop.order.domain.model;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.text.DecimalFormat;
import java.util.UUID;
import java.util.concurrent.ConcurrentHashMap;