Changed to #!/bin/powershell

This commit is contained in:
Markus Fleschutz 2021-02-09 19:30:45 +01:00
parent f1767fe7b7
commit f7eca6274c
122 changed files with 123 additions and 123 deletions

View File

@ -152,7 +152,7 @@ $ git clone https://github.com/fleschutz/PowerShell
Configure PowerShell as Default Shell Configure PowerShell as Default Shell
------------------------------------- -------------------------------------
* **Linux:** make sure PowerShell is installed, then execute: `chsh -s /snap/bin/powershell <username>` * **Linux:** make sure PowerShell is installed, then execute: `chsh -s /bin/powershell <username>`
* **Windows:** no need to, PowerShell is the default shell * **Windows:** no need to, PowerShell is the default shell
@ -174,7 +174,7 @@ Script Conventions
Each PowerShell script should follow the 8 golden rules: Each PowerShell script should follow the 8 golden rules:
1. the filename should be named `<verb>-<object>.ps1` 1. the filename should be named `<verb>-<object>.ps1`
2. the first line reads `#!/snap/bin/powershell` to support PowerShell on Linux 2. the first line reads `#!/bin/powershell` to support PowerShell on Linux
3. the script has execute file permissions (chmod a+rx <file>) to support PowerShell on Linux 3. the script has execute file permissions (chmod a+rx <file>) to support PowerShell on Linux
4. provide a comment-based help with syntax, description, link, author, and license 4. provide a comment-based help with syntax, description, link, author, and license
5. prefer command-line options, else ask the user 5. prefer command-line options, else ask the user

View File

@ -1,4 +1,4 @@
#!/snap/bin/powershell #!/bin/powershell
<# <#
.SYNTAX ./MD5.ps1 [<file>] .SYNTAX ./MD5.ps1 [<file>]
.DESCRIPTION prints the MD5 checksum of the given file .DESCRIPTION prints the MD5 checksum of the given file

View File

@ -1,4 +1,4 @@
#!/snap/bin/powershell #!/bin/powershell
<# <#
.SYNTAX ./SHA1.ps1 [<file>] .SYNTAX ./SHA1.ps1 [<file>]
.DESCRIPTION prints the SHA1 checksum of the given file .DESCRIPTION prints the SHA1 checksum of the given file

View File

@ -1,4 +1,4 @@
#!/snap/bin/powershell #!/bin/powershell
<# <#
.SYNTAX ./SHA256.ps1 [<file>] .SYNTAX ./SHA256.ps1 [<file>]
.DESCRIPTION prints the SHA256 checksum of the given file .DESCRIPTION prints the SHA256 checksum of the given file

View File

@ -1,4 +1,4 @@
#!/snap/bin/powershell #!/bin/powershell
<# <#
.SYNTAX ./add-firewall-rules.ps1 [<path-to-executables>] .SYNTAX ./add-firewall-rules.ps1 [<path-to-executables>]
.DESCRIPTION adds firewall rules for the given executables, administrator rights are required .DESCRIPTION adds firewall rules for the given executables, administrator rights are required

View File

@ -1,4 +1,4 @@
#!/snap/bin/powershell #!/bin/powershell
<# <#
.SYNTAX ./alert.ps1 [<message>] .SYNTAX ./alert.ps1 [<message>]
.DESCRIPTION handle and escalate the given alert message .DESCRIPTION handle and escalate the given alert message

View File

@ -1,4 +1,4 @@
#!/snap/bin/powershell #!/bin/powershell
<# <#
.SYNTAX ./check-ipv4-address.ps1 [<address>] .SYNTAX ./check-ipv4-address.ps1 [<address>]
.DESCRIPTION checks the given IPv4 address for validity .DESCRIPTION checks the given IPv4 address for validity

View File

@ -1,4 +1,4 @@
#!/snap/bin/powershell #!/bin/powershell
<# <#
.SYNTAX ./check-mac-address.ps1 [<MAC>] .SYNTAX ./check-mac-address.ps1 [<MAC>]
.DESCRIPTION checks the given MAC address for validity .DESCRIPTION checks the given MAC address for validity

View File

@ -1,4 +1,4 @@
#!/snap/bin/powershell #!/bin/powershell
<# <#
.SYNTAX ./check-xml-file [<file>] .SYNTAX ./check-xml-file [<file>]
.DESCRIPTION checks the given XML file for validity .DESCRIPTION checks the given XML file for validity

View File

@ -1,4 +1,4 @@
#!/snap/bin/powershell #!/bin/powershell
<# <#
.SYNTAX ./clone-repos.ps1 .SYNTAX ./clone-repos.ps1
.DESCRIPTION clones well-known Git repositories into the current directory. .DESCRIPTION clones well-known Git repositories into the current directory.

View File

@ -1,4 +1,4 @@
#!/snap/bin/powershell #!/bin/powershell
<# <#
.SYNTAX ./close-calculator.ps1 .SYNTAX ./close-calculator.ps1
.DESCRIPTION closes the calculator program gracefully .DESCRIPTION closes the calculator program gracefully

View File

@ -1,4 +1,4 @@
#!/snap/bin/powershell #!/bin/powershell
<# <#
.SYNTAX ./close-chrome.ps1 .SYNTAX ./close-chrome.ps1
.DESCRIPTION closes Google Chrome gracefully .DESCRIPTION closes Google Chrome gracefully

View File

@ -1,4 +1,4 @@
#!/snap/bin/powershell #!/bin/powershell
<# <#
.SYNTAX ./close-edge.ps1 .SYNTAX ./close-edge.ps1
.DESCRIPTION closes Microsoft Edge gracefully .DESCRIPTION closes Microsoft Edge gracefully

View File

@ -1,4 +1,4 @@
#!/snap/bin/powershell #!/bin/powershell
<# <#
.SYNTAX ./close-file-explorer.ps1 .SYNTAX ./close-file-explorer.ps1
.DESCRIPTION closes Microsoft File Explorer gracefully .DESCRIPTION closes Microsoft File Explorer gracefully

View File

@ -1,4 +1,4 @@
#!/snap/bin/powershell #!/bin/powershell
<# <#
.SYNTAX ./close-program.ps1 [<program-name>] [<full-program-name>] .SYNTAX ./close-program.ps1 [<program-name>] [<full-program-name>]
.DESCRIPTION closes the processes of the given program gracefully .DESCRIPTION closes the processes of the given program gracefully

View File

@ -1,4 +1,4 @@
#!/snap/bin/powershell #!/bin/powershell
<# <#
.SYNTAX ./close-thunderbird.ps1 .SYNTAX ./close-thunderbird.ps1
.DESCRIPTION closes Mozilla Thunderbird gracefully .DESCRIPTION closes Mozilla Thunderbird gracefully

View File

@ -1,4 +1,4 @@
#!/snap/bin/powershell #!/bin/powershell
<# <#
.SYNTAX ./close-windows-terminal.ps1 .SYNTAX ./close-windows-terminal.ps1
.DESCRIPTION closes Windows Terminal gracefully .DESCRIPTION closes Windows Terminal gracefully

View File

@ -1,4 +1,4 @@
#!/snap/bin/powershell #!/bin/powershell
<# <#
.SYNTAX ./configure-git.ps1 [<full-name>] [<email-address>] [<favorite-editor>] .SYNTAX ./configure-git.ps1 [<full-name>] [<email-address>] [<favorite-editor>]
.DESCRIPTION sets up the Git user configuration .DESCRIPTION sets up the Git user configuration

View File

@ -1,4 +1,4 @@
#!/snap/bin/powershell #!/bin/powershell
<# <#
.SYNTAX ./csv-to-text.ps1 [<csv-file>] .SYNTAX ./csv-to-text.ps1 [<csv-file>]
.DESCRIPTION converts the given CSV file into a text list .DESCRIPTION converts the given CSV file into a text list

View File

@ -1,4 +1,4 @@
#!/snap/bin/powershell #!/bin/powershell
<# <#
.SYNTAX ./decrypt-file.ps1 [<path>] [<password>] .SYNTAX ./decrypt-file.ps1 [<path>] [<password>]
.DESCRIPTION decrypts the given file .DESCRIPTION decrypts the given file

View File

@ -1,4 +1,4 @@
#!/snap/bin/powershell #!/bin/powershell
<# <#
.SYNTAX ./display-time.ps1 [<seconds>] .SYNTAX ./display-time.ps1 [<seconds>]
.DESCRIPTION displays the current time for 10 seconds by default .DESCRIPTION displays the current time for 10 seconds by default

View File

@ -1,4 +1,4 @@
#!/snap/bin/powershell #!/bin/powershell
<# <#
.SYNTAX ./download.ps1 [<URL>] .SYNTAX ./download.ps1 [<URL>]
.DESCRIPTION downloads the file/directory from the given URL .DESCRIPTION downloads the file/directory from the given URL

View File

@ -1,4 +1,4 @@
#!/snap/bin/powershell #!/bin/powershell
<# <#
.SYNTAX ./empty-dir.ps1 [<path-to-dir>] .SYNTAX ./empty-dir.ps1 [<path-to-dir>]
.DESCRIPTION Empties the given directory by removing(!) any file and subdirectories. .DESCRIPTION Empties the given directory by removing(!) any file and subdirectories.

