Skip to content

Instantly share code, notes, and snippets.

View ex0b1t's full-sized avatar
👨‍💻
Always Coding

Jaco Botha ex0b1t

👨‍💻
Always Coding
View GitHub Profile
package com.railway.security;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.Iterables;
import lombok.extern.slf4j.Slf4j;
import javax.net.ssl.TrustManager;
import javax.net.ssl.TrustManagerFactory;
import javax.net.ssl.X509TrustManager;
import java.security.KeyStore;
@ex0b1t
ex0b1t / ActuatorHealth.java
Created December 10, 2022 20:30
Actuator Health Check for Docker Compose
import java.io.IOException;
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse.BodyHandlers;
public class ActuatorHealth {
public static void main(String[] args) throws InterruptedException, IOException {
String url = (args != null && args.length > 0) ? args[0].trim() : "http://localhost:8080/actuator/health/readiness";
System.out.println("Health: " + url);
@ex0b1t
ex0b1t / theme.json
Last active February 21, 2020 11:11
Structurizr Theme
{
"elements": [
{
"tag": "Element",
"color": "#ffffff"
},
{
"tag": "Software System",
"background": "#1168bd"
},

Keybase proof

I hereby claim:

  • I am ex0b1t on github.
  • I am ex0b1t (https://keybase.io/ex0b1t) on keybase.
  • I have a public key whose fingerprint is 54F6 EF8D 0058 31FA C00A E35A BF56 F327 BAB2 7F23

To claim this, I am signing this object: