Skip to content

Instantly share code, notes, and snippets.

View krishnanunnijs's full-sized avatar

Krishnan Unni krishnanunnijs

View GitHub Profile
@krishnanunnijs
krishnanunnijs / Docker&Kubernetes_LearningPath
Last active January 12, 2024 17:05
Docker and Kubernetes
Understand Containers & Kubernetes :
https://www.youtube.com/watch?v=rmf04ylI2K0
https://www.edureka.co/blog/docker-for-windows/#:~:text=Docker%20for%20windows%20requires%20a,have%20to%20enable%20the%20hypervisor.
https://collabnix.com/how-docker-desktop-for-windows-works-under-the-hood/
Kubernetes in detail :
https://www.youtube.com/watch?v=X48VuDVv0do
@krishnanunnijs
krishnanunnijs / ApiContractTest.java
Created April 30, 2024 17:47
Contract Test using PACT
import au.com.dius.pact.consumer.dsl.PactDslWithProvider;
import au.com.dius.pact.consumer.junit5.PactConsumerTestExt;
import au.com.dius.pact.consumer.junit5.PactTestFor;
import au.com.dius.pact.core.model.RequestResponsePact;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import java.util.HashMap;
import java.util.Map;

Switch Between Multiple Java Versions on Windows

How to Use the Script:

  • Save the script: Create a .bat file using the the script below and save it as usedjk.bat.

  • Move the bat file in environment path : Add the script path to user/system environment variable (optional)

  • Run the script: Open Command Prompt and navigate to the directory where you saved the script. (if #2 is not done)

  • Switch Java versions: Run the script with the desired Java version as an argument.

    For example: usejdk 8 usejdk 11