This PowerShell script turns the audio volume down (-10% by default).
percent Specifies the percent number
PS> ./turn-volume-downAuthor: Markus Fleschutz | License: CC0
This PowerShell script toggles the Scroll Lock key state.
PS> ./toggle-scroll-lockAuthor: Markus Fleschutz | License: CC0
This PowerShell script toggles the Num Lock key state.
PS> ./toggle-num-lockAuthor: Markus Fleschutz | License: CC0
This PowerShell script toggles the Caps Lock key state.
PS> ./toggle-caps-lockAuthor: Markus Fleschutz | License: CC0
This PowerShell script synchronizes a local Git repository by pull and push (including submodules).
path Specifies the path to the Git repository (current working directory by default)
PS> ./sync-repo.ps1 C:\Repos\curlβ³ (1/4) Searching for Git executable... git version 2.42.0.windows.1β³ (2/4) Checking local repository... C:\Repos\curlβ³ (3/4) Pulling remote updates... Already up to date.β³ (4/4) Pushing local updates... Everything up-to-dateβ
Synced the πcurl repo in 5s.Author: Markus Fleschutz | License: CC0
This PowerShell script synchronizes (mirrors) the content of 2 directory trees by using Robocopy. Typical use cases are backups: at first everything is copied (full backup), afterward only changes are copied (incremental backup). IMPORTANT NOTE: Make sure the target path is correct because the content gets replaced (DATA LOSS)!
sourcePath Specifies the path to the source dir (to be entered by default)
targetPath Specifies the path to the target dir (to be entered by default)
PS> ./sync-dir.ps1 C:\Photos D:\Backups\Photosβ³ Please wait while syncing content from πC:\Photos to πD:\Backups\Photos ...β
Synced πC:\Photos to πD:\Backups\Photos in 32s.Author: Markus Fleschutz | License: CC0
This PowerShell script switches automatically from tab to tab every seconds (by pressing Ctrl + PageDown).
timeInterval Specifies the time interval in seconds (10sec per default)
PS> ./switch-tabs.ps1β³ Switching from tab to tab automatically every 10 seconds...(click the Web browser to activate it - press <Ctrl C> here to stop it)Author: Markus Fleschutz / License: CC0
This PowerShell script switches a Shelly1 device in the local network.
host Specifies either the hostname or IP address of the Shelly1 device
turnMode Specifies either 'on', 'off', or 'toggle'
timer Specifies the timer in seconds (0 = infinite)
PS> ./switch-shelly1 192.168.100.100 toggle 10Author: Markus Fleschutz | License: CC0
This PowerShell script switches to the given branch in a Git repository and also updates the submodules.
branchName Specifies the Git branch name to switch to
pathToRepo Specifies the file path to the local Git repository
PS> ./switch-branch mainβ³ (1/6) Searching for Git executable... git version 2.43.0.windows.1β³ (2/6) Checking local repository... C:\Repos\rustβ³ (3/6) Fetching remote updates...β³ (4/6) Switching to 'main' branch...β³ (5/6) Pulling remote updates...β³ (6/6) Updating submodules...β
Switched repo πrust to 'main' branch in 22s.Author: Markus Fleschutz | License: CC0
This PowerShell script suspends the local computer immediately.
PS> ./suspendAuthor: Markus Fleschutz | License: CC0