[rules]
skip-rules = [
"AC_AWS_0369"
]
#!/bin/bash
# This script lists the date and time of the latest change to a directory within a list of directories.
# Define the base directory containing the home directories
base_dir="/home"
# Loop through each home directory
for home_dir in "$base_dir"/*; do
if [ -d "$home_dir" ]; then
for s in $(tofu state list | grep "^aws")
do
tofu state mv $s module.mft-network.$s
done
- Extract CA Cert(s)
openssl pkcs12 -in myapp.pfx -cacerts -nokeys -out myapp-ca.crt
- Extract Server Cert
openssl pkcs12 -in myapp.pfx -clcerts -nokeys -out myapp-server.crt
- Create Chain Cert
Terraform plan output for processing for imports
terraform plan | grep "will be created" | sed 's/\x1b\[[0-9;]*m//g;s/ .#//g;s/"/\\"/g;s/will be created//g'
- Output above seems more conducive to processing than -out plan
In order to remove color codes from a text stream, perform the following operation on the text stream:
sed 's/\x1b\[[0-9;]*m//g'
More stuff => refer https://superuser.com/questions/380772/removing-ansi-color-codes-from-text-stream
netsh int ipv4 show dynamicport tcp
PS C:\Windows\system32> netsh int ipv4 show dynamicport tcp
Start Port : 49152
Number of Ports : 16384
NewerOlder