mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-04-30 13:44:43 +02:00
Update synopsis and description
This commit is contained in:
parent
a1ec7f0183
commit
79497e5e00
@ -1,8 +1,8 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
add-firewall-rules.ps1 [<PathToExecutables>]
|
|
||||||
.DESCRIPTION
|
|
||||||
Adds firewall rules for the given executables (needs admin rights)
|
Adds firewall rules for the given executables (needs admin rights)
|
||||||
|
.DESCRIPTION
|
||||||
|
add-firewall-rules.ps1 [<PathToExecutables>]
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./add-firewall-rules C:\MyApp\bin
|
PS> ./add-firewall-rules C:\MyApp\bin
|
||||||
Adding firewall rule for C:\MyApp\bin\app1.exe
|
Adding firewall rule for C:\MyApp\bin\app1.exe
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
add-memo.ps1 [<text>]
|
Adds a memo to Memos.csv in the home folder
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
Adds the given memo text to $HOME/Memos.csv
|
add-memo.ps1 [<text>]
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./add-memo "Buy apples"
|
PS> ./add-memo "Buy apples"
|
||||||
✔️ added to 📄/home/markus/Memos.csv
|
✔️ added to 📄/home/markus/Memos.csv
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
alert.ps1 [<message>]
|
|
||||||
.DESCRIPTION
|
|
||||||
Handle and escalate the given alert message
|
Handle and escalate the given alert message
|
||||||
|
.DESCRIPTION
|
||||||
|
alert.ps1 [<message>]
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./alert "Harddisk failure"
|
PS> ./alert "Harddisk failure"
|
||||||
.LINK
|
.LINK
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
cd-desktop.ps1
|
|
||||||
.DESCRIPTION
|
|
||||||
Change the working directory to the user's desktop folder
|
Change the working directory to the user's desktop folder
|
||||||
|
.DESCRIPTION
|
||||||
|
cd-desktop.ps1
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./cd-desktop
|
PS> ./cd-desktop
|
||||||
📂/home/markus/Desktop
|
📂/home/markus/Desktop
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
cd-docs.ps1
|
|
||||||
.DESCRIPTION
|
|
||||||
Change the working directory to the user's documents folder
|
Change the working directory to the user's documents folder
|
||||||
|
.DESCRIPTION
|
||||||
|
cd-docs.ps1
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./cd-docs
|
PS> ./cd-docs
|
||||||
📂/home/markus/Documents
|
📂/home/markus/Documents
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
cd-downloads.ps1
|
|
||||||
.DESCRIPTION
|
|
||||||
Change the working directory to the user's downloads folder
|
Change the working directory to the user's downloads folder
|
||||||
|
.DESCRIPTION
|
||||||
|
cd-downloads.ps1
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./cd-downloads
|
PS> ./cd-downloads
|
||||||
📂/home/markus/Downloads
|
📂/home/markus/Downloads
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
cd-dropbox.ps1
|
|
||||||
.DESCRIPTION
|
|
||||||
Change the working directory to the user's Dropbox folder
|
Change the working directory to the user's Dropbox folder
|
||||||
|
.DESCRIPTION
|
||||||
|
cd-dropbox.ps1
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./cd-dropbox
|
PS> ./cd-dropbox
|
||||||
📂/home/markus/Dropbox
|
📂/home/markus/Dropbox
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
cd-home.ps1
|
|
||||||
.DESCRIPTION
|
|
||||||
Change the working directory to the user's home directory
|
Change the working directory to the user's home directory
|
||||||
|
.DESCRIPTION
|
||||||
|
cd-home.ps1
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./cd-home
|
PS> ./cd-home
|
||||||
📂/home/markus
|
📂/home/markus
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
cd-music.ps1
|
|
||||||
.DESCRIPTION
|
|
||||||
Change the working directory to the user's music folder
|
Change the working directory to the user's music folder
|
||||||
|
.DESCRIPTION
|
||||||
|
cd-music.ps1
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./cd-music
|
PS> ./cd-music
|
||||||
📂/home/markus/Music
|
📂/home/markus/Music
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
cd-onedrive.ps1
|
|
||||||
.DESCRIPTION
|
|
||||||
Change the working directory to the user's OneDrive folder
|
Change the working directory to the user's OneDrive folder
|
||||||
|
.DESCRIPTION
|
||||||
|
cd-onedrive.ps1
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./cd-onedrive
|
PS> ./cd-onedrive
|
||||||
📂/home/markus/OneDrive
|
📂/home/markus/OneDrive
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
cd-pics.ps1
|
|
||||||
.DESCRIPTION
|
|
||||||
Change the working directory to the user's pictures folder
|
Change the working directory to the user's pictures folder
|
||||||
|
.DESCRIPTION
|
||||||
|
cd-pics.ps1
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./cd-pics
|
PS> ./cd-pics
|
||||||
📂/home/markus/Pictures
|
📂/home/markus/Pictures
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
cd-recycle-bin.ps1
|
|
||||||
.DESCRIPTION
|
|
||||||
Change the working directory to the user's recycle bin folder
|
Change the working directory to the user's recycle bin folder
|
||||||
|
.DESCRIPTION
|
||||||
|
cd-recycle-bin.ps1
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./cd-recycle-bin
|
PS> ./cd-recycle-bin
|
||||||
📂C:\$Recycle.Bin\S-1-5-21-123404-23309-294260-1001
|
📂C:\$Recycle.Bin\S-1-5-21-123404-23309-294260-1001
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
cd-repos.ps1
|
|
||||||
.DESCRIPTION
|
|
||||||
Change the working directory to the user's Git repositories folder
|
Change the working directory to the user's Git repositories folder
|
||||||
|
.DESCRIPTION
|
||||||
|
cd-repos.ps1
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./cd-repos
|
PS> ./cd-repos
|
||||||
📂/home/markus/Repos
|
📂/home/markus/Repos
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
cd-root.ps1
|
|
||||||
.DESCRIPTION
|
|
||||||
Change the working directory to the root directory (C:\ on Windows)
|
Change the working directory to the root directory (C:\ on Windows)
|
||||||
|
.DESCRIPTION
|
||||||
|
cd-root.ps1
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./cd-root
|
PS> ./cd-root
|
||||||
📂C:\
|
📂C:\
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
cd-scripts.ps1
|
|
||||||
.DESCRIPTION
|
|
||||||
Change the working directory to the PowerShell scripts folder
|
Change the working directory to the PowerShell scripts folder
|
||||||
|
.DESCRIPTION
|
||||||
|
cd-scripts.ps1
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./cd-scripts
|
PS> ./cd-scripts
|
||||||
📂/home/markus/PowerShell/Scripts
|
📂/home/markus/PowerShell/Scripts
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
cd-ssh.ps1
|
|
||||||
.DESCRIPTION
|
|
||||||
Change the working directory to the user's SSH folder
|
Change the working directory to the user's SSH folder
|
||||||
|
.DESCRIPTION
|
||||||
|
cd-ssh.ps1
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./cd-ssh
|
PS> ./cd-ssh
|
||||||
📂/home/markus/.ssh
|
📂/home/markus/.ssh
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
cd-up.ps1
|
|
||||||
.DESCRIPTION
|
|
||||||
Change the working directory to one level up
|
Change the working directory to one level up
|
||||||
|
.DESCRIPTION
|
||||||
|
cd-up.ps1
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> .\cd-up
|
PS> .\cd-up
|
||||||
(one level up)
|
(one level up)
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
cd-up2.ps1
|
|
||||||
.DESCRIPTION
|
|
||||||
Change the working directory to two directory levels up
|
Change the working directory to two directory levels up
|
||||||
|
.DESCRIPTION
|
||||||
|
cd-up2.ps1
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./cd-up2
|
PS> ./cd-up2
|
||||||
(two levels up)
|
(two levels up)
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
cd-up3.ps1
|
|
||||||
.DESCRIPTION
|
|
||||||
Change the working directory to three directory levels up
|
Change the working directory to three directory levels up
|
||||||
|
.DESCRIPTION
|
||||||
|
cd-up3.ps1
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./cd-up3
|
PS> ./cd-up3
|
||||||
(three levels up)
|
(three levels up)
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
cd-up4.ps1
|
|
||||||
.DESCRIPTION
|
|
||||||
Change the working directory to four directory levels up
|
Change the working directory to four directory levels up
|
||||||
|
.DESCRIPTION
|
||||||
|
cd-up4.ps1
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./cd-up4
|
PS> ./cd-up4
|
||||||
(four levels up)
|
(four levels up)
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
cd-videos.ps1
|
|
||||||
.DESCRIPTION
|
|
||||||
Change the working directory to the user's videos folder
|
Change the working directory to the user's videos folder
|
||||||
|
.DESCRIPTION
|
||||||
|
cd-videos.ps1
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./cd-videos
|
PS> ./cd-videos
|
||||||
📂/home/markus/Videos
|
📂/home/markus/Videos
|
||||||
|
@ -1,10 +1,11 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
check-cpu-temp.ps1
|
|
||||||
.DESCRIPTION
|
|
||||||
Checks the CPU temperature
|
Checks the CPU temperature
|
||||||
|
.DESCRIPTION
|
||||||
|
check-cpu-temp.ps1
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./check-cpu-temp
|
PS> ./check-cpu-temp
|
||||||
|
✔️ 30.3 °C CPU temperature - good
|
||||||
.LINK
|
.LINK
|
||||||
https://github.com/fleschutz/PowerShell
|
https://github.com/fleschutz/PowerShell
|
||||||
.NOTES
|
.NOTES
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
check-dns-resolution.ps1
|
|
||||||
.DESCRIPTION
|
|
||||||
Checks the DNS resolution with frequently used domain names
|
Checks the DNS resolution with frequently used domain names
|
||||||
|
.DESCRIPTION
|
||||||
|
check-dns-resolution.ps1
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./check-dns-resolution
|
PS> ./check-dns-resolution
|
||||||
✔️ 11.8 domains/sec (177 domains resolved in 15 sec)
|
✔️ 11.8 domains/sec (177 domains resolved in 15 sec)
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
check-drive-space.ps1 [<drive>] [<min-level>]
|
|
||||||
.DESCRIPTION
|
|
||||||
Checks a drive for free space left (20 GB by default)
|
Checks a drive for free space left (20 GB by default)
|
||||||
|
.DESCRIPTION
|
||||||
|
check-drive-space.ps1 [<drive>] [<min-level>]
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./check-drive-space C
|
PS> ./check-drive-space C
|
||||||
✔️ 172 GB left on drive C (61 of 233 GB used)
|
✔️ 172 GB left on drive C (61 of 233 GB used)
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
check-file-system.ps1 [<drive>]
|
|
||||||
.DESCRIPTION
|
|
||||||
Checks the file system of a drive (needs admin rights)
|
Checks the file system of a drive (needs admin rights)
|
||||||
|
.DESCRIPTION
|
||||||
|
check-file-system.ps1 [<drive>]
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./check-file-system C
|
PS> ./check-file-system C
|
||||||
✔️ file system on drive C is clean
|
✔️ file system on drive C is clean
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
check-health.ps1
|
|
||||||
.DESCRIPTION
|
|
||||||
Checks the health of the local computer
|
Checks the health of the local computer
|
||||||
|
.DESCRIPTION
|
||||||
|
check-health.ps1
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./check-health
|
PS> ./check-health
|
||||||
✔️ 1213 GB left for swap space (67 of 1280 GB used)
|
✔️ 1213 GB left for swap space (67 of 1280 GB used)
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
check-ipv4-address.ps1 [<Address>]
|
|
||||||
.DESCRIPTION
|
|
||||||
Checks the given IPv4 address for validity
|
Checks the given IPv4 address for validity
|
||||||
|
.DESCRIPTION
|
||||||
|
check-ipv4-address.ps1 [<Address>]
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./check-ipv4-address 192.168.11.22
|
PS> ./check-ipv4-address 192.168.11.22
|
||||||
✔️ IPv4 192.168.11.22 is valid
|
✔️ IPv4 192.168.11.22 is valid
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
check-ipv6-address.ps1 [<Address>]
|
|
||||||
.DESCRIPTION
|
|
||||||
Checks the given IPv6 address for validity
|
Checks the given IPv6 address for validity
|
||||||
|
.DESCRIPTION
|
||||||
|
check-ipv6-address.ps1 [<Address>]
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./check-ipv6-address fe80::200:5aee:feaa:20a2
|
PS> ./check-ipv6-address fe80::200:5aee:feaa:20a2
|
||||||
✔️ IPv6 fe80::200:5aee:feaa:20a2 is valid
|
✔️ IPv6 fe80::200:5aee:feaa:20a2 is valid
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
check-mac-address.ps1 [<MAC>]
|
Checks the given MAC address for validity
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
Checks the given MAC address for validity (MAC address like 00:00:00:00:00:00 or 00-00-00-00-00-00 or 000000000000).
|
Supported MAC address formats are: 00:00:00:00:00:00 or 00-00-00-00-00-00 or 000000000000.
|
||||||
|
check-mac-address.ps1 [<MAC>]
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./check-mac-address 11:22:33:44:55:66
|
PS> ./check-mac-address 11:22:33:44:55:66
|
||||||
✔️ MAC address 11:22:33:44:55:66 is valid
|
✔️ MAC address 11:22:33:44:55:66 is valid
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
check-ping.ps1 [<hosts>]
|
|
||||||
.DESCRIPTION
|
|
||||||
Checks the ping latency from the local computer to selected Internet hosts
|
Checks the ping latency from the local computer to selected Internet hosts
|
||||||
(default is: 'amazon.com,apple.com,bing.com,cnn.com,dropbox.com,facebook.com,google.com,live.com,twitter.com,youtube.com)
|
.DESCRIPTION
|
||||||
|
Hosts by default are: amazon.com,apple.com,bing.com,cnn.com,dropbox.com,facebook.com,google.com,live.com,twitter.com,youtube.com
|
||||||
|
check-ping.ps1 [<hosts>]
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./check-ping
|
PS> ./check-ping
|
||||||
✔️ 36 ms ping average (13 ms min, 109 ms max, 10 hosts)
|
✔️ 36 ms ping average (13 ms min, 109 ms max, 10 hosts)
|
||||||
|
@ -1,9 +1,10 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
check-smart-devices.ps1 [<type>]
|
Performs a selftest on your S.M.A.R.T. HDD/SSD devices.
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
Performs a selftest on your S.M.A.R.T. HDD/SSD devices. Type is either short(default) or long.
|
check-smart-devices.ps1 [<type>]
|
||||||
Requires smartctl (smartmontools) and admin rights.
|
Type is either short(default) or long.
|
||||||
|
Requires smartctl (smartmontools package) and admin rights.
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./check-smart-devices
|
PS> ./check-smart-devices
|
||||||
✔️ short selftest started on S.M.A.R.T. device /dev/sda
|
✔️ short selftest started on S.M.A.R.T. device /dev/sda
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
check-subnet-mask.ps1 [<address>]
|
|
||||||
.DESCRIPTION
|
|
||||||
Checks the given subnet mask for validity
|
Checks the given subnet mask for validity
|
||||||
|
.DESCRIPTION
|
||||||
|
check-subnet-mask.ps1 [<address>]
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./check-subnet-mask 255.255.255.0
|
PS> ./check-subnet-mask 255.255.255.0
|
||||||
✔️ subnet mask 255.255.255.0 is valid
|
✔️ subnet mask 255.255.255.0 is valid
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
check-swap-space.ps1 [<min-level>]
|
|
||||||
.DESCRIPTION
|
|
||||||
Checks the free swap space
|
Checks the free swap space
|
||||||
|
.DESCRIPTION
|
||||||
|
check-swap-space.ps1 [<min-level>]
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./check-swap-space
|
PS> ./check-swap-space
|
||||||
✔️ 1213 GB left for swap space (67 of 1280 GB used)
|
✔️ 1213 GB left for swap space (67 of 1280 GB used)
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
check-symlinks.ps1 [<DirTree>]
|
Checks every symlink in a folder (including subfolders)
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
Checks every symlink in a directory tree.
|
check-symlinks.ps1 [<folder>]
|
||||||
|
Returns the number of broken symlinks as exit value.
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./check-symlinks .
|
PS> ./check-symlinks .
|
||||||
✔️ 0 out of 10 symlinks are broken in 📂/home/markus
|
✔️ 0 out of 10 symlinks are broken in 📂/home/markus
|
||||||
@ -12,12 +13,12 @@
|
|||||||
Author: Markus Fleschutz · License: CC0
|
Author: Markus Fleschutz · License: CC0
|
||||||
#>
|
#>
|
||||||
|
|
||||||
param([string]$DirTree = "")
|
param([string]$folder = "")
|
||||||
|
|
||||||
try {
|
try {
|
||||||
if ($DirTree -eq "" ) { $DirTree = read-host "Enter the path to the directory tree" }
|
if ($folder -eq "" ) { $folder = read-host "Enter the path to the folder" }
|
||||||
|
|
||||||
$FullPath = Resolve-Path "$DirTree"
|
$FullPath = Resolve-Path "$folder"
|
||||||
write-progress "Checking every symlink in 📂$FullPath..."
|
write-progress "Checking every symlink in 📂$FullPath..."
|
||||||
[int]$NumTotal = [int]$NumBroken = 0
|
[int]$NumTotal = [int]$NumBroken = 0
|
||||||
Get-ChildItem $FullPath -recurse | Where { $_.Attributes -match "ReparsePoint" } | ForEach-Object {
|
Get-ChildItem $FullPath -recurse | Where { $_.Attributes -match "ReparsePoint" } | ForEach-Object {
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
check-weather.ps1 [<location>]
|
|
||||||
.DESCRIPTION
|
|
||||||
Checks the weather for critical values
|
Checks the weather for critical values
|
||||||
|
.DESCRIPTION
|
||||||
|
check-weather.ps1 [<location>]
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./check-weather
|
PS> ./check-weather
|
||||||
.LINK
|
.LINK
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
check-windows-system-files.ps1
|
|
||||||
.DESCRIPTION
|
|
||||||
Checks the validity of the Windows system files (requires admin rights)
|
Checks the validity of the Windows system files (requires admin rights)
|
||||||
|
.DESCRIPTION
|
||||||
|
check-windows-system-files.ps1
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./check-windows-system-files
|
PS> ./check-windows-system-files
|
||||||
✔️ checked Windows system files
|
✔️ checked Windows system files
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
check-xml-file [<file>]
|
|
||||||
.DESCRIPTION
|
|
||||||
Checks the given XML file for validity
|
Checks the given XML file for validity
|
||||||
|
.DESCRIPTION
|
||||||
|
check-xml-file [<file>]
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./check-xml-file myfile.xml
|
PS> ./check-xml-file myfile.xml
|
||||||
✔️ XML file is valid
|
✔️ XML file is valid
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
cherry-picker.ps1 [<CommitID>] [<CommitMessage>] [<Branches>] [<RepoDir>]
|
Cherry-picks a Git commit into one or more branches
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
|
cherry-picker.ps1 [<CommitID>] [<CommitMessage>] [<Branches>] [<RepoDir>]
|
||||||
Cherry-picks a Git commit into one or more branches (branch names need to be separated by spaces)
|
Cherry-picks a Git commit into one or more branches (branch names need to be separated by spaces)
|
||||||
NOTE: in case of merge conflicts the script stops immediately!
|
NOTE: in case of merge conflicts the script stops immediately!
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
clean-repo.ps1 [<RepoDir>]
|
Cleans a Git repository from untracked files (including submodules)
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
Cleans a Git repository from untracked files (including submodules, e.g. for a fresh build)
|
clean-repo.ps1 [<RepoDir>]
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./clean-repo C:\MyRepo
|
PS> ./clean-repo C:\MyRepo
|
||||||
🧹 Cleaning Git repository 📂C:\MyRepo from untracked files...
|
🧹 Cleaning Git repository 📂C:\MyRepo from untracked files...
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
clean-repos.ps1 [<ParentDir>]
|
Cleans all Git repositories in a folder from untracked files (including submodules)
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
Cleans all Git repositories under the current/given directory from untracked files (including submodules)
|
clean-repos.ps1 [<ParentDir>]
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./clean-repos C:\MyRepos
|
PS> ./clean-repos C:\MyRepos
|
||||||
.NOTES
|
.NOTES
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
clear-recycle-bin.ps1
|
Removes the content of the recycle bin folder permanently
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
Removes the content of the recycle bin folder
|
clear-recycle-bin.ps1
|
||||||
NOTE: can not be undo!
|
NOTE: can not be undo!
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./clear-recycle-bin
|
PS> ./clear-recycle-bin
|
||||||
|
@ -1,22 +1,22 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
clone-repos.ps1 [<ParentDir>]
|
Clones well-known Git repositories into a folder
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
Clones well-known Git repositories under the current/given directory
|
clone-repos.ps1 [<folder>]
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./clone-repos C:\MyRepos
|
PS> ./clone-repos C:\Users\Markus\Repos
|
||||||
.NOTES
|
.NOTES
|
||||||
Author: Markus Fleschutz · License: CC0
|
Author: Markus Fleschutz · License: CC0
|
||||||
.LINK
|
.LINK
|
||||||
https://github.com/fleschutz/PowerShell
|
https://github.com/fleschutz/PowerShell
|
||||||
#>
|
#>
|
||||||
|
|
||||||
param([string]$ParentDir = "$PWD")
|
param([string]$folder = "$PWD")
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$StopWatch = [system.diagnostics.stopwatch]::startNew()
|
$StopWatch = [system.diagnostics.stopwatch]::startNew()
|
||||||
|
|
||||||
if (-not(test-path "$ParentDir" -pathType container)) { throw "Can't access directory: $ParentDir" }
|
if (-not(test-path "$folder" -pathType container)) { throw "Can't access directory: $folder" }
|
||||||
|
|
||||||
$Null = (git --version)
|
$Null = (git --version)
|
||||||
if ($lastExitCode -ne "0") { throw "Can't execute 'git' - make sure Git is installed and available" }
|
if ($lastExitCode -ne "0") { throw "Can't execute 'git' - make sure Git is installed and available" }
|
||||||
@ -32,22 +32,22 @@ try {
|
|||||||
[string]$Shallow = $Row.Shallow
|
[string]$Shallow = $Row.Shallow
|
||||||
[string]$URL = $Row.URL
|
[string]$URL = $Row.URL
|
||||||
|
|
||||||
if (test-path "$ParentDir/$FolderName" -pathType container) {
|
if (test-path "$folder/$FolderName" -pathType container) {
|
||||||
"📂$FolderName exists, skipping..."
|
"📂$FolderName exists, skipping..."
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
if ($Shallow -eq "yes") {
|
if ($Shallow -eq "yes") {
|
||||||
"🢃 Cloning to 📂$FolderName, $Branch branch, shallow..."
|
"🢃 Cloning to 📂$FolderName, $Branch branch, shallow..."
|
||||||
& git clone --branch "$Branch" --depth 1 --shallow-submodules --recurse-submodules "$URL" "$ParentDir/$FolderName"
|
& git clone --branch "$Branch" --depth 1 --shallow-submodules --recurse-submodules "$URL" "$folder/$FolderName"
|
||||||
} else {
|
} else {
|
||||||
"🢃 Cloning to 📂$FolderName, $Branch branch, full history..."
|
"🢃 Cloning to 📂$FolderName, $Branch branch, full history..."
|
||||||
& git clone --branch "$Branch" --recurse-submodules "$URL" "$ParentDir/$FolderName"
|
& git clone --branch "$Branch" --recurse-submodules "$URL" "$folder/$FolderName"
|
||||||
}
|
}
|
||||||
if ($lastExitCode -ne "0") { throw "'git clone $URL' failed" }
|
if ($lastExitCode -ne "0") { throw "'git clone $URL' failed" }
|
||||||
$Count++
|
$Count++
|
||||||
}
|
}
|
||||||
[int]$Elapsed = $StopWatch.Elapsed.TotalSeconds
|
[int]$Elapsed = $StopWatch.Elapsed.TotalSeconds
|
||||||
"✔️ cloned $Count Git repositories at 📂$ParentDir in $Elapsed sec"
|
"✔️ cloned $Count Git repositories into 📂$folder in $Elapsed sec"
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
"⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))"
|
"⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))"
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
close-calculator.ps1
|
|
||||||
.DESCRIPTION
|
|
||||||
Closes the calculator program gracefully
|
Closes the calculator program gracefully
|
||||||
|
.DESCRIPTION
|
||||||
|
close-calculator.ps1
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./close-calculator
|
PS> ./close-calculator
|
||||||
.NOTES
|
.NOTES
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
close-chrome.ps1
|
|
||||||
.DESCRIPTION
|
|
||||||
Closes the Google Chrome Web browser
|
Closes the Google Chrome Web browser
|
||||||
|
.DESCRIPTION
|
||||||
|
close-chrome.ps1
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./close-chrome
|
PS> ./close-chrome
|
||||||
.NOTES
|
.NOTES
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
close-cortana.ps1
|
Closes Microsoft's Cortana application
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
Closes Cortana gracefully
|
close-cortana.ps1
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./close-cortana
|
PS> ./close-cortana
|
||||||
.NOTES
|
.NOTES
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
close-edge.ps1
|
Closes Microsoft's Edge Web browser
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
Closes the Microsoft Edge Web browser
|
close-edge.ps1
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./close-edge
|
PS> ./close-edge
|
||||||
.NOTES
|
.NOTES
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
close-file-explorer.ps1
|
Closes Microsoft's File Explorer
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
Closes Microsoft File Explorer gracefully
|
close-file-explorer.ps1
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./close-file-explorer
|
PS> ./close-file-explorer
|
||||||
.NOTES
|
.NOTES
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
close-firefox.ps1
|
Closes Mozilla's Firefox Web browser
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
Closes the Firefox Web browser
|
close-firefox.ps1
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./close-firefox
|
PS> ./close-firefox
|
||||||
.NOTES
|
.NOTES
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
close-netflix.ps1
|
Closes the Netflix application
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
Closes the Netflix application gracefully
|
close-netflix.ps1
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./close-netflix
|
PS> ./close-netflix
|
||||||
.NOTES
|
.NOTES
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
close-onedrive.ps1
|
Closes Microsoft's OneDrive folder
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
Closes Microsoft OneDrive gracefully
|
close-onedrive.ps1
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./close-onedrive
|
PS> ./close-onedrive
|
||||||
.NOTES
|
.NOTES
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
close-program.ps1 [<FullProgramName>] [<ProgramName>] [<ProgramAliasName>]
|
|
||||||
.DESCRIPTION
|
|
||||||
Closes the processes of the given program gracefully
|
Closes the processes of the given program gracefully
|
||||||
|
.DESCRIPTION
|
||||||
|
close-program.ps1 [<FullProgramName>] [<ProgramName>] [<ProgramAliasName>]
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./close-program "Google Chrome" "chrome.exe"
|
PS> ./close-program "Google Chrome" "chrome.exe"
|
||||||
.NOTES
|
.NOTES
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
close-system-settings.ps1
|
Closes the System Settings window
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
Closes the System Settings gracefully
|
close-system-settings.ps1
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./close-system-settings
|
PS> ./close-system-settings
|
||||||
.NOTES
|
.NOTES
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
close-thunderbird.ps1
|
Closes Mozilla's Thunderbird email client
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
Closes the mail client Mozilla Thunderbird gracefully
|
close-thunderbird.ps1
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./close-thunderbird
|
PS> ./close-thunderbird
|
||||||
.NOTES
|
.NOTES
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
close-vlc.ps1
|
|
||||||
.DESCRIPTION
|
|
||||||
Closes the VLC media player application
|
Closes the VLC media player application
|
||||||
|
.DESCRIPTION
|
||||||
|
close-vlc.ps1
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./close-vlc
|
PS> ./close-vlc
|
||||||
.NOTES
|
.NOTES
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
close-windows-terminal.ps1
|
|
||||||
.DESCRIPTION
|
|
||||||
Closes the Windows Terminal application
|
Closes the Windows Terminal application
|
||||||
|
.DESCRIPTION
|
||||||
|
close-windows-terminal.ps1
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./close-windows-terminal
|
PS> ./close-windows-terminal
|
||||||
.NOTES
|
.NOTES
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
configure-git.ps1 [<full-name>] [<email-address>] [<favorite-editor>]
|
Configures the user settings for Git
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
Sets up the Git user configuration
|
configure-git.ps1 [<full-name>] [<email-address>] [<favorite-editor>]
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./configure-git
|
PS> ./configure-git
|
||||||
.NOTES
|
.NOTES
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
convert-csv2txt.ps1 [<csv-file>]
|
|
||||||
.DESCRIPTION
|
|
||||||
Converts a .CSV file into a text file
|
Converts a .CSV file into a text file
|
||||||
|
.DESCRIPTION
|
||||||
|
convert-csv2txt.ps1 [<csv-file>]
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./convert-csv2txt salaries.csv
|
PS> ./convert-csv2txt salaries.csv
|
||||||
.NOTES
|
.NOTES
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
convert-mysql2csv.ps1 [<server>] [<database>] [<username>] [<password>] [<query>]
|
|
||||||
.DESCRIPTION
|
|
||||||
Convert a MySQL database table to a .CSV file
|
Convert a MySQL database table to a .CSV file
|
||||||
|
.DESCRIPTION
|
||||||
|
convert-mysql2csv.ps1 [<server>] [<database>] [<username>] [<password>] [<query>]
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./convert-mysql2csv
|
PS> ./convert-mysql2csv
|
||||||
.NOTES
|
.NOTES
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
convert-ps2bat.ps1 [<pattern>]
|
|
||||||
.DESCRIPTION
|
|
||||||
Converts a PowerShell script to .bat files
|
Converts a PowerShell script to .bat files
|
||||||
|
.DESCRIPTION
|
||||||
|
convert-ps2bat.ps1 [<pattern>]
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./convert-ps2bat *.ps1
|
PS> ./convert-ps2bat *.ps1
|
||||||
.NOTES
|
.NOTES
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
convert-ps2md.ps1 [<filename>]
|
|
||||||
.DESCRIPTION
|
|
||||||
Converts the comment-based help of a PowerShell script to Markdown
|
Converts the comment-based help of a PowerShell script to Markdown
|
||||||
|
.DESCRIPTION
|
||||||
|
convert-ps2md.ps1 [<filename>]
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./convert-ps2md myscript.ps1
|
PS> ./convert-ps2md myscript.ps1
|
||||||
.NOTES
|
.NOTES
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
convert-sql2csv.ps1 [<server>] [<database>] [<username>] [<password>] [<query>]
|
|
||||||
.DESCRIPTION
|
|
||||||
Converts a SQL database table to a .CSV file
|
Converts a SQL database table to a .CSV file
|
||||||
|
.DESCRIPTION
|
||||||
|
convert-sql2csv.ps1 [<server>] [<database>] [<username>] [<password>] [<query>]
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./convert-sql2csv
|
PS> ./convert-sql2csv
|
||||||
.NOTES
|
.NOTES
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
convert-txt2wav.ps1 [<text>] [<wav-file>]
|
|
||||||
.DESCRIPTION
|
|
||||||
Converts text to a .WAV audio file
|
Converts text to a .WAV audio file
|
||||||
|
.DESCRIPTION
|
||||||
|
convert-txt2wav.ps1 [<text>] [<wav-file>]
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./convert-txt2wav "Hello World" spoken.wav
|
PS> ./convert-txt2wav "Hello World" spoken.wav
|
||||||
.NOTES
|
.NOTES
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
copy-photos-sorted.ps1 [<SourceDir>] [<TargetDir>]
|
Copy image files sorted by year and month
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
Copy image files from SourceDir to TargetDir sorted by year and month
|
Copy image files from SourceDir to TargetDir sorted by year and month
|
||||||
|
copy-photos-sorted.ps1 [<SourceDir>] [<TargetDir>]
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./copy-photos-sorted D:\Mobile\DCIM C:\MyPhotoAlbum
|
PS> ./copy-photos-sorted D:\Mobile\DCIM C:\MyPhotoAlbum
|
||||||
.NOTES
|
.NOTES
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
decrypt-file.ps1 [<path>] [<password>]
|
|
||||||
.DESCRIPTION
|
|
||||||
Decrypts the given file
|
Decrypts the given file
|
||||||
|
.DESCRIPTION
|
||||||
|
decrypt-file.ps1 [<path>] [<password>]
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./decrypt-file-rules C:\MyFile.txt "123"
|
PS> ./decrypt-file-rules C:\MyFile.txt "123"
|
||||||
.NOTES
|
.NOTES
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
display-time.ps1 [<seconds>]
|
Displays the current time
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
Displays the current time (for 10 seconds by default)
|
Displays the current time (for 10 seconds by default)
|
||||||
|
display-time.ps1 [<seconds>]
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./display-time
|
PS> ./display-time
|
||||||
.NOTES
|
.NOTES
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
download-dir.ps1 [<URL>]
|
Downloads a folder (including subfolders) from the given URL
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
Downloads a directory tree from the given URL
|
download-dir.ps1 [<URL>]
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./download-dir "https://www.cnn.com"
|
PS> ./download-dir "https://www.cnn.com"
|
||||||
.NOTES
|
.NOTES
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
download-file.ps1 [<URL>]
|
|
||||||
.DESCRIPTION
|
|
||||||
Downloads a file from the given URL
|
Downloads a file from the given URL
|
||||||
|
.DESCRIPTION
|
||||||
|
download-file.ps1 [<URL>]
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./download-file "https://www.cnn.com/index.html"
|
PS> ./download-file "https://www.cnn.com/index.html"
|
||||||
.NOTES
|
.NOTES
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
edit.ps1 <filename>
|
|
||||||
.DESCRIPTION
|
|
||||||
Opens the built-in text editor to edit the given file
|
Opens the built-in text editor to edit the given file
|
||||||
|
.DESCRIPTION
|
||||||
|
edit.ps1 <filename>
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./edit C:\MyFile.txt
|
PS> ./edit C:\MyFile.txt
|
||||||
.NOTES
|
.NOTES
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
enable-crash-dumps.ps1
|
|
||||||
.DESCRIPTION
|
|
||||||
Enables the writing of crash dumps
|
Enables the writing of crash dumps
|
||||||
|
.DESCRIPTION
|
||||||
|
enable-crash-dumps.ps1
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./enable-crash-dumps
|
PS> ./enable-crash-dumps
|
||||||
.NOTES
|
.NOTES
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
enable-god-mode.ps1
|
Enables the god mode
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
Enables the god mode (adds a new icon to the desktop)
|
Enables the god mode (adds a new icon to the desktop)
|
||||||
|
enable-god-mode.ps1
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./enable-god-mode
|
PS> ./enable-god-mode
|
||||||
.NOTES
|
.NOTES
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
encrypt-file.ps1 [<path>] [<password>]
|
Encrypts a file
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
Encrypts the given file
|
encrypt-file.ps1 [<Path>] [<Password>]
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./encrypt-file C:\MyFile.txt "123"
|
PS> ./encrypt-file C:\MyFile.txt "123"
|
||||||
.NOTES
|
.NOTES
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
enter-chat.ps1
|
|
||||||
.DESCRIPTION
|
|
||||||
Enters a chat using a common network shared file
|
Enters a chat using a common network shared file
|
||||||
|
.DESCRIPTION
|
||||||
|
enter-chat.ps1
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./enter-chat
|
PS> ./enter-chat
|
||||||
.NOTES
|
.NOTES
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
fetch-repo.ps1 [<repo-dir>]
|
|
||||||
.DESCRIPTION
|
|
||||||
Fetches updates for a local Git repository (including submodules)
|
Fetches updates for a local Git repository (including submodules)
|
||||||
|
.DESCRIPTION
|
||||||
|
fetch-repo.ps1 [<repo-dir>]
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./fetch-repo
|
PS> ./fetch-repo
|
||||||
.NOTES
|
.NOTES
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
fetch-repos.ps1 [<ParentDir>]
|
Fetches updates for all Git repositories in a folder (including submodules)
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
Fetches updates for all Git repositories under the current/given directory (including submodules)
|
fetch-repos.ps1 [<ParentDir>]
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./fetch-repos C:\MyRepos
|
PS> ./fetch-repos C:\MyRepos
|
||||||
.NOTES
|
.NOTES
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
get-md5.ps1 [<file>]
|
|
||||||
.DESCRIPTION
|
|
||||||
Prints the MD5 checksum of the given file
|
Prints the MD5 checksum of the given file
|
||||||
|
.DESCRIPTION
|
||||||
|
get-md5.ps1 [<file>]
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./get-md5 C:\MyFile.txt
|
PS> ./get-md5 C:\MyFile.txt
|
||||||
.NOTES
|
.NOTES
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
get-sha1.ps1 [<file>]
|
Prints the SHA1 checksum of a file
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
Prints the SHA1 checksum of the given file
|
get-sha1.ps1 [<file>]
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./get-sha1 C:\MyFile.txt
|
PS> ./get-sha1 C:\MyFile.txt
|
||||||
.NOTES
|
.NOTES
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
get-sha256.ps1 [<file>]
|
Prints the SHA256 checksum of a file
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
Prints the SHA256 checksum of the given file
|
get-sha256.ps1 [<file>]
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./get-sha256 C:\MyFile.txt
|
PS> ./get-sha256 C:\MyFile.txt
|
||||||
.NOTES
|
.NOTES
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
hibernate.ps1
|
|
||||||
.DESCRIPTION
|
|
||||||
Enables hibernate mode for the local computer (needs admin rights)
|
Enables hibernate mode for the local computer (needs admin rights)
|
||||||
|
.DESCRIPTION
|
||||||
|
hibernate.ps1
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./hibernate
|
PS> ./hibernate
|
||||||
.NOTES
|
.NOTES
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
inspect-exe.ps1 [<path-to-exe-file>]
|
Prints basic information of an executable file
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
Prints basic information of the given executable file
|
inspect-exe.ps1 [<path-to-exe-file>]
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./inspect-exe C:\MyApp.exe
|
PS> ./inspect-exe C:\MyApp.exe
|
||||||
.NOTES
|
.NOTES
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
install-github-cli.ps1
|
|
||||||
.DESCRIPTION
|
|
||||||
Installs GitHub CLI
|
Installs GitHub CLI
|
||||||
|
.DESCRIPTION
|
||||||
|
install-github-cli.ps1
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./install-github-cli
|
PS> ./install-github-cli
|
||||||
.NOTES
|
.NOTES
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
install-google-chrome.ps1
|
|
||||||
.DESCRIPTION
|
|
||||||
Installs the latest Google Chrome browser
|
Installs the latest Google Chrome browser
|
||||||
|
.DESCRIPTION
|
||||||
|
install-google-chrome.ps1
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./install-google-chrome
|
PS> ./install-google-chrome
|
||||||
.NOTES
|
.NOTES
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
install-knot-resolver.ps1
|
Installs Knot Resolver (needs admin rights)
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
Installs the Knot Resolver (a DNS resolver daemon, needs admin rights)
|
Knot Resolver is a DNS resolver daemon.
|
||||||
|
install-knot-resolver.ps1
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./install-knot-resolver
|
PS> ./install-knot-resolver
|
||||||
.NOTES
|
.NOTES
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
install-signal-cli.ps1 [<version>]
|
Installs signal-cli
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
Installs signal-cli from github.com/AsamK/signal-cli. See the Web page for the correct version number
|
Installs signal-cli from github.com/AsamK/signal-cli. See the Web page for the correct version number
|
||||||
|
install-signal-cli.ps1 [<version>]
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./install-signal-cli 0.11.12
|
PS> ./install-signal-cli 0.11.12
|
||||||
.NOTES
|
.NOTES
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
install-ssh-client.ps1
|
|
||||||
.DESCRIPTION
|
|
||||||
Installs the SSH client (needs admin rights)
|
Installs the SSH client (needs admin rights)
|
||||||
|
.DESCRIPTION
|
||||||
|
install-ssh-client.ps1
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./install-ssh-client
|
PS> ./install-ssh-client
|
||||||
.NOTES
|
.NOTES
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
install-ssh-server.ps1
|
|
||||||
.DESCRIPTION
|
|
||||||
Installs the SSH server (needs admin rights)
|
Installs the SSH server (needs admin rights)
|
||||||
|
.DESCRIPTION
|
||||||
|
install-ssh-server.ps1
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./install-ssh-server
|
PS> ./install-ssh-server
|
||||||
.NOTES
|
.NOTES
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
install-updates.ps1
|
Installs updates for the local machine (needs admin rights)
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
Install updates on the local machhine (needs admin rights)
|
install-updates.ps1
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./install-updates
|
PS> ./install-updates
|
||||||
.NOTES
|
.NOTES
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
install-wsl.ps1
|
Installs Windows Subsystem for Linux (needs admin rights)
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
Installs Windows Subsystem for Linux (WSL) - needs admin rights
|
install-wsl.ps1
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./install-wsl
|
PS> ./install-wsl
|
||||||
.NOTES
|
.NOTES
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
introduce-powershell.ps1
|
|
||||||
.DESCRIPTION
|
|
||||||
Introduces PowerShell to new users
|
Introduces PowerShell to new users
|
||||||
|
.DESCRIPTION
|
||||||
|
introduce-powershell.ps1
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./introduce-powershell
|
PS> ./introduce-powershell
|
||||||
.NOTES
|
.NOTES
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
list-aliases.ps1
|
|
||||||
.DESCRIPTION
|
|
||||||
Lists all PowerShell aliases
|
Lists all PowerShell aliases
|
||||||
|
.DESCRIPTION
|
||||||
|
list-aliases.ps1
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./list-aliases
|
PS> ./list-aliases
|
||||||
|
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
list-anagrams.ps1 [<word>] [<columns>]
|
|
||||||
.DESCRIPTION
|
|
||||||
Lists all anagrams of the given word
|
Lists all anagrams of the given word
|
||||||
|
.DESCRIPTION
|
||||||
|
list-anagrams.ps1 [<word>] [<columns>]
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./list-anagrams Baby
|
PS> ./list-anagrams Baby
|
||||||
.NOTES
|
.NOTES
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
list-automatic-variables.ps1
|
|
||||||
.DESCRIPTION
|
|
||||||
Lists all automatic variables of PowerShell
|
Lists all automatic variables of PowerShell
|
||||||
|
.DESCRIPTION
|
||||||
|
list-automatic-variables.ps1
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./list-automatic-variables
|
PS> ./list-automatic-variables
|
||||||
|
|
||||||
|
@ -1,8 +1,10 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
list-branches.ps1 [<repo-dir>] [<pattern>]
|
Lists all branches in a Git repository
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
Lists all branches in the current/given Git repository
|
list-branches.ps1 [<RepoDir>] [<SearchPattern>]
|
||||||
|
<RepoDir> is the current working directory by default
|
||||||
|
<SearchPattern> is "*" (anything) by default
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./list-branches
|
PS> ./list-branches
|
||||||
.NOTES
|
.NOTES
|
||||||
@ -11,7 +13,7 @@
|
|||||||
https://github.com/fleschutz/PowerShell
|
https://github.com/fleschutz/PowerShell
|
||||||
#>
|
#>
|
||||||
|
|
||||||
param([string]$RepoDir = "$PWD", [string]$Pattern = "*")
|
param([string]$RepoDir = "$PWD", [string]$SearchPattern = "*")
|
||||||
|
|
||||||
try {
|
try {
|
||||||
if (-not(test-path "$RepoDir" -pathType container)) { throw "Can't access directory: $RepoDir" }
|
if (-not(test-path "$RepoDir" -pathType container)) { throw "Can't access directory: $RepoDir" }
|
||||||
@ -31,7 +33,7 @@ try {
|
|||||||
foreach($Branch in $Branches) {
|
foreach($Branch in $Branches) {
|
||||||
if ("$Branch" -match "origin/HEAD") { continue }
|
if ("$Branch" -match "origin/HEAD") { continue }
|
||||||
$BranchName = $Branch.substring(9)
|
$BranchName = $Branch.substring(9)
|
||||||
if ("$BranchName" -notlike "$Pattern") { continue }
|
if ("$BranchName" -notlike "$SearchPattern") { continue }
|
||||||
"$BranchName"
|
"$BranchName"
|
||||||
}
|
}
|
||||||
""
|
""
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
list-cheat-sheet.ps1
|
|
||||||
.DESCRIPTION
|
|
||||||
Lists the PowerShell cheat sheet
|
Lists the PowerShell cheat sheet
|
||||||
|
.DESCRIPTION
|
||||||
|
list-cheat-sheet.ps1
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./list-cheat-sheet
|
PS> ./list-cheat-sheet
|
||||||
.NOTES
|
.NOTES
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
list-city-weather.ps1
|
List the current weather of cities world-wide
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
List the current weather of cities world-wide (west to east)
|
List the current weather of cities world-wide (west to east)
|
||||||
|
list-city-weather.ps1
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./list-city-weather
|
PS> ./list-city-weather
|
||||||
.NOTES
|
.NOTES
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
list-cli-tools.ps1
|
|
||||||
.DESCRIPTION
|
|
||||||
Lists available command-line interface (CLI) tools
|
Lists available command-line interface (CLI) tools
|
||||||
|
.DESCRIPTION
|
||||||
|
list-cli-tools.ps1
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./list-cli-tools
|
PS> ./list-cli-tools
|
||||||
|
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
list-clipboard.ps1
|
|
||||||
.DESCRIPTION
|
|
||||||
Lists the contents of the clipboard
|
Lists the contents of the clipboard
|
||||||
|
.DESCRIPTION
|
||||||
|
list-clipboard.ps1
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./list-clipboard
|
PS> ./list-clipboard
|
||||||
.NOTES
|
.NOTES
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
list-cmdlets.ps1
|
|
||||||
.DESCRIPTION
|
|
||||||
Lists all PowerShell cmdlets
|
Lists all PowerShell cmdlets
|
||||||
|
.DESCRIPTION
|
||||||
|
list-cmdlets.ps1
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./list-cmdlets
|
PS> ./list-cmdlets
|
||||||
|
|
||||||
|
@ -1,8 +1,10 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
list-commits.ps1 [<RepoDir>] [<Format>]
|
Lists all commits in a Git repository
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
Lists all commits in a Git repository (format is: list|compact|normal|JSON)
|
list-commits.ps1 [<RepoDir>] [<Format>]
|
||||||
|
<RepoDir> is the path to the Git repository
|
||||||
|
<Format> is either: list|compact|normal|JSON
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./list-commits
|
PS> ./list-commits
|
||||||
|
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
list-console-colors.ps1
|
|
||||||
.DESCRIPTION
|
|
||||||
Lists all console colors
|
Lists all console colors
|
||||||
|
.DESCRIPTION
|
||||||
|
list-console-colors.ps1
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./list-console-colors
|
PS> ./list-console-colors
|
||||||
.NOTES
|
.NOTES
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
list-countries.ps1
|
|
||||||
.DESCRIPTION
|
|
||||||
Lists details of all countries
|
Lists details of all countries
|
||||||
|
.DESCRIPTION
|
||||||
|
list-countries.ps1
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./list-countries
|
PS> ./list-countries
|
||||||
.NOTES
|
.NOTES
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user