Skip to content

Instantly share code, notes, and snippets.

Avatar
☘️
🐝

Joshua Hublar jmhublar

☘️
🐝
View GitHub Profile
View prometheusRule.yaml
apiVersion: monitoring.coreos.com/v1
kind: PrometheusRule
metadata:
namespace: pulsar
creationTimestamp: null
labels:
app: kube-prometheus-stack
release: prometheus-operator
name: pleaseignore
spec:
@jmhublar
jmhublar / Token Utilities
Last active March 15, 2023 03:53
A few token utilities
View Token Utilities
Token Utilities
@jmhublar
jmhublar / doit2it.sh
Created March 27, 2023 02:52
A little script to ease the pain of restoring pulsar pvcs
View doit2it.sh
!/bin/bash
# Set source and destination folders
SOURCE_FOLDER="/efs-new/aws-backup-restore_2023-03-27T00-28-30-414788Z/csi/"
DESTINATION_FOLDER="/efs-new/csi/"
DRY_RUN=false
if [ "$1" == "--dry-run" ]; then
DRY_RUN=true
@jmhublar
jmhublar / heavy_work.sh
Last active May 23, 2023 20:53
Handy little progressbar for bash
View heavy_work.sh
#!/bin/bash
source progressbar.sh
# bar customization
bar_size=70
bar_char_done="|"
bar_char_todo=" "
bar_percentage_scale=4