| Created |
|
|
|---|---|---|
| Tags |
|
⬅️ [[{{date-1d}}|Yesterday]] / [[{{date+1d}}|Tomorrow]] ➡️
| # get-auth-hdr-1.ps1 | |
| # Get the auth hdr and send it to the clipboard. | |
| # ajh 2023-04-06: new. | |
| #Requires -Version 7 | |
| #Requires -Modules @{ ModuleName="MSAL.PS"; ModuleVersion="4.0" } | |
| # force TLS 1.2 | |
| $TLS12Protocol = [System.Net.SecurityProtocolType] 'Tls12' | |
| [System.Net.ServicePointManager]::SecurityProtocol = $TLS12Protocol |
| # A script to convert EPUB files to CBZ | |
| # (for the specific case of an EPUB with image files following a specific pattern) | |
| # (written with some help from ChatGPT) | |
| # Check if the EPUB file path is provided as a command-line argument | |
| if ($args.Count -eq 0) { | |
| Write-Host "Usage: .\epub2cbz.ps1 <path-to-epub-file>" -ForegroundColor Yellow | |
| return | |
| } |