Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env bash
set -euo pipefail
# macOS: LazyVim (Java + Kotlin) + SDKMAN Amazon Corretto
# + headless bootstrap that installs ONLY treesitter parsers: bash, java, kotlin
# + Mason installs: jdtls, kotlin-language-server, ktlint, java-debug-adapter, java-test
# + Autoformat-on-save OFF globally
STAMP="$(date +%Y%m%d-%H%M%S)"
NVIM_DIR="${XDG_CONFIG_HOME:-$HOME/.config}/nvim"
@zu50052f
zu50052f / camunda_with_two_external_task_app_example.java
Created March 22, 2023 06:11
camunda with two external task app example
@SpringBootApplication
public class CamundaApplication {
public static void main(String[] args) {
SpringApplication.run(CamundaApplication.class, args);
}
@Bean
public ExternalTaskClient externalTaskClient() {
return ExternalTaskClient.create()
@zu50052f
zu50052f / simple_spring_boot_app_with_oracle_db_rest_micrometer_jaeger.java
Created March 22, 2023 06:07
simple spring boot app with oracle db rest micrometer jaeger
@SpringBootApplication
public class Application {
public static void main(String[] args) {
SpringApplication.run(Application.class, args);
}
@Bean
public DataSource dataSource() {
OracleDataSource dataSource = new OracleDataSource();
@zu50052f
zu50052f / spring_boot_micrometer_rest_interceptor.java
Last active March 22, 2023 06:04
spring boot micrometer rest interceptor
@Bean
public MeterRegistryCustomizer<MeterRegistry> metricsCommonTags() {
return registry -> registry.config().commonTags("application", "my-spring-boot-app");
}
@Bean
public RestTemplate restTemplate() {
return new RestTemplateBuilder()
.interceptors((request, body, execution) -> {
try {