Send an e-mail via Powershell script using Send-MailMessage

$password = ConvertTo-SecureString 'YourSmtpAccountPassword' -AsPlainText -Force
$credential = New-Object System.Management.Automation.PSCredential ('YourSmtpUsername', $password)
$smtpServer = ""
$smtpPort = 587
$from = ""
$to = ""
$subject = "Your e-mail subject"
$body = "Your e-mail text"
Send-MailMessage -SmtpServer $smtpServer -Port $smtpPort -UseSsl -From $from -To $to -Subject $subject -Body $body -Credential (Get-Credential $credential)

In order to run that as a powershell script you may need to run (at least) “Set-ExecutionPolicy RemoteSigned” in a privileged powershell. The script is configured to use a secure connection to your SMTP server (SSL/TLS) on port 587.

wiki.js podman script

Recently I wanted to test wiki.js on my CentOS 8 Stream VM and ran into all kinds of problems. I found a helping script at but it needed some refinement and correction.

Remember, this is for quick testing only. Especically the chmod 777 is something you do not want to do on a production system.

export DATA=$PWD
export PASSWD=zo03gaeCi1
mkdir -p $DATA/wiki/pgdata 
mkdir -p $DATA/wiki/data
chown -R 1000:1000 wiki
chmod -R 777 wiki
podman pod create --name wiki -p 3001:3000
podman run -d --pod wiki --name wiki_db -e POSTGRES_PASSWORD=$PASSWD -e POSTGRES_USER=wiki -e POSTGRES_DB=wiki -v $DATA/wiki/pgdata:/var/lib/postgresql/data:Z
podman run -d --pod wiki --name wiki_srv -e DB_TYPE=postgres -e DB_HOST=wiki -e DB_PORT=5432 -e DB_USER=wiki -e DB_PASS=$PASSWD -e DB_NAME=wiki -v $DATA/wiki/data:/wiki/data:Z

The pod is created permanently (so the data you have entered for testing will not be lost after stopping / quitting / rebooting). After you are done with testing you can stop it with:

podman pod stop wiki

Aaaand if you want to do more testing you can start it up again with:

podman pod start wiki