This PowerShell script converts a .CSV file into a text file and prints it.
Path Specifies the path to the .CSV file
PS> ./convert-csv2txt salaries.csvAuthor: Markus Fleschutz | License: CC0
This PowerShell script configures your Git user settings.
fullName Specifies the user's full name
emailAddress Specifies the user's email address
favoriteEditor Specifies the user's favorite text editor
PS> ./configure-git.ps1 "Joe Doe" joe@doe.com vim⏳ (1/5) Searching for Git executable... git version 2.42.0.windows.1⏳ (2/5) Asking for user details...⏳ (3/5) Saving basic settings (autocrlf,symlinks,longpaths,etc.)...⏳ (4/5) Saving user settings (name,email,editor)...⏳ (5/5) Saving user shortcuts ('git br', 'git ls', 'git st', etc.)...✅ Saved your Git configuration to ~/.gitconfig in 11s.Author: Markus Fleschutz | License: CC0
This PowerShell script deletes all untracked files and folders in a local Git repository (including submodules). NOTE: To be used with care! This cannot be undone!
path Specifies the file path to the local Git repository (current working directory by default)
PS> ./clean-repo.ps1 C:\Repos\rust⏳ (1/4) Searching for Git executable... git version 2.47.0⏳ (2/4) Checking local repository... C:\Repos\rust⏳ (3/4) Removing untracked files in repository...⏳ (4/4) Removing untracked files in submodules...✅ Repo 📂rust is clean now.Author: Markus Fleschutz | License: CC0
This PowerShell script queries the status of the VPN connection(s) and prints it.
PS> ./check-vpn.ps1✅ Internet VPN to NASA L2TP is connectedAuthor: Markus Fleschutz | License: CC0
This PowerShell script queries the computer's uptime (time between now and last boot up time) and prints it.
PS> ./check-uptime.ps1✅ OfficePC is up for 13 days since 1/25/2024Author: Markus Fleschutz | License: CC0
This PowerShell script queries the local time zone and prints it.
PS> ./check-time-zone.ps1✅ 3:27 PM West Europe Summer Time (UTC+01:00:00 +1h DST)Author: Markus Fleschutz | License: CC0
This PowerShell script checks all symbolic links in a directory tree. It returns the number of broken symlinks as exit value.
folder Specifies the path to the folder
PS> ./check-symlinks D:\⏳ Please wait while checking symlinks at: 📂D:\ ...✅ Found 0 broken symlinks at 📂D:\ in 60s.Author: Markus Fleschutz | License: CC0
This PowerShell script queries the current status of the swap space and prints it.
minLevel Specifies the minimum level in MB (10 MB by default)
PS> ./check-swap-space.ps1✅ Swap space uses 1GB (21%) of 5GBAuthor: Markus Fleschutz | License: CC0
This PowerShell script checks the given subnet mask for validity.
address Specifies the subnet mask to check
PS> ./check-subnet-mask.ps1 255.255.255.0✅ subnet mask 255.255.255.0 is validAuthor: Markus Fleschutz | License: CC0
This PowerShell script queries the status of the SSD/HDD devices (supporting S.M.A.R.T.) and prints it.
PS> ./check-smart-devices.ps1✅ 1TB Samsung SSD 970 EVO 1TB via NVMe (35°C, 6142h, 770x on/off, 34TB read, 64TB written, v2B2QEXE7, test passed)Author: Markus Fleschutz | License: CC0