Skip to content

Instantly share code, notes, and snippets.

View dlabey's full-sized avatar

Darren dlabey

  • San Diego, CA
View GitHub Profile
@dlabey
dlabey / Utils.java
Created May 24, 2024 19:28
Deep Merge a Java Object when the original does not have the value
import java.util.List;
import java.util.Map;
class Utils {
private Utils() {
}
@SuppressWarnings({"unchecked", "rawtypes"})
private static Map deepMerge(Map original, Map newMap) {
@dlabey
dlabey / Utils.java
Created June 21, 2024 17:02
Get Path Parameter
package com.sony.sie.payments.paas.apigateway;
import java.util.regex.Pattern;
import org.apache.commons.lang3.StringUtils;
public final class Utils {
private static final String PATH_SEPARATOR = "/";
@dlabey
dlabey / check_jre_trust_store.sh
Created March 25, 2025 23:08
Check JRE Trust Store for a specific cert
#!/usr/bin/env bash
/usr/lib/jvm/java-1.8.0-amazon-corretto/jre/lib/security keytool -keystore cacerts -storepass changeit -list | grep digicert