mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-01-23 06:08:36 +01:00
Changed to #!/bin/powershell
This commit is contained in:
parent
f1767fe7b7
commit
f7eca6274c
@ -152,7 +152,7 @@ $ git clone https://github.com/fleschutz/PowerShell
|
||||
|
||||
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
|
||||
|
||||
|
||||
@ -174,7 +174,7 @@ Script Conventions
|
||||
Each PowerShell script should follow the 8 golden rules:
|
||||
|
||||
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
|
||||
4. provide a comment-based help with syntax, description, link, author, and license
|
||||
5. prefer command-line options, else ask the user
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/snap/bin/powershell
|
||||
#!/bin/powershell
|
||||
<#
|
||||
.SYNTAX ./MD5.ps1 [<file>]
|
||||
.DESCRIPTION prints the MD5 checksum of the given file
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/snap/bin/powershell
|
||||
#!/bin/powershell
|
||||
<#
|
||||
.SYNTAX ./SHA1.ps1 [<file>]
|
||||
.DESCRIPTION prints the SHA1 checksum of the given file
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/snap/bin/powershell
|
||||
#!/bin/powershell
|
||||
<#
|
||||
.SYNTAX ./SHA256.ps1 [<file>]
|
||||
.DESCRIPTION prints the SHA256 checksum of the given file
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/snap/bin/powershell
|
||||
#!/bin/powershell
|
||||
<#
|
||||
.SYNTAX ./add-firewall-rules.ps1 [<path-to-executables>]
|
||||
.DESCRIPTION adds firewall rules for the given executables, administrator rights are required
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/snap/bin/powershell
|
||||
#!/bin/powershell
|
||||
<#
|
||||
.SYNTAX ./alert.ps1 [<message>]
|
||||
.DESCRIPTION handle and escalate the given alert message
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/snap/bin/powershell
|
||||
#!/bin/powershell
|
||||
<#
|
||||
.SYNTAX ./check-ipv4-address.ps1 [<address>]
|
||||
.DESCRIPTION checks the given IPv4 address for validity
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/snap/bin/powershell
|
||||
#!/bin/powershell
|
||||
<#
|
||||
.SYNTAX ./check-mac-address.ps1 [<MAC>]
|
||||
.DESCRIPTION checks the given MAC address for validity
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/snap/bin/powershell
|
||||
#!/bin/powershell
|
||||
<#
|
||||
.SYNTAX ./check-xml-file [<file>]
|
||||
.DESCRIPTION checks the given XML file for validity
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/snap/bin/powershell
|
||||
#!/bin/powershell
|
||||
<#
|
||||
.SYNTAX ./clone-repos.ps1
|
||||
.DESCRIPTION clones well-known Git repositories into the current directory.
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/snap/bin/powershell
|
||||
#!/bin/powershell
|
||||
<#
|
||||
.SYNTAX ./close-calculator.ps1
|
||||
.DESCRIPTION closes the calculator program gracefully
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/snap/bin/powershell
|
||||
#!/bin/powershell
|
||||
<#
|
||||
.SYNTAX ./close-chrome.ps1
|
||||
.DESCRIPTION closes Google Chrome gracefully
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/snap/bin/powershell
|
||||
#!/bin/powershell
|
||||
<#
|
||||
.SYNTAX ./close-edge.ps1
|
||||
.DESCRIPTION closes Microsoft Edge gracefully
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/snap/bin/powershell
|
||||
#!/bin/powershell
|
||||
<#
|
||||
.SYNTAX ./close-file-explorer.ps1
|
||||
.DESCRIPTION closes Microsoft File Explorer gracefully
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/snap/bin/powershell
|
||||
#!/bin/powershell
|
||||
<#
|
||||
.SYNTAX ./close-program.ps1 [<program-name>] [<full-program-name>]
|
||||
.DESCRIPTION closes the processes of the given program gracefully
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/snap/bin/powershell
|
||||
#!/bin/powershell
|
||||
<#
|
||||
.SYNTAX ./close-thunderbird.ps1
|
||||
.DESCRIPTION closes Mozilla Thunderbird gracefully
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/snap/bin/powershell
|
||||
#!/bin/powershell
|
||||
<#
|
||||
.SYNTAX ./close-windows-terminal.ps1
|
||||
.DESCRIPTION closes Windows Terminal gracefully
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/snap/bin/powershell
|
||||
#!/bin/powershell
|
||||
<#
|
||||
.SYNTAX ./configure-git.ps1 [<full-name>] [<email-address>] [<favorite-editor>]
|
||||
.DESCRIPTION sets up the Git user configuration
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/snap/bin/powershell
|
||||
#!/bin/powershell
|
||||
<#
|
||||
.SYNTAX ./csv-to-text.ps1 [<csv-file>]
|
||||
.DESCRIPTION converts the given CSV file into a text list
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/snap/bin/powershell
|
||||
#!/bin/powershell
|
||||
<#
|
||||
.SYNTAX ./decrypt-file.ps1 [<path>] [<password>]
|
||||
.DESCRIPTION decrypts the given file
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/snap/bin/powershell
|
||||
#!/bin/powershell
|
||||
<#
|
||||
.SYNTAX ./display-time.ps1 [<seconds>]
|
||||
.DESCRIPTION displays the current time for 10 seconds by default
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/snap/bin/powershell
|
||||
#!/bin/powershell
|
||||
<#
|
||||
.SYNTAX ./download.ps1 [<URL>]
|
||||
.DESCRIPTION downloads the file/directory from the given URL
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/snap/bin/powershell
|
||||
#!/bin/powershell
|
||||
<#
|
||||
.SYNTAX ./empty-dir.ps1 [<path-to-dir>]
|
||||
.DESCRIPTION Empties the given directory by removing(!) any file and subdirectories.
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/snap/bin/powershell
|
||||
#!/bin/powershell
|
||||
<#
|
||||
.SYNTAX ./enable-crash-dumps.ps1
|
||||
.DESCRIPTION enables the writing of crash dumps
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/snap/bin/powershell
|
||||
#!/bin/powershell
|
||||
<#
|
||||
.SYNTAX ./encrypt-file.ps1 [<path>] [<password>]
|
||||
.DESCRIPTION encrypts the given file
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/snap/bin/powershell
|
||||
#!/bin/powershell
|
||||
<#
|
||||
.SYNTAX ./generate-qrcode.ps1 [<text>] [<image-size>]
|
||||
.DESCRIPTION generates a QR code
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/snap/bin/powershell
|
||||
#!/bin/powershell
|
||||
<#
|
||||
.SYNTAX ./hibernate.ps1
|
||||
.DESCRIPTION enables hibernate mode for the local computer (requires admin rights)
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/snap/bin/powershell
|
||||
#!/bin/powershell
|
||||
<#
|
||||
.SYNTAX ./inspect-exe.ps1 [<path-to-exe-file>]
|
||||
.DESCRIPTION prints basic information of the given executable file
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/snap/bin/powershell
|
||||
#!/bin/powershell
|
||||
<#
|
||||
.SYNTAX ./list-anagrams.ps1 [<word>] [<columns>]
|
||||
.DESCRIPTION lists all anagrams of the given word
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/snap/bin/powershell
|
||||
#!/bin/powershell
|
||||
<#
|
||||
.SYNTAX ./list-automatic-variables.ps1
|
||||
.DESCRIPTION lists the automatic variables of PowerShell
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/snap/bin/powershell
|
||||
#!/bin/powershell
|
||||
<#
|
||||
.SYNTAX ./list-clipboard.ps1
|
||||
.DESCRIPTION lists the contents of the clipboard
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/snap/bin/powershell
|
||||
#!/bin/powershell
|
||||
<#
|
||||
.SYNTAX ./list-cmdlets.ps1
|
||||
.DESCRIPTION lists all PowerShell cmdlets
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/snap/bin/powershell
|
||||
#!/bin/powershell
|
||||
<#
|
||||
.SYNTAX ./list-current-timezone.ps1
|
||||
.DESCRIPTION lists the current time zone details
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/snap/bin/powershell
|
||||
#!/bin/powershell
|
||||
<#
|
||||
.SYNTAX ./list-earthquakes.ps1
|
||||
.DESCRIPTION lists earthquakes with magnitude >= 6.0 for the last 30 days
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/snap/bin/powershell
|
||||
#!/bin/powershell
|
||||
<#
|
||||
.SYNTAX ./list-empty-dirs.ps1 <dirtree>
|
||||
.DESCRIPTION lists empty subfolders in the <directory tree>
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/snap/bin/powershell
|
||||
#!/bin/powershell
|
||||
<#
|
||||
.SYNTAX ./list-environment-variables.ps1
|
||||
.DESCRIPTION lists all environment variables
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/snap/bin/powershell
|
||||
#!/bin/powershell
|
||||
<#
|
||||
.SYNTAX ./list-files.ps1 [<folder>]
|
||||
.DESCRIPTION lists all files in the given folder and also in every subfolder
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/snap/bin/powershell
|
||||
#!/bin/powershell
|
||||
<#
|
||||
.SYNTAX ./list-formatted.ps1 [<directory>]
|
||||
.DESCRIPTION lists the current working directory formatted in columns
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/snap/bin/powershell
|
||||
#!/bin/powershell
|
||||
<#
|
||||
.SYNTAX ./list-fritzbox-calls.ps1 [<username>] [<password>]
|
||||
.DESCRIPTION lists the phone calls of the FRITZ!Box device
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/snap/bin/powershell
|
||||
#!/bin/powershell
|
||||
<#
|
||||
.SYNTAX ./list-fritzbox-calls.ps1 [<username>] [<password>]
|
||||
.DESCRIPTION lists FRITZ!Box's known devices
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/snap/bin/powershell
|
||||
#!/bin/powershell
|
||||
<#
|
||||
.SYNTAX ./list-installed-software.ps1
|
||||
.DESCRIPTION lists the installed software
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/snap/bin/powershell
|
||||
#!/bin/powershell
|
||||
<#
|
||||
.SYNTAX ./list-logbook.ps1
|
||||
.DESCRIPTION lists the content of the logbook (in ../Data/logbook.csv)
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/snap/bin/powershell
|
||||
#!/bin/powershell
|
||||
<#
|
||||
.SYNTAX ./list-modules.ps1
|
||||
.DESCRIPTION lists all PowerShell modules
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/snap/bin/powershell
|
||||
#!/bin/powershell
|
||||
<#
|
||||
.SYNTAX ./list-news.ps1 [<RSS-URL>]
|
||||
.DESCRIPTION lists the latest news
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/snap/bin/powershell
|
||||
#!/bin/powershell
|
||||
<#
|
||||
.SYNTAX ./list-os-releases.ps1
|
||||
.DESCRIPTION lists OS releases and download URL
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/snap/bin/powershell
|
||||
#!/bin/powershell
|
||||
<#
|
||||
.SYNTAX ./list-printers.ps1
|
||||
.DESCRIPTION lists all printer known to the computer
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/snap/bin/powershell
|
||||
#!/bin/powershell
|
||||
<#
|
||||
.SYNTAX ./list-processes.ps1
|
||||
.DESCRIPTION lists the local computer processes
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/snap/bin/powershell
|
||||
#!/bin/powershell
|
||||
<#
|
||||
.SYNTAX ./list-random-passwords.ps1
|
||||
.DESCRIPTION prints a list of random passwords
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/snap/bin/powershell
|
||||
#!/bin/powershell
|
||||
<#
|
||||
.SYNTAX ./list-random-pins.ps1 [<pin-length>] [<columns>] [<rows>]
|
||||
.DESCRIPTION prints a list of random PIN's
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/snap/bin/powershell
|
||||
#!/bin/powershell
|
||||
<#
|
||||
.SYNTAX ./list-scripts.ps1
|
||||
.DESCRIPTION lists the PowerShell scripts in this repository
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/snap/bin/powershell
|
||||
#!/bin/powershell
|
||||
<#
|
||||
.SYNTAX ./list-timezones.ps1
|
||||
.DESCRIPTION lists all time zones available
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/snap/bin/powershell
|
||||
#!/bin/powershell
|
||||
<#
|
||||
.SYNTAX ./list-unused-files.ps1 <dirtree> <days>
|
||||
.DESCRIPTION lists files in the <directory tree> with last access time older than <days>
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/snap/bin/powershell
|
||||
#!/bin/powershell
|
||||
<#
|
||||
.SYNTAX ./list-user-groups.ps1
|
||||
.DESCRIPTION lists the user groups on the local computer
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/snap/bin/powershell
|
||||
#!/bin/powershell
|
||||
<#
|
||||
.SYNTAX ./locate-city.ps1 [<city>]
|
||||
.DESCRIPTION prints the geographic location of the given city
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/snap/bin/powershell
|
||||
#!/bin/powershell
|
||||
<#
|
||||
.SYNTAX ./locate-ipaddress.ps1 [<IPaddress>]
|
||||
.DESCRIPTION prints the geographic location of the given IP address
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/snap/bin/powershell
|
||||
#!/bin/powershell
|
||||
<#
|
||||
.SYNTAX ./locate-zip-code.ps1 [<country-code>] [<zip-code>]
|
||||
.DESCRIPTION prints the geographic location of the given zip-code
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/snap/bin/powershell
|
||||
#!/bin/powershell
|
||||
<#
|
||||
.SYNTAX make-install.ps1 <build-dir>
|
||||
.DESCRIPTION Copies newer EXE's + DLL's from the build directory to the installation directory.
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/snap/bin/powershell
|
||||
#!/bin/powershell
|
||||
<#
|
||||
.SYNTAX ./moon.ps1
|
||||
.DESCRIPTION prints the current moon phase
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/snap/bin/powershell
|
||||
#!/bin/powershell
|
||||
<#
|
||||
.SYNTAX ./mute-audio.ps1
|
||||
.DESCRIPTION mutes the audio
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/snap/bin/powershell
|
||||
#!/bin/powershell
|
||||
<#
|
||||
.SYNTAX ./new-email.ps1 [<address>]
|
||||
.DESCRIPTION starts the default email client to write a new email
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/snap/bin/powershell
|
||||
#!/bin/powershell
|
||||
<#
|
||||
.SYNTAX ./next-joke.ps1
|
||||
.DESCRIPTION gets the next random Juck Norris joke
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/snap/bin/powershell
|
||||
#!/bin/powershell
|
||||
<#
|
||||
.SYNTAX ./open-browser.ps1 [<URL>]
|
||||
.DESCRIPTION starts the default Web browser, optional with given URL
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/snap/bin/powershell
|
||||
#!/bin/powershell
|
||||
<#
|
||||
.SYNTAX ./open-calculator.ps1
|
||||
.DESCRIPTION starts the calculator program
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/snap/bin/powershell
|
||||
#!/bin/powershell
|
||||
<#
|
||||
.SYNTAX ./open-email-client.ps1
|
||||
.DESCRIPTION starts the default email client
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/snap/bin/powershell
|
||||
#!/bin/powershell
|
||||
<#
|
||||
.SYNTAX ./play-beep.ps1
|
||||
.DESCRIPTION plays a beep sound
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/snap/bin/powershell
|
||||
#!/bin/powershell
|
||||
<#
|
||||
.SYNTAX ./poweroff.ps1
|
||||
.DESCRIPTION halts the local computer, administrator rights are required
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/snap/bin/powershell
|
||||
#!/bin/powershell
|
||||
<#
|
||||
.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
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/snap/bin/powershell
|
||||
#!/bin/powershell
|
||||
<#
|
||||
.SYNTAX ./reboot-fritzbox.ps1 [<username>] [<password>]
|
||||
.DESCRIPTION reboots the FRITZ!Box device
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/snap/bin/powershell
|
||||
#!/bin/powershell
|
||||
<#
|
||||
.SYNTAX ./reboot.ps1
|
||||
.DESCRIPTION reboots the local computer (requires admin rights)
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/snap/bin/powershell
|
||||
#!/bin/powershell
|
||||
<#
|
||||
.SYNTAX ./remove-empty-dirs.ps1 [<dir-tree>]
|
||||
.DESCRIPTION removes empty subfolders within the given directory tree
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/snap/bin/powershell
|
||||
#!/bin/powershell
|
||||
<#
|
||||
.SYNTAX ./scan-ports.ps1
|
||||
.DESCRIPTION scans the network for open/closed ports
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/snap/bin/powershell
|
||||
#!/bin/powershell
|
||||
<#
|
||||
.SYNTAX ./search-files.ps1 [<pattern>] [<path>]
|
||||
.DESCRIPTION searches the given pattern in the given files
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/snap/bin/powershell
|
||||
#!/bin/powershell
|
||||
<#
|
||||
.SYNTAX ./send-email.ps1
|
||||
.DESCRIPTION sends an email
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/snap/bin/powershell
|
||||
#!/bin/powershell
|
||||
<#
|
||||
.SYNTAX ./send-tcp.ps1 [<target-IP>] [<target-port>] [<message>]
|
||||
.DESCRIPTION sends a TCP message to the given IP address and port
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/snap/bin/powershell
|
||||
#!/bin/powershell
|
||||
<#
|
||||
.SYNTAX ./send-udp.ps1 [<target-IP>] [<target-port>] [<message>]
|
||||
.DESCRIPTION sends a UDP datagram message to the given IP address and port
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/snap/bin/powershell
|
||||
#!/bin/powershell
|
||||
<#
|
||||
.SYNTAX ./set-timer.ps1 [<seconds>]
|
||||
.DESCRIPTION sets a timer for a countdown
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/snap/bin/powershell
|
||||
#!/bin/powershell
|
||||
<#
|
||||
.SYNTAX ./set-wallpaper.ps1 [<image-file>] [<style>]
|
||||
.DESCRIPTION sets the given image file as wallpaper
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/snap/bin/powershell
|
||||
#!/bin/powershell
|
||||
<#
|
||||
.SYNTAX ./simulate-matrix.ps1
|
||||
.DESCRIPTION simulates the Matrix (fun)
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/snap/bin/powershell
|
||||
#!/bin/powershell
|
||||
<#
|
||||
.SYNTAX ./simulate-presence.ps1 [<IP-address>]
|
||||
.DESCRIPTION simulates the human presence against burglars
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/snap/bin/powershell
|
||||
#!/bin/powershell
|
||||
<#
|
||||
.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
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/snap/bin/powershell
|
||||
#!/bin/powershell
|
||||
<#
|
||||
.SYNTAX ./speak-date.ps1
|
||||
.DESCRIPTION speaks the current date by text-to-speech (TTS)
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/snap/bin/powershell
|
||||
#!/bin/powershell
|
||||
<#
|
||||
.SYNTAX ./speak-english.ps1 [<text>]
|
||||
.DESCRIPTION speaks the given text with an English text-to-speech (TTS) voice
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/snap/bin/powershell
|
||||
#!/bin/powershell
|
||||
<#
|
||||
.SYNTAX ./speak-epub.ps1 [<filename>]
|
||||
.DESCRIPTION speaks the content of the given Epub file by text-to-speech (TTS)
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/snap/bin/powershell
|
||||
#!/bin/powershell
|
||||
<#
|
||||
.SYNTAX ./speak-file.ps1 [<file>]
|
||||
.DESCRIPTION speaks the content of the given text file by text-to-speech (TTS)
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/snap/bin/powershell
|
||||
#!/bin/powershell
|
||||
<#
|
||||
.SYNTAX ./speak-german.ps1 [<text>]
|
||||
.DESCRIPTION speaks the given text with a German text-to-speech (TTS) voice
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/snap/bin/powershell
|
||||
#!/bin/powershell
|
||||
<#
|
||||
.SYNTAX ./speak-joke.ps1
|
||||
.DESCRIPTION speaks the next joke by text-to-speech (TTS)
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/snap/bin/powershell
|
||||
#!/bin/powershell
|
||||
<#
|
||||
.SYNTAX ./speak-test.ps1
|
||||
.DESCRIPTION performs a test speak by text-to-speech (TTS)
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/snap/bin/powershell
|
||||
#!/bin/powershell
|
||||
<#
|
||||
.SYNTAX ./speak-text.ps1 [<text>]
|
||||
.DESCRIPTION speaks the given text by text-to-speech (TTS)
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/snap/bin/powershell
|
||||
#!/bin/powershell
|
||||
<#
|
||||
.SYNTAX ./speak-time.ps1
|
||||
.DESCRIPTION speaks the current time by text-to-speech (TTS)
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/snap/bin/powershell
|
||||
#!/bin/powershell
|
||||
<#
|
||||
.SYNTAX ./switch-shelly1.ps1 [<IP-address>] [<turn-mode>] [<timer>]
|
||||
.DESCRIPTION switches a Shelly1 device in the local network
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/snap/bin/powershell
|
||||
#!/bin/powershell
|
||||
<#
|
||||
.SYNTAX ./take-screenshot.ps1 [<directory>]
|
||||
.DESCRIPTION takes a single screenshot and saves it into the current/given directory
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/snap/bin/powershell
|
||||
#!/bin/powershell
|
||||
<#
|
||||
.SYNTAX ./take-screenshot.ps1 [<directory>] [<interval>]
|
||||
.DESCRIPTION takes screenshots every 60 seconds and saves them into the current/given directory
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/snap/bin/powershell
|
||||
#!/bin/powershell
|
||||
<#
|
||||
.SYNTAX ./train-dns-cache.ps1
|
||||
.DESCRIPTION trains the DNS cache with frequently used domain names
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/snap/bin/powershell
|
||||
#!/bin/powershell
|
||||
<#
|
||||
.SYNTAX ./translate-file.ps1 [<file>] [<source-lang>] [<target-lang>]
|
||||
.DESCRIPTION translates the given file from source to target language.
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/snap/bin/powershell
|
||||
#!/bin/powershell
|
||||
<#
|
||||
.SYNTAX ./translate-text.ps1 [<text>] [<source-lang>]
|
||||
.DESCRIPTION translates the given text into other languages
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/snap/bin/powershell
|
||||
#!/bin/powershell
|
||||
<#
|
||||
.SYNTAX ./turn-volume-down.ps1 [<percent>]
|
||||
.DESCRIPTION turns the audio volume down (-10% by default)
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/snap/bin/powershell
|
||||
#!/bin/powershell
|
||||
<#
|
||||
.SYNTAX ./turn-volume-up.ps1 [<percent>]
|
||||
.DESCRIPTION turns the audio volume up (+10% by default)
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/snap/bin/powershell
|
||||
#!/bin/powershell
|
||||
<#
|
||||
.SYNTAX ./txt2wav.ps1
|
||||
.DESCRIPTION converts the given text into an audio .WAV file
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/snap/bin/powershell
|
||||
#!/bin/powershell
|
||||
<#
|
||||
.SYNTAX ./unmute-audio.ps1
|
||||
.DESCRIPTION unmutes audio output
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/snap/bin/powershell
|
||||
#!/bin/powershell
|
||||
<#
|
||||
.SYNTAX ./update-repos.ps1 [<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
Loading…
Reference in New Issue
Block a user