This PowerShell script installs evcc. Evcc is an extensible EV Charge Controller with PV integration implemented in Go. See https://evcc.io for details.
PS> ./install-evcc.ps1Author: Markus Fleschutz | License: CC0
This PowerShell script installs and starts a local Calibre server as background process.
port Specifies the Web port number (8099 by default)
mediaFolder Specifies the file path to the media ('/opt/Calibre Library' by default)
userDB Specifies the file path to the user database ('/opt/CalibreUsers.sqlite' by default)
logfile Specifies the file path to the log file ('/opt/CalibreServer.log' by default)
PS> ./install-calibre-server.ps1⏳ (1/5) Updating package infos......Author: Markus Fleschutz | License: CC0
This PowerShell script installs 20 basic snap apps.
PS> ./install-basic-snaps.ps1⏳ Installing 20 snap apps (sorted alphabetically)...Author: Markus Fleschutz | License: CC0
This PowerShell script is a sample script writing "Hello World" to the console.
PS> ./hello-world.ps1Hello WorldAuthor: Markus Fleschutz | License: CC0
This PowerShell script fetches remote updates into a local Git repository (including submodules).
path Specifies the file path to the local Git repository (default is working directory).
PS> ./fetch-repo.ps1⏳ (1/3) Searching for Git executable... git version 2.41.0.windows.3⏳ (2/3) Checking local repository... C:\Repos\rust⏳ (3/3) Fetching updates (including submodules)...✅ Updates fetched into 📂rust repo in 2s.Author: Markus Fleschutz | License: CC0
This PowerShell script counts the number of lines in text files (.txt/.md/.c/.h/.cpp/.hpp/.java/.py/.ps1/.bat) within a directory tree.
pathToDirTree Specifies the path to the directory tree.
PS> ./count-lines.ps1 C:\Repos\cmake✅ Found 639921 lines in 11411 text files within 📂cmake in 34 sec.Author: Markus Fleschutz | License: CC0
This PowerShell script counts the number of characters in the given string.
GivenString Specifies the given string.
PS> ./count-characters.ps1 "Hello World"✅ 11 characters counted in 'Hello World'.Author: Markus Fleschutz | License: CC0
This PowerShell script copies image files from to sorted by year and month.
sourceDir Specifies the path to the source folder
targetDir Specifies the path to the target folder
PS> ./copy-photos-sorted.ps1 D:\iPhone\DCIM C:\MyPhotos⏳ Copying IMG_20240903_134445.jpg to C:\MyPhotos\2024\09 SEP\...✅ Copied 1 photo to 📂C:\MyPhotos in 13s (0 skipped).Author: Markus Fleschutz | License: CC0
This PowerShell script converts the comment-based help of a PowerShell script to Markdown.
filename Specifies the path to the PowerShell script
PS> ./convert-ps2md.ps1 myscript.ps1Author: Markus Fleschutz | License: CC0
This PowerShell script converts your command history into a PowerShell script. It saves all your commands into a script for automation (executed by e.g Jenkins or AutoHotkey).
path Specifies the file path of the new script ('script-from-history.ps1' by default)
PS> ./convert-history2ps1.ps1✅ Converted your command history into the PowerShell script: script-from-history.ps1Author: Markus Fleschutz | License: CC0