View File

@ -1,4 +1,4 @@
#!/snap/bin/powershell #!/bin/powershell
<# <#
.SYNTAX ./enable-crash-dumps.ps1 .SYNTAX ./enable-crash-dumps.ps1
.DESCRIPTION enables the writing of crash dumps .DESCRIPTION enables the writing of crash dumps

View File

@ -1,4 +1,4 @@
#!/snap/bin/powershell #!/bin/powershell
<# <#
.SYNTAX ./encrypt-file.ps1 [<path>] [<password>] .SYNTAX ./encrypt-file.ps1 [<path>] [<password>]
.DESCRIPTION encrypts the given file .DESCRIPTION encrypts the given file

View File

@ -1,4 +1,4 @@
#!/snap/bin/powershell #!/bin/powershell
<# <#
.SYNTAX ./generate-qrcode.ps1 [<text>] [<image-size>] .SYNTAX ./generate-qrcode.ps1 [<text>] [<image-size>]
.DESCRIPTION generates a QR code .DESCRIPTION generates a QR code

View File

@ -1,4 +1,4 @@
#!/snap/bin/powershell #!/bin/powershell
<# <#
.SYNTAX ./hibernate.ps1 .SYNTAX ./hibernate.ps1
.DESCRIPTION enables hibernate mode for the local computer (requires admin rights) .DESCRIPTION enables hibernate mode for the local computer (requires admin rights)

View File

@ -1,4 +1,4 @@
#!/snap/bin/powershell #!/bin/powershell
<# <#
.SYNTAX ./inspect-exe.ps1 [<path-to-exe-file>] .SYNTAX ./inspect-exe.ps1 [<path-to-exe-file>]
.DESCRIPTION prints basic information of the given executable file .DESCRIPTION prints basic information of the given executable file

View File

@ -1,4 +1,4 @@
#!/snap/bin/powershell #!/bin/powershell
<# <#
.SYNTAX ./list-anagrams.ps1 [<word>] [<columns>] .SYNTAX ./list-anagrams.ps1 [<word>] [<columns>]
.DESCRIPTION lists all anagrams of the given word .DESCRIPTION lists all anagrams of the given word

View File

@ -1,4 +1,4 @@
#!/snap/bin/powershell #!/bin/powershell
<# <#
.SYNTAX ./list-automatic-variables.ps1 .SYNTAX ./list-automatic-variables.ps1
.DESCRIPTION lists the automatic variables of PowerShell .DESCRIPTION lists the automatic variables of PowerShell

View File

@ -1,4 +1,4 @@
#!/snap/bin/powershell #!/bin/powershell
<# <#
.SYNTAX ./list-clipboard.ps1 .SYNTAX ./list-clipboard.ps1
.DESCRIPTION lists the contents of the clipboard .DESCRIPTION lists the contents of the clipboard

View File

@ -1,4 +1,4 @@
#!/snap/bin/powershell #!/bin/powershell
<# <#
.SYNTAX ./list-cmdlets.ps1 .SYNTAX ./list-cmdlets.ps1
.DESCRIPTION lists all PowerShell cmdlets .DESCRIPTION lists all PowerShell cmdlets

View File

@ -1,4 +1,4 @@
#!/snap/bin/powershell #!/bin/powershell
<# <#
.SYNTAX ./list-current-timezone.ps1 .SYNTAX ./list-current-timezone.ps1
.DESCRIPTION lists the current time zone details .DESCRIPTION lists the current time zone details

View File

@ -1,4 +1,4 @@
#!/snap/bin/powershell #!/bin/powershell
<# <#
.SYNTAX ./list-earthquakes.ps1 .SYNTAX ./list-earthquakes.ps1
.DESCRIPTION lists earthquakes with magnitude >= 6.0 for the last 30 days .DESCRIPTION lists earthquakes with magnitude >= 6.0 for the last 30 days

View File

@ -1,4 +1,4 @@
#!/snap/bin/powershell #!/bin/powershell
<# <#
.SYNTAX ./list-empty-dirs.ps1 <dirtree> .SYNTAX ./list-empty-dirs.ps1 <dirtree>
.DESCRIPTION lists empty subfolders in the <directory tree> .DESCRIPTION lists empty subfolders in the <directory tree>

View File

@ -1,4 +1,4 @@
#!/snap/bin/powershell #!/bin/powershell
<# <#
.SYNTAX ./list-environment-variables.ps1 .SYNTAX ./list-environment-variables.ps1
.DESCRIPTION lists all environment variables .DESCRIPTION lists all environment variables

