vi /etc/ssh/sshd_banner
#########################################
# Welcome to My Rocky Linux 9 Server! #
# Authorized access only. #
| import qrcode | |
| # Pre-requiste: pip install qrcode[pil] | |
| # Step 1: Read content from a file | |
| file_path = 'input.txt' # Replace with your actual file path | |
| try: | |
| with open(file_path, 'r', encoding='utf-8') as file: | |
| data = file.read() | |
| except FileNotFoundError: | |
| print(f"Error: File '{file_path}' not found.") | |
| exit(1) |
These are NOT product / license keys that are valid for Windows activation.
These keys only select the edition of Windows to install during setup, but they do not activate or license the installation.
podman volume create mariadb-data
podman volume ls
podman run -d --name mariadb-container -e MYSQL_ROOT_PASSWORD=bitroid -e MYSQL_USER=bitra -e MYSQL_PASSWORD=bitra -e MYSQL_DATABASE=defaultdb -v mariadb-data:/var/lib/mysql -p 6603:3306 docker.io/library/mariadb:latest| #!groovy | |
| /* | |
| * This script configures the Jenkins base URL. | |
| */ | |
| import jenkins.model.JenkinsLocationConfiguration | |
| JenkinsLocationConfiguration location = Jenkins.instance.getExtensionList('jenkins.model.JenkinsLocationConfiguration')[0] | |
| location.url = 'https://jenkins-as-code-poc.devtail.io/' |
| useful resources: https://github.com/ascode-com/wiki/tree/main/certified-kubernetes-administrator | |
| alias ll='ls -l' | |
| alias kcr='kubectl create' | |
| alias ka='kubectl apply -f' | |
| alias k=kubectl | |
| alias kg='kubectl get' | |
| alias ke='kubectl edit' | |
| alias kd='kubectl describe' | |
| alias kdd='kubectl delete' |
| # Convert p12 to pem | |
| openssl pkcs12 -in certificate.p12 -out certificate.pem -clcerts -nodes | |
| # Convert pem to p12 | |
| openssl pkcs12 -export -in certificate.pem -out certificate.p12 -passout pass:password |
Change apiVersion from:
- apiVersion: v1(or apiVersion: apps.openshift.io/v1)
to:
| # Use envFrom to load Secrets and ConfigMaps into environment variables | |
| apiVersion: apps/v1beta2 | |
| kind: Deployment | |
| metadata: | |
| name: mans-not-hot | |
| labels: | |
| app: mans-not-hot | |
| spec: | |
| replicas: 1 |