Skip to content

Instantly share code, notes, and snippets.

@cvockrodt
cvockrodt / sensu-gitlab-ci.yml
Created July 2, 2020 23:47
Example GitLab CI Sensu Job
.sensu:login:
variables:
KUBERNETES_POD_ANNOTATIONS_1: "vault.hashicorp.com/agent-pre-populate-only=true"
KUBERNETES_POD_ANNOTATIONS_2: "vault.hashicorp.com/agent-inject=true"
KUBERNETES_POD_ANNOTATIONS_3: "vault.hashicorp.com/agent-inject-secret-creds=kv-v2/sensu-go/bob"
KUBERNETES_POD_ANNOTATIONS_4: |
vault.hashicorp.com/agent-inject-template-creds=
{{- with secret "kv-v2/sensu-go/bob" -}}
export SENSU_USERNAME="{{ .Data.data.username }}"
export SENSU_PASSWORD="{{ .Data.data.password }}"
@cvockrodt
cvockrodt / convert_to_jks
Created July 20, 2018 07:52
Convert p12 to jks (letsencrypt)
#!/bin/bash
certdir=/etc/ssl/private
keystore_path=/etc/letsencrypt/archive/example.com/keystore1.jks
letsdir=/etc/letsencrypt/archive/example.com
password=yourpasswordhere
for i in {6..1}; do cp $letsdir/keystore$i.jks $letsdir/keystore$((i+1)).jks; done
keytool -delete -alias root -storepass $password -keystore $keystore_path
keytool -delete -alias 1 -storepass $password -keystore $keystore_path
Ill-advised or mistaken usage of a core class (java.* or javax.*)
when not building a core library.
This is often due to inadvertently including a core library file
in your application's project, when using an IDE (such as
Eclipse). If you are sure you're not intentionally defining a
core class, then this is the most likely explanation of what's
going on.
However, you might actually be trying to define a class in a core