View File

@ -1,4 +1,4 @@
#!/snap/bin/powershell #!/bin/powershell
<# <#
.SYNTAX ./list-files.ps1 [<folder>] .SYNTAX ./list-files.ps1 [<folder>]
.DESCRIPTION lists all files in the given folder and also in every subfolder .DESCRIPTION lists all files in the given folder and also in every subfolder

View File

@ -1,4 +1,4 @@
#!/snap/bin/powershell #!/bin/powershell
<# <#
.SYNTAX ./list-formatted.ps1 [<directory>] .SYNTAX ./list-formatted.ps1 [<directory>]
.DESCRIPTION lists the current working directory formatted in columns .DESCRIPTION lists the current working directory formatted in columns

View File

@ -1,4 +1,4 @@
#!/snap/bin/powershell #!/bin/powershell
<# <#
.SYNTAX ./list-fritzbox-calls.ps1 [<username>] [<password>] .SYNTAX ./list-fritzbox-calls.ps1 [<username>] [<password>]
.DESCRIPTION lists the phone calls of the FRITZ!Box device .DESCRIPTION lists the phone calls of the FRITZ!Box device

View File

@ -1,4 +1,4 @@
#!/snap/bin/powershell #!/bin/powershell
<# <#
.SYNTAX ./list-fritzbox-calls.ps1 [<username>] [<password>] .SYNTAX ./list-fritzbox-calls.ps1 [<username>] [<password>]
.DESCRIPTION lists FRITZ!Box's known devices .DESCRIPTION lists FRITZ!Box's known devices

View File

@ -1,4 +1,4 @@
#!/snap/bin/powershell #!/bin/powershell
<# <#
.SYNTAX ./list-installed-software.ps1 .SYNTAX ./list-installed-software.ps1
.DESCRIPTION lists the installed software .DESCRIPTION lists the installed software

View File

@ -1,4 +1,4 @@
#!/snap/bin/powershell #!/bin/powershell
<# <#
.SYNTAX ./list-logbook.ps1 .SYNTAX ./list-logbook.ps1
.DESCRIPTION lists the content of the logbook (in ../Data/logbook.csv) .DESCRIPTION lists the content of the logbook (in ../Data/logbook.csv)

View File

@ -1,4 +1,4 @@
#!/snap/bin/powershell #!/bin/powershell
<# <#
.SYNTAX ./list-modules.ps1 .SYNTAX ./list-modules.ps1
.DESCRIPTION lists all PowerShell modules .DESCRIPTION lists all PowerShell modules

View File

@ -1,4 +1,4 @@
#!/snap/bin/powershell #!/bin/powershell
<# <#
.SYNTAX ./list-news.ps1 [<RSS-URL>] .SYNTAX ./list-news.ps1 [<RSS-URL>]
.DESCRIPTION lists the latest news .DESCRIPTION lists the latest news

View File

@ -1,4 +1,4 @@
#!/snap/bin/powershell #!/bin/powershell
<# <#
.SYNTAX ./list-os-releases.ps1 .SYNTAX ./list-os-releases.ps1
.DESCRIPTION lists OS releases and download URL .DESCRIPTION lists OS releases and download URL

View File

@ -1,4 +1,4 @@
#!/snap/bin/powershell #!/bin/powershell
<# <#
.SYNTAX ./list-printers.ps1 .SYNTAX ./list-printers.ps1
.DESCRIPTION lists all printer known to the computer .DESCRIPTION lists all printer known to the computer

View File

@ -1,4 +1,4 @@
#!/snap/bin/powershell #!/bin/powershell
<# <#
.SYNTAX ./list-processes.ps1 .SYNTAX ./list-processes.ps1
.DESCRIPTION lists the local computer processes .DESCRIPTION lists the local computer processes

View File

@ -1,4 +1,4 @@
#!/snap/bin/powershell #!/bin/powershell
<# <#
.SYNTAX ./list-random-passwords.ps1 .SYNTAX ./list-random-passwords.ps1
.DESCRIPTION prints a list of random passwords .DESCRIPTION prints a list of random passwords

View File

@ -1,4 +1,4 @@
#!/snap/bin/powershell #!/bin/powershell
<# <#
.SYNTAX ./list-random-pins.ps1 [<pin-length>] [<columns>] [<rows>] .SYNTAX ./list-random-pins.ps1 [<pin-length>] [<columns>] [<rows>]
.DESCRIPTION prints a list of random PIN's .DESCRIPTION prints a list of random PIN's

View File

