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 = "smtp.yourdomain.com"
$smtpPort = 587
 
$from = "sender@yourdomain.com"
$to = "recipient@yourdomain.com"
$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 https://books.clusterapps.com/books/containers/page/pod-scripts 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 docker.io/library/postgres
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 ghcr.io/requarks/wiki:2

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

Dinge die ich (seit 2017) tue, während mein Elektroauto lädt

(only in german – sorry)

  1. Schlafen
  2. Pilze suchen
  3. Kaffee trinken
  4. Bungalow kehren
  5. Wäsche abhängen
  6. Abendessen
  7. Schifffahrtplan studieren
  8. Diese Liste schreiben
  9. Durch die Außenbezirke von Moers spazieren
  10. Bei Aldi einkaufen
  11. Eine Runde schwimmen gehen
  12. Ein Stück Torte bei Franz Mehlhose essen
  13. Den Gebetsteppich ausbreiten und in Richtung Mekka beten (mache nicht ich, habe ich beobachtet)
  14. Architects hören
  15. Podman Scripts bauen für wiki.js
  16. Mit dem Hund spazieren gehen
  17. Nietzsche lesen

Sinnlos im Weltraum

(only in german – sorry)

Update: Der Download Mirror hat sich geändert und ist jetzt zu finden unter: http://siw.juxtapose.de/siw

Ich bin schon seit einiger (langer) Zeit großer Fan von Sinnlos im Weltraum. Laut Wikipedia ist:

Sinnlos im Weltraum (kurz: SiW) ist ein Fandub und eine nicht kommerzielle Parodie auf Raumschiff Enterprise: Das Nächste Jahrhundert (mit Ausnahme der Folge Segelohr, die auf dem Fragment einer alten Raumschiff-Enterprise-Folge basiert). Als Grundlage diente originales Filmmaterial, das von insgesamt sieben Freunden in Siegerländer Umgangssprache und Siegerländer Dialekt (Sejerlänner Platt) neusynchronisiert wurde,[1] sodass die Folgen neue Handlungen bekamen und die Charaktere mitunter in ihr totales Gegenteil verkehrt wurden. Besonders deutlich äußert sich diese Diskrepanz gegenüber dem Original in der verwendeten Wortwahl und Ausdrucksweise. Die Beteiligten von SiW „dürfen […] sich vielleicht als Urväter der Filmgattung »Fansynchro« bezeichnen – auf deutschem Boden jedenfalls“.[2]

Daher habe ich mich entschieden wieder einen Mirror zum Download der DVD Version aufzusetzen. Unter http://siw.juxtapose.de/siw findet ihr beide DVD´s von Sinnlos im Weltraum zum Download. Darauf enthalten sind alle Folgen.

Viel Spaß damit!

>>> Zum Download

XBOX 360 Wireless Receiver not working after update to Windows 10 2004 Build 19041.610

After updating to the latest Windows 10 version my XBOX 360 wireless receiver was not recognized anymore and shown as “unknown device” in the device manager.

To fix this you´ll need to modify the “xusb21.inf” file that comes with the driver package as explained in this video:

You might have some trouble with enabling the testsigning for the now modified driver, especially if you are runnig Windows 10 Home. To fix this reboot your PC with this command "shutdown.exe /r /o /f /t 00".

Your pc will then boot into the advanced Windows options and there you can deactivate the driver signing for the next restart. Then you can install the unsigned driver, reboot the machine and enjoy your wireless controller working again.

Citrix Receiver SSL Error 61 – DigiCert Global Root G2 not trusted

When you´re trying to connect to a remote machine / desktop / application you might get SSL error 61 from the Citrix Receiver saying that the DigiCert Global Root G2 certificate is not trusted.

The solution for this on a typical Windows 10 Machine is:

  1. Go to the DigiCert website https://www.digicert.com/digicert-root-certificates.htm and download the DigiCert Global Root G2 certificate (right click “Save as”).
  2. Open the start menu of Windows 10, type “cert” and choose “Manage computer certificates”
  3. Select “Intermediate Certification Authorities” and then “Certificates”
  4. Right click in the window on the right and select “All tasks” -> “Import”
  5. Select “Next”, then choose the certificate you have downloaded in step 1
  6. Choose “Select certificate store atutomatically” and then finish the import process
  7. You´re done :-).

Irfanview on Mac OS X

Since I´m still relatively new in the use of Mac OS I sometimes miss some Windows apps. One of these is Irfanview which is not natively available for Mac OS. But there´s a simple solution for that:

  1. Download and install Quarz – https://www.xquartz.org
  2. Download and install Wine – https://dl.winehq.org/wine-builds/macosx/download.html – I recommend using the Wine Stable installer. When installing be sure to activate the checkbox with the 64-bit support.
  3. Download Irfanview and extract it to a folder of your choice (e.g. Desktop/Downloads/Irfanview) – https://www.irfanview.com/64bit.htm – Be sure to download the ZIP version and NOT the installer.
  4. Optional – download Irfanview plugins and extract it into the plugins subfolder of the folder where you’ve extracted Irfanview (e.g. Desktop/Downloads/Irfanview/plugins) – https://www.irfanview.com/64bit.htm – Again be sure to download the ZIP version.
  5. Start Irfanview by double-clicking the irfanview.exe file in the Irfanview folder. Wine will then do its initial setup and needs to download Mono add-ons (required for .NET applications like Irfanview).
  6. After that Irfanview launches and you’re good to go.