
Change the default Java (JDK) version on macOS
First run /usr/libexec/java_home -V to check available Java Virtual Machine: Matching Java Virtual Machines (2): 20.0.1 (arm64) "Eclipse Adoptium" - "OpenJDK 20.0.1" /Library/Java/JavaVirtualMachi...
First run /usr/libexec/java_home -V to check available Java Virtual Machine: Matching Java Virtual Machines (2): 20.0.1 (arm64) "Eclipse Adoptium" - "OpenJDK 20.0.1" /Library/Java/JavaVirtualMachi...
Gradle What’s the difference between implementation, api and compile (compileOnly, runtimeOnly, testImplementation, testCompileOnly, testRuntimeOnly) in Gradle? Name Role ...
Gradle (Groovy) . ├── app │ ... │ └── build.gradle └── settings.gradle rootProject.name = 'basic-multiproject' include 'app' plugins { id 'application' } application { mainClass ...
This tutorial will guide you how to write a post in the Chirpy template, and it’s worth reading even if you’ve used Jekyll before, as many features require specific variables to be set. Naming and...
Whichjdk Introduce JDK, OpenJDK and some openjdk distributions. And some recommendations for using the right distributions Baeldung This blog publishes to-the-point guides and courses, with...
Some AWS CLIs for EC2
Prepare Dockerfile, image, container and IP address Dockerfile FROM ubuntu:22.10 RUN apt update && apt install -y openssh-server nano RUN mkdir /var/run/sshd # Aa@123456 is root pa...
NodeJS Checking memory usage const makeReadable = (value: number): string => `${Math.round((value / 1024 / 1024) * 100) / 100} MB`; export const memoryUsage = (): string => { const use...
Linux Install or update the AWS CLI *Linux x86 (64-bit): curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" unzip awscliv2.zip sudo ./aws/install *Linux ARM cur...
Debian/Ubuntu Useful Commands Check OS version cat /etc/os-release Search text from terminal grep -rnwi '/path/file.js' -e 'keyword_not_case_sensitive' Show some logs, contents from line X t...