@ -1,4 +1,4 @@
#!/snap/bin/powershell #!/bin/powershell
<# <#
.SYNTAX ./list-scripts.ps1 .SYNTAX ./list-scripts.ps1
.DESCRIPTION lists the PowerShell scripts in this repository .DESCRIPTION lists the PowerShell scripts in this repository

View File

@ -1,4 +1,4 @@
#!/snap/bin/powershell #!/bin/powershell
<# <#
.SYNTAX ./list-timezones.ps1 .SYNTAX ./list-timezones.ps1
.DESCRIPTION lists all time zones available .DESCRIPTION lists all time zones available

View File

@ -1,4 +1,4 @@
#!/snap/bin/powershell #!/bin/powershell
<# <#
.SYNTAX ./list-unused-files.ps1 <dirtree> <days> .SYNTAX ./list-unused-files.ps1 <dirtree> <days>
.DESCRIPTION lists files in the <directory tree> with last access time older than <days> .DESCRIPTION lists files in the <directory tree> with last access time older than <days>

View File

@ -1,4 +1,4 @@
#!/snap/bin/powershell #!/bin/powershell
<# <#
.SYNTAX ./list-user-groups.ps1 .SYNTAX ./list-user-groups.ps1
.DESCRIPTION lists the user groups on the local computer .DESCRIPTION lists the user groups on the local computer

View File

@ -1,4 +1,4 @@
#!/snap/bin/powershell #!/bin/powershell
<# <#
.SYNTAX ./locate-city.ps1 [<city>] .SYNTAX ./locate-city.ps1 [<city>]
.DESCRIPTION prints the geographic location of the given city .DESCRIPTION prints the geographic location of the given city

View File

@ -1,4 +1,4 @@
#!/snap/bin/powershell #!/bin/powershell
<# <#
.SYNTAX ./locate-ipaddress.ps1 [<IPaddress>] .SYNTAX ./locate-ipaddress.ps1 [<IPaddress>]
.DESCRIPTION prints the geographic location of the given IP address .DESCRIPTION prints the geographic location of the given IP address

View File

@ -1,4 +1,4 @@
#!/snap/bin/powershell #!/bin/powershell
<# <#
.SYNTAX ./locate-zip-code.ps1 [<country-code>] [<zip-code>] .SYNTAX ./locate-zip-code.ps1 [<country-code>] [<zip-code>]
.DESCRIPTION prints the geographic location of the given zip-code .DESCRIPTION prints the geographic location of the given zip-code

View File

@ -1,4 +1,4 @@
#!/snap/bin/powershell #!/bin/powershell
<# <#
.SYNTAX make-install.ps1 <build-dir> .SYNTAX make-install.ps1 <build-dir>
.DESCRIPTION Copies newer EXE's + DLL's from the build directory to the installation directory. .DESCRIPTION Copies newer EXE's + DLL's from the build directory to the installation directory.

View File

@ -1,4 +1,4 @@
#!/snap/bin/powershell #!/bin/powershell
<# <#
.SYNTAX ./moon.ps1 .SYNTAX ./moon.ps1
.DESCRIPTION prints the current moon phase .DESCRIPTION prints the current moon phase

View File

@ -1,4 +1,4 @@
#!/snap/bin/powershell #!/bin/powershell
<# <#
.SYNTAX ./mute-audio.ps1 .SYNTAX ./mute-audio.ps1
.DESCRIPTION mutes the audio .DESCRIPTION mutes the audio

View File

@ -1,4 +1,4 @@
#!/snap/bin/powershell #!/bin/powershell
<# <#
.SYNTAX ./new-email.ps1 [<address>] .SYNTAX ./new-email.ps1 [<address>]
.DESCRIPTION starts the default email client to write a new email .DESCRIPTION starts the default email client to write a new email

View File

@ -1,4 +1,4 @@
#!/snap/bin/powershell #!/bin/powershell
<# <#
.SYNTAX ./next-joke.ps1 .SYNTAX ./next-joke.ps1
.DESCRIPTION gets the next random Juck Norris joke .DESCRIPTION gets the next random Juck Norris joke

View File

@ -1,4 +1,4 @@
#!/snap/bin/powershell #!/bin/powershell
<# <#
.SYNTAX ./open-browser.ps1 [<URL>] .SYNTAX ./open-browser.ps1 [<URL>]
.DESCRIPTION starts the default Web browser, optional with given URL .DESCRIPTION starts the default Web browser, optional with given URL

View File

@ -1,4 +1,4 @@
#!/snap/bin/powershell #!/bin/powershell
<# <#
.SYNTAX ./open-calculator.ps1 .SYNTAX ./open-calculator.ps1
.DESCRIPTION starts the calculator program .DESCRIPTION starts the calculator program

