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
| apiVersion: batch/v1 | |
| kind: CronJob | |
| metadata: | |
| name: check-cert-expiry | |
| namespace: default | |
| spec: | |
| schedule: "0 2 * * *" # Runs daily at 2:00 AM | |
| jobTemplate: | |
| spec: | |
| template: |
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 | |
| import math | |
| import psutil | |
| def get_system_info(): | |
| # Get the number of physical cores | |
| num_cores = psutil.cpu_count(logical=False) | |
| # Get available physical memory (in bytes) |
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 | |
| import time | |
| import random | |
| import os | |
| import requests | |
| from bs4 import BeautifulSoup | |
| from PyPDF2 import PdfReader | |
| # Function to create a directory if it doesn't exist |
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 | |
| ## Prerequisites: | |
| # - Rocky Linux 9 install | |
| # - Sudo user setup | |
| ## Check virtualisation enabled | |
| cat /proc/cpuinfo | egrep "vmx|svm" | |
| ## Ensure up-to-date | |
| sudo dnf upgrade --refresh |
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
| # This is the service that names the ip address of the collector | |
| # All pods get an environment variable with this ip in it | |
| apiVersion: v1 | |
| kind: Service | |
| metadata: | |
| name: condor | |
| spec: | |
| selector: | |
| htcondor-role: cm | |
| ports: |