Skip to content

Instantly share code, notes, and snippets.

View murphybytes's full-sized avatar

John Murphy murphybytes

View GitHub Profile
@murphybytes
murphybytes / dump-yaml.sh
Created November 11, 2024 18:16
Dumps yaml from connected cluster
#!/usr/bin/env bash
#####################################################################
# This script dumps all resources in a cluster to yaml files
# Usage: ./dump-cluster-as-yaml.sh KUBE-CONTEXT
# Example: ./dump-cluster-as-yaml.sh $(kubectl config current-context)
#####################################################################
set -e
CONTEXT="$1"
@murphybytes
murphybytes / suspend-cronjobs.sh
Created January 15, 2025 21:22
Suspend all cronjobs in namespace
#!/bin/bash
#########################################################################
# Usage: suspend-cronjobs.sh <namespace>
# Suspends cronjobs in a namespace
#########################################################################
if ! command -v kubectl &> /dev/null
then
echo "kubectl must be present in order to run this script"
exit 1
@murphybytes
murphybytes / unsuspend-cronjobs.sh
Created January 15, 2025 21:26
Unsuspend all cronjobs in a namespace
#!/bin/bash
#########################################################################
# Usage: unsuspend-cronjobs.sh <namespace>
# Unsuspends cronjobs in a namespace
#########################################################################
if ! command -v kubectl &> /dev/null
then
echo "kubectl must be present in order to run this script"
exit 1
@murphybytes
murphybytes / alacritty.toml
Last active August 26, 2025 15:04
Alacritty Configuration
[general]
working_directory = "/Users/jam"
[font]
normal = { family = "JetBrainsMono Nerd Font", style = "Regular" }
size = 14
[window]
padding = { x = 5, y = 10 }
opacity = 0.75
startup_mode = "FullScreen"
[cursor]