View File

@ -1,4 +1,4 @@
#!/snap/bin/powershell #!/bin/powershell
<# <#
.SYNTAX ./open-email-client.ps1 .SYNTAX ./open-email-client.ps1
.DESCRIPTION starts the default email client .DESCRIPTION starts the default email client

View File

@ -1,4 +1,4 @@
#!/snap/bin/powershell #!/bin/powershell
<# <#
.SYNTAX ./play-beep.ps1 .SYNTAX ./play-beep.ps1
.DESCRIPTION plays a beep sound .DESCRIPTION plays a beep sound

View File

@ -1,4 +1,4 @@
#!/snap/bin/powershell #!/bin/powershell
<# <#
.SYNTAX ./poweroff.ps1 .SYNTAX ./poweroff.ps1
.DESCRIPTION halts the local computer, administrator rights are required .DESCRIPTION halts the local computer, administrator rights are required

View File

@ -1,4 +1,4 @@
#!/snap/bin/powershell #!/bin/powershell
<# <#
.SYNTAX ./query-smart-data.ps1 [<directory>] .SYNTAX ./query-smart-data.ps1 [<directory>]
.DESCRIPTION queries the S.M.A.R.T. data of your HDD/SSD's and saves it to the current/given directory .DESCRIPTION queries the S.M.A.R.T. data of your HDD/SSD's and saves it to the current/given directory

View File

@ -1,4 +1,4 @@
#!/snap/bin/powershell #!/bin/powershell
<# <#
.SYNTAX ./reboot-fritzbox.ps1 [<username>] [<password>] .SYNTAX ./reboot-fritzbox.ps1 [<username>] [<password>]
.DESCRIPTION reboots the FRITZ!Box device .DESCRIPTION reboots the FRITZ!Box device

View File

@ -1,4 +1,4 @@
#!/snap/bin/powershell #!/bin/powershell
<# <#
.SYNTAX ./reboot.ps1 .SYNTAX ./reboot.ps1
.DESCRIPTION reboots the local computer (requires admin rights) .DESCRIPTION reboots the local computer (requires admin rights)

View File

@ -1,4 +1,4 @@
#!/snap/bin/powershell #!/bin/powershell
<# <#
.SYNTAX ./remove-empty-dirs.ps1 [<dir-tree>] .SYNTAX ./remove-empty-dirs.ps1 [<dir-tree>]
.DESCRIPTION removes empty subfolders within the given directory tree .DESCRIPTION removes empty subfolders within the given directory tree

View File

@ -1,4 +1,4 @@
#!/snap/bin/powershell #!/bin/powershell
<# <#
.SYNTAX ./scan-ports.ps1 .SYNTAX ./scan-ports.ps1
.DESCRIPTION scans the network for open/closed ports .DESCRIPTION scans the network for open/closed ports

View File

@ -1,4 +1,4 @@
#!/snap/bin/powershell #!/bin/powershell
<# <#
.SYNTAX ./search-files.ps1 [<pattern>] [<path>] .SYNTAX ./search-files.ps1 [<pattern>] [<path>]
.DESCRIPTION searches the given pattern in the given files .DESCRIPTION searches the given pattern in the given files

View File

@ -1,4 +1,4 @@
#!/snap/bin/powershell #!/bin/powershell
<# <#
.SYNTAX ./send-email.ps1 .SYNTAX ./send-email.ps1
.DESCRIPTION sends an email .DESCRIPTION sends an email

View File

@ -1,4 +1,4 @@
#!/snap/bin/powershell #!/bin/powershell
<# <#
.SYNTAX ./send-tcp.ps1 [<target-IP>] [<target-port>] [<message>] .SYNTAX ./send-tcp.ps1 [<target-IP>] [<target-port>] [<message>]
.DESCRIPTION sends a TCP message to the given IP address and port .DESCRIPTION sends a TCP message to the given IP address and port

View File

@ -1,4 +1,4 @@
#!/snap/bin/powershell #!/bin/powershell
<# <#
.SYNTAX ./send-udp.ps1 [<target-IP>] [<target-port>] [<message>] .SYNTAX ./send-udp.ps1 [<target-IP>] [<target-port>] [<message>]
.DESCRIPTION sends a UDP datagram message to the given IP address and port .DESCRIPTION sends a UDP datagram message to the given IP address and port

View File

@ -1,4 +1,4 @@
#!/snap/bin/powershell #!/bin/powershell
<# <#
.SYNTAX ./set-timer.ps1 [<seconds>] .SYNTAX ./set-timer.ps1 [<seconds>]
.DESCRIPTION sets a timer for a countdown .DESCRIPTION sets a timer for a countdown

