Skip to content

Instantly share code, notes, and snippets.

@f5-rahm
f5-rahm / cliscript_xfer.sh
Created January 31, 2024 20:36
BIG-IP cli script transfer
#!/bin/bash
# Check for the correct number of arguments
if [ "$#" -ne 3 ]; then
echo "Usage: $0 <script_name> <source_IP> <destination_IP>"
exit 1
fi
script_name="$1"
source_ip="$2"
@f5-rahm
f5-rahm / lbu.sh
Created March 7, 2024 22:03
listing backups for BIG-IP Next instances on Central Manager
#!/bin/bash
# Get volume name
volname=$(kubectl get pvc mbiq-local-storage-pv-claim -o yaml | grep "volumeName:" | awk '{print $2}')
if [[ -z "$volname" ]]; then
echo "volumeName could not be found."
exit 1
fi
import os
def find_matching_file(smartsheet_filename, input_filename, directory):
# Normalize input filenames by converting to lowercase and removing .mp4 if present
def normalize_filename(filename):
filename = filename.lower().rstrip('.mp4') # Remove trailing ".mp4" (case-insensitive)
return filename
normalized_smart_filename = normalize_filename(smartsheet_filename)
normalized_input_filename = normalize_filename(input_filename)
@f5-rahm
f5-rahm / cspayload.py
Last active February 3, 2026 20:44
Test tool for passing dummy json payloads between a client and server
#!/usr/bin/env python3
"""
Simple HTTP Client/Server for JSON payload exchange
Basic Usage:
Server mode: python cspayload.py server [options]
Client mode: python cspayload.py client [options]
Server Options:
--host HOST Host to bind to (default: 0.0.0.0)