3
0
3
0
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
This PowerShell script speaks the given text with a Ukrainian text-to-speech (TTS) voice.
text Specifies the Ukranian text to speak
PS> ./speak-ukrainian.ps1 "Привіт"Author: Markus Fleschutz | License: CC0