View File

@ -1,4 +1,4 @@
#!/snap/bin/powershell #!/bin/powershell
<# <#
.SYNTAX ./set-wallpaper.ps1 [<image-file>] [<style>] .SYNTAX ./set-wallpaper.ps1 [<image-file>] [<style>]
.DESCRIPTION sets the given image file as wallpaper .DESCRIPTION sets the given image file as wallpaper

View File

@ -1,4 +1,4 @@
#!/snap/bin/powershell #!/bin/powershell
<# <#
.SYNTAX ./simulate-matrix.ps1 .SYNTAX ./simulate-matrix.ps1
.DESCRIPTION simulates the Matrix (fun) .DESCRIPTION simulates the Matrix (fun)

View File

@ -1,4 +1,4 @@
#!/snap/bin/powershell #!/bin/powershell
<# <#
.SYNTAX ./simulate-presence.ps1 [<IP-address>] .SYNTAX ./simulate-presence.ps1 [<IP-address>]
.DESCRIPTION simulates the human presence against burglars .DESCRIPTION simulates the human presence against burglars

View File

@ -1,4 +1,4 @@
#!/snap/bin/powershell #!/bin/powershell
<# <#
.SYNTAX ./smart-data2csv.ps1 [<directory>] .SYNTAX ./smart-data2csv.ps1 [<directory>]
.DESCRIPTION converts the S.M.A.R.T. JSON files in the current/given directory to a CSV table for analysis .DESCRIPTION converts the S.M.A.R.T. JSON files in the current/given directory to a CSV table for analysis

View File

@ -1,4 +1,4 @@
#!/snap/bin/powershell #!/bin/powershell
<# <#
.SYNTAX ./speak-date.ps1 .SYNTAX ./speak-date.ps1
.DESCRIPTION speaks the current date by text-to-speech (TTS) .DESCRIPTION speaks the current date by text-to-speech (TTS)

View File

@ -1,4 +1,4 @@
#!/snap/bin/powershell #!/bin/powershell
<# <#
.SYNTAX ./speak-english.ps1 [<text>] .SYNTAX ./speak-english.ps1 [<text>]
.DESCRIPTION speaks the given text with an English text-to-speech (TTS) voice .DESCRIPTION speaks the given text with an English text-to-speech (TTS) voice

View File

@ -1,4 +1,4 @@
#!/snap/bin/powershell #!/bin/powershell
<# <#
.SYNTAX ./speak-epub.ps1 [<filename>] .SYNTAX ./speak-epub.ps1 [<filename>]
.DESCRIPTION speaks the content of the given Epub file by text-to-speech (TTS) .DESCRIPTION speaks the content of the given Epub file by text-to-speech (TTS)

View File

@ -1,4 +1,4 @@
#!/snap/bin/powershell #!/bin/powershell
<# <#
.SYNTAX ./speak-file.ps1 [<file>] .SYNTAX ./speak-file.ps1 [<file>]
.DESCRIPTION speaks the content of the given text file by text-to-speech (TTS) .DESCRIPTION speaks the content of the given text file by text-to-speech (TTS)

View File

@ -1,4 +1,4 @@
#!/snap/bin/powershell #!/bin/powershell
<# <#
.SYNTAX ./speak-german.ps1 [<text>] .SYNTAX ./speak-german.ps1 [<text>]
.DESCRIPTION speaks the given text with a German text-to-speech (TTS) voice .DESCRIPTION speaks the given text with a German text-to-speech (TTS) voice

View File

@ -1,4 +1,4 @@
#!/snap/bin/powershell #!/bin/powershell
<# <#
.SYNTAX ./speak-joke.ps1 .SYNTAX ./speak-joke.ps1
.DESCRIPTION speaks the next joke by text-to-speech (TTS) .DESCRIPTION speaks the next joke by text-to-speech (TTS)

View File

@ -1,4 +1,4 @@
#!/snap/bin/powershell #!/bin/powershell
<# <#
.SYNTAX ./speak-test.ps1 .SYNTAX ./speak-test.ps1
.DESCRIPTION performs a test speak by text-to-speech (TTS) .DESCRIPTION performs a test speak by text-to-speech (TTS)

View File

@ -1,4 +1,4 @@
#!/snap/bin/powershell #!/bin/powershell
<# <#
.SYNTAX ./speak-text.ps1 [<text>] .SYNTAX ./speak-text.ps1 [<text>]
.DESCRIPTION speaks the given text by text-to-speech (TTS) .DESCRIPTION speaks the given text by text-to-speech (TTS)

