Skip to content

Instantly share code, notes, and snippets.

@bmeurant
Last active December 21, 2023 10:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bmeurant/bf0241402e5f4618c4d99e88f04767a6 to your computer and use it in GitHub Desktop.
Save bmeurant/bf0241402e5f4618c4d99e88f04767a6 to your computer and use it in GitHub Desktop.
Usefull tools & topics

Tools

MVNW

The Maven Wrapper is an excellent choice for projects that need a specific version of Maven (or for users that don’t want to install Maven at all). Instead of installing many versions of it in the operating system, we can just use the project-specific wrapper script.

links

JQ

jq is a lightweight and flexible command-line JSON processor.

before

{
  "_embedded" : {
    "guestbookMessages" : [ {
      "name" : "Ray",
      "message" : "Hello",
      "imageUri" : null,
      "_links" : {
        "self" : {
          "href" : "http://localhost:8081/guestbookMessages/1"
        },
        "guestbookMessage" : {
          "href" : "http://localhost:8081/guestbookMessages/1"
        }
      }
    }, {
      "name" : "Baptiste Meurant",
      "message" : "Message",
      "imageUri" : null,
      "_links" : {
        "self" : {
          "href" : "http://localhost:8081/guestbookMessages/2"
        },
        "guestbookMessage" : {
          "href" : "http://localhost:8081/guestbookMessages/2"
        }
      }
    } ]
  },
  "_links" : {
    "self" : {
      "href" : "http://localhost:8081/guestbookMessages{?page,size,sort}",
      "templated" : true
    },
    "profile" : {
      "href" : "http://localhost:8081/profile/guestbookMessages"
    }
  },
  "page" : {
    "size" : 20,
    "totalElements" : 2,
    "totalPages" : 1,
    "number" : 0
  }
}

after

{
  "name": "Ray",
  "message": "Hello"
}
{
  "name": "Baptiste Meurant",
  "message": "Message"
}

links

JIB

Containers creation without dockerfile

links

Spring Cloud GCP

links

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment