This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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) |
OlderNewer