Skip to content

Instantly share code, notes, and snippets.

View LannyRipple's full-sized avatar

Lanny Ripple LannyRipple

  • Houston, TX
View GitHub Profile
@LannyRipple
LannyRipple / rubiks-cube.md
Last active July 30, 2024 06:47
Solving a Rubik's Cube
@LannyRipple
LannyRipple / java-cacert
Created May 18, 2021 17:54
Bash script adding nexus cacert to current java
#!/bin/bash
nexus=nexus.example.net:443
java_home=$( java -XshowSettings:properties -version 2>&1 > /dev/null | grep 'java.home' | sed 's/.*= //' )
echo -n | openssl s_client -connect $nexus |\
sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' > /tmp/nexus.crt
trap "rm -f /tmp/nexus.crt" 0 2 13 14