This PowerShell script creates a new SSH key for the user.
PS> ./new-ssh-key.ps1✅ New SSH key of Ed25519 type saved to ~/.ssh - your public key is:ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILb8s5zU9YDApGQ82H45fMKVPMr5cw9fzh3PEBjZZ+Rm markus@PIAuthor: Markus Fleschutz | License: CC0
This PowerShell script creates a new shortcut file.
shortcut Specifies the shortcut filename
target Specifies the path to the target
description Specifies a description
PS> ./new-shortcut C:\Temp\HDD C:\Author: Markus Fleschutz | License: CC0
This PowerShell script generates a new QR code image file.
text Specifies the text to use
imageSize Specifies the image size (width x height)
fileFormat Specifies the image file format
PS> ./new-qrcode.ps1 "Fasten seatbelt" 500x500 JPGAuthor: Markus Fleschutz | License: CC0
This PowerShell script creates a new junction, linking to a target folder. The target folder can reside on another disk.
junction Specifies the path and filename of the new junction
targetDir Specifies the path to the target directory
PS> ./new-junction.ps1 C:\User\Joe\D_drive D:✅ New junction 'C:\User\Joe\D_drive' created, linking to: 📂D:Author: Markus Fleschutz | License: CC0
This PowerShell script creates an empty new directory in the filesystem.
path Specifies the path and filename of the new directory
PS> ./new-dir.ps1 MyCollection✅ New 📂C:\Temp\MyCollection created.Author: Markus Fleschutz | License: CC0
This PowerShell script creates a new branch in a local Git repository and switches to it.
newBranch Specifies the new Git branch name
pathToRepo Specifies the file path to the local Git repository (current working directory per default)
PS> ./new-branch.ps1 test123⏳ (1/6) Searching for Git executable... git version 2.45.0⏳ (2/6) Checking local repository... C:\Repos\rust⏳ (3/6) Fetching remote updates... git@github.org:rust/rust.git⏳ (4/6) Creating new branch...⏳ (5/6) Pushing updates...⏳ (6/6) Updating submodules...✅ Created branch 'test123' based on 'main' in 📂rust repo in 18s.Author: Markus Fleschutz | License: CC0
This PowerShell script moves the mouse pointer either to the given x/y coordinate or just slightly.
x Specifies the x coordinate in pixels
y Specifies the y coordinate in pixels
PS> ./move-mouse-pointer.ps1 100 100Author: Markus Fleschutz | License: CC0
This PowerShell script minimizes all open windows.
PS> ./minimize-all-windows.ps1Author: Markus Fleschutz | License: CC0
This PowerShell script measures the speed of the SelectionSort algorithm. SelectionSort is an in-place comparison sorting algorithm. It has an O(n2) time complexity, which makes it inefficient on large lists, and generally performs worse than the similar insertion sort. Selection sort is noted for its simplicity and has performance advantages over more complicated algorithms in certain situations, particularly where auxiliary memory is limited.
numIntegers Specifies the number of integers to sort
PS> ./measure-SelectionSort.ps1🧭 0.335 sec to sort 1000 integers by SelectionSortAuthor: Markus Fleschutz | License: CC0