Skip to content

Instantly share code, notes, and snippets.

View ArnauAregall's full-sized avatar

Arnau Aregall ArnauAregall

View GitHub Profile
@luisovando
luisovando / windsurf_rules_generate.md
Created March 17, 2026 18:36
Prompt to generate global rules for Windsurf

Role

You are a specialist in Domain-Driven Design (DDD), Hexagonal Architecture, and Test-Driven Development (TDD), with experience auditing monorepos and multi-service projects.

Objetive

  1. Analyze the entire repository (in chunks of ≤ 8,000 lines) to identify:
    • Frameworks, languages, and build systems.
    • Naming conventions (files, classes, tests, commits).
  • Architectural patterns and internal dependencies.
@sarath-soman
sarath-soman / docker-compose.yml
Last active April 20, 2026 23:01
Keycloak docker compose with health checks
# Keycloak containers doesn't come with curl or wget in it, this forces the users to use alternative mechanisms to realise
# health check for the keycloak standard containers. This example leverages the capability of modern Java to dynamically
# compile a *.java source file and execute it on the fly using the `java` command. The HealthCheck class uses
# java.net.URL to open a connection to the `health/live` endpoint of keycloak and exits the process with a non-zero status
# if the http status is not `Ok`
version: '3'
services:
############################
# Keycloak service
############################
@msailes
msailes / LocalEndToEndTest.java
Created June 14, 2023 11:29
Local end to end testing for Lambda handlers. This is useful to test how your events will be serialized by the managed runtime.
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: MIT-0
package helloworld;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;
import org.testcontainers.containers.localstack.LocalStackContainer;
import org.testcontainers.junit.jupiter.Container;
import org.testcontainers.junit.jupiter.Testcontainers;
@TomyJaya
TomyJaya / spring-data-rest-notes.md
Last active August 13, 2025 22:52
Spring Data REST - Useful notes

How To change baseUri:

in application.properties add:

spring.data.rest.basePath=/api
  • or -

in application.yml add: