This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PARENT=$(basename $PWD) | |
GRANDPARENT=$(basename $(dirname $PWD)) | |
REPOPATH=$GRANDPARENT/$PARENT | |
if [ ! -d .git ]; then | |
echo "Cloning $REPOPATH into $PWD" | |
tfile=$(mktemp /tmp/envrc.XXXXXXXXX) | |
mv .envrc $tfile | |
git clone https://github.com/$REPOPATH.git ./ | |
mv $tfile .envrc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; less-awful-ssl {:mvn/version "1.0.4"} | |
;; clj-http {:mvn/version "3.9.1"} | |
(let [trust-store (less.awful.ssl/trust-store (clojure.java.io/file "/var/run/secrets/kubernetes.io/serviceaccount/ca.crt")) | |
bearer-token (format "Bearer %s" (slurp "/var/run/secrets/kubernetes.io/serviceaccount/token")) | |
kube-api-host (System/getenv "") | |
kube-api-port (System/getenv "")] | |
(clj-http.client/get | |
(format "https://%s:%s/apis/<something-protected>" kube-api-host kube-api-port) | |
{:trust-store trust-store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(take 10 (filter #(clojure.string/ends-with? % "DefaultChannelPool") | |
(map str (.getAllClasses (com.google.common.reflect.ClassPath/from | |
(.getContextClassLoader (Thread/currentThread))))))) |
OlderNewer