Skip to content

Instantly share code, notes, and snippets.

View sz763's full-sized avatar
💭
I may be slow to respond.

Salavat sz763

💭
I may be slow to respond.
View GitHub Profile
@sz763
sz763 / fix_long_number_swagger_ui.md
Last active September 21, 2024 08:33
How to fix rounded long values in spring + swagger-ui

If you read this article, then your http response in Swagger UI contains rounded Long values, e.g.

You are expect

{
  "id": 1111111111111111111
}

But got

@sz763
sz763 / docker_wsl2.md
Last active May 1, 2025 13:34
How to run tests with TestContainers in WSL2 without Docker Desktop

Install docker

in case you haven't docker installed, please follow this instruction https://docs.docker.com/engine/install/ubuntu/

Expose docker port

First way

Create daemon.json file in /etc/docker, with content:

{"hosts": ["tcp://0.0.0.0:2375", "unix:///var/run/docker.sock"]}

Second way suggested by @maireadmccabe-fire