Skip to content

Instantly share code, notes, and snippets.

View liveaverage's full-sized avatar
⚙️

J.R. Morgan liveaverage

⚙️
View GitHub Profile
@liveaverage
liveaverage / zyncque-letsencrypt-fix.sh
Created January 27, 2022 12:44
Workaround for zync-que CA/cert validation errors using Let's Encrypt certificates
### POSSIBLE FIX with ZEROSSL – execute as opentlc-mgr
oc new-project z-ngx
oc new-app --docker-image=quay.io/shifti/openshift-nginx-adc:latest --name=ngx -n z-ngx
oc expose service/ngx
## Backup existing routes
oc get route keycloak -n sso -o yaml | kubectl neat > route-keycloak-orig.yaml
oc get route keycloak-metrics-rewrite -n sso -o yaml | kubectl neat > route-keycloak-met-orig.yaml
oc get route ngx -n z-ngx -o yaml | kubectl neat > route-ngx-orig.yaml
@liveaverage
liveaverage / TsAndCs.html
Created March 18, 2022 21:42
Terms and Conditions Modal Dialog
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-modal/0.9.1/jquery.modal.min.js"></script>
<link rel="stylesheet" href="https://raw.githack.com/liveaverage/jquery-modal/master/jquery.modal.css" />
<div id="tnc" class="modal" style="display: none;" >
<p>Sign your life away</p>
<div><a href="#" class="btn float-right" onclick="acceptTerms()" rel="modal:close">Accept</a></div>
<div><a href="#" class="btn btn-neutral float-left">Decline</a></div>
</div>
<script type="text/javascript" charset="utf-8">
$(document).ready(function() {
if(localStorage.getItem('tcstate') != 'shown'){
@liveaverage
liveaverage / nv-ds-htpasswd.yaml
Last active May 4, 2022 13:57
OpenShift GPU Monitoring Configuration
apiVersion: integreatly.org/v1alpha1
kind: GrafanaDataSource
metadata:
name: nv-ds
namespace: nvidia-gpu-operator
spec:
datasources:
- basicAuthUser: nvadmin
access: proxy
editable: true