Shut down without showing a confirmation dialog:
osascript -e 'tell app "System Events" to shut down'
Shut down after showing a confirmation dialog:
osascript -e 'tell app "loginwindow" to «event aevtrsdn»'
Shut down without showing a confirmation dialog:
osascript -e 'tell app "System Events" to shut down'
Shut down after showing a confirmation dialog:
osascript -e 'tell app "loginwindow" to «event aevtrsdn»'
#!/bin/bash | |
# Create fullchain | |
cat ~/cert/*.ca-bundle ~/cert/*.crt >> fullchain.cer | |
# Generate pkcs12 cert from acme output | |
openssl pkcs12 -export -in ~/cert/fullchain.cer -inkey \ | |
~/cert/mydomain.key \ | |
-out ~/cert/unifi.p12 -name unifi -password pass:aircontrolenterprise | |
https://support.apple.com/en-us/HT213264 | |
Published Date: October 24, 2022 | |
Verification: https://regex101.com/r/nRkAFo/2 | |
1) Exact regex — Matches major model identifier numbers based on Apple's knowledge base article (more accurate): | |
^(Mac(1[34]|BookPro1[4-8]|BookAir([89]|10)|Pro7|Book10)|iMac(Pro1|(1[89]|2[01]))|Macmini[89]),\d+$ | |
2) Current or higher regex — Matches model identifiers based on Apple's knowledge base article and may match higher versions before this regex is updated (more future-proof). |