View File

@ -1,4 +1,4 @@
#!/snap/bin/powershell #!/bin/powershell
<# <#
.SYNTAX ./speak-time.ps1 .SYNTAX ./speak-time.ps1
.DESCRIPTION speaks the current time by text-to-speech (TTS) .DESCRIPTION speaks the current time by text-to-speech (TTS)

View File

@ -1,4 +1,4 @@
#!/snap/bin/powershell #!/bin/powershell
<# <#
.SYNTAX ./switch-shelly1.ps1 [<IP-address>] [<turn-mode>] [<timer>] .SYNTAX ./switch-shelly1.ps1 [<IP-address>] [<turn-mode>] [<timer>]
.DESCRIPTION switches a Shelly1 device in the local network .DESCRIPTION switches a Shelly1 device in the local network

View File

@ -1,4 +1,4 @@
#!/snap/bin/powershell #!/bin/powershell
<# <#
.SYNTAX ./take-screenshot.ps1 [<directory>] .SYNTAX ./take-screenshot.ps1 [<directory>]
.DESCRIPTION takes a single screenshot and saves it into the current/given directory .DESCRIPTION takes a single screenshot and saves it into the current/given directory

View File

@ -1,4 +1,4 @@
#!/snap/bin/powershell #!/bin/powershell
<# <#
.SYNTAX ./take-screenshot.ps1 [<directory>] [<interval>] .SYNTAX ./take-screenshot.ps1 [<directory>] [<interval>]
.DESCRIPTION takes screenshots every 60 seconds and saves them into the current/given directory .DESCRIPTION takes screenshots every 60 seconds and saves them into the current/given directory

View File

@ -1,4 +1,4 @@
#!/snap/bin/powershell #!/bin/powershell
<# <#
.SYNTAX ./train-dns-cache.ps1 .SYNTAX ./train-dns-cache.ps1
.DESCRIPTION trains the DNS cache with frequently used domain names .DESCRIPTION trains the DNS cache with frequently used domain names

View File

@ -1,4 +1,4 @@
#!/snap/bin/powershell #!/bin/powershell
<# <#
.SYNTAX ./translate-file.ps1 [<file>] [<source-lang>] [<target-lang>] .SYNTAX ./translate-file.ps1 [<file>] [<source-lang>] [<target-lang>]
.DESCRIPTION translates the given file from source to target language. .DESCRIPTION translates the given file from source to target language.

View File

@ -1,4 +1,4 @@
#!/snap/bin/powershell #!/bin/powershell
<# <#
.SYNTAX ./translate-text.ps1 [<text>] [<source-lang>] .SYNTAX ./translate-text.ps1 [<text>] [<source-lang>]
.DESCRIPTION translates the given text into other languages .DESCRIPTION translates the given text into other languages

View File

@ -1,4 +1,4 @@
#!/snap/bin/powershell #!/bin/powershell
<# <#
.SYNTAX ./turn-volume-down.ps1 [<percent>] .SYNTAX ./turn-volume-down.ps1 [<percent>]
.DESCRIPTION turns the audio volume down (-10% by default) .DESCRIPTION turns the audio volume down (-10% by default)

View File

@ -1,4 +1,4 @@
#!/snap/bin/powershell #!/bin/powershell
<# <#
.SYNTAX ./turn-volume-up.ps1 [<percent>] .SYNTAX ./turn-volume-up.ps1 [<percent>]
.DESCRIPTION turns the audio volume up (+10% by default) .DESCRIPTION turns the audio volume up (+10% by default)

View File

@ -1,4 +1,4 @@
#!/snap/bin/powershell #!/bin/powershell
<# <#
.SYNTAX ./txt2wav.ps1 .SYNTAX ./txt2wav.ps1
.DESCRIPTION converts the given text into an audio .WAV file .DESCRIPTION converts the given text into an audio .WAV file

View File

@ -1,4 +1,4 @@
#!/snap/bin/powershell #!/bin/powershell
<# <#
.SYNTAX ./unmute-audio.ps1 .SYNTAX ./unmute-audio.ps1
.DESCRIPTION unmutes audio output .DESCRIPTION unmutes audio output

View File

@ -1,4 +1,4 @@
#!/snap/bin/powershell #!/bin/powershell
<# <#
.SYNTAX ./update-repos.ps1 [<directory>] .SYNTAX ./update-repos.ps1 [<directory>]
.DESCRIPTION updates all Git repositories under the current directory .DESCRIPTION updates all Git repositories under the current directory

Some files were not shown because too many files have changed in this diff Show More