mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-03-30 18:26:06 +02:00
Update the comment header
This commit is contained in:
parent
c112524c6f
commit
7bccf69f0c
@ -2,17 +2,17 @@
|
||||
.SYNOPSIS
|
||||
Reboots the FRITZ!Box device
|
||||
.DESCRIPTION
|
||||
This script reboots the FRITZ!Box device
|
||||
This PowerShell script reboots the FRITZ!Box device
|
||||
.PARAMETER Username
|
||||
Specifies the user name
|
||||
.PARAMETER Password
|
||||
Specifies the password
|
||||
.EXAMPLE
|
||||
PS> ./reboot-fritzbox
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
Author: Markus Fleschutz / License: CC0
|
||||
#>
|
||||
|
||||
param([string]$Username = "", [string]$Password = "")
|
||||
|
@ -2,13 +2,13 @@
|
||||
.SYNOPSIS
|
||||
Reboots the local computer (needs admin rights)
|
||||
.DESCRIPTION
|
||||
This script reboots the local computer (needs admin rights).
|
||||
This PowerShell script reboots the local computer (needs admin rights).
|
||||
.EXAMPLE
|
||||
PS> ./reboot
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
Author: Markus Fleschutz / License: CC0
|
||||
#>
|
||||
|
||||
#Requires -RunAsAdministrator
|
||||
|
@ -2,17 +2,17 @@
|
||||
.SYNOPSIS
|
||||
Creates a scheduled task that will display a popup message
|
||||
.DESCRIPTION
|
||||
This script creates a scheduled task that will display a popup message.
|
||||
This PowerShell script creates a scheduled task that will display a popup message.
|
||||
.EXAMPLE
|
||||
PS> ./remind-me "Dentist" "4/10/2021 12:00 PM"
|
||||
|
||||
TaskPath TaskName State
|
||||
-------- -------- -----
|
||||
\ Reminder_451733811 Ready
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
Author: Markus Fleschutz / License: CC0
|
||||
#>
|
||||
|
||||
#requires -version 4
|
||||
|
@ -2,15 +2,15 @@
|
||||
.SYNOPSIS
|
||||
Removes all empty subfolders within a directory tree
|
||||
.DESCRIPTION
|
||||
This script removes all empty subfolders within a directory tree.
|
||||
This PowerShell script removes all empty subfolders within a directory tree.
|
||||
.PARAMETER DirTree
|
||||
Specifies the path to the directory tree
|
||||
.EXAMPLE
|
||||
PS> ./remove-empty-dirs C:\Temp
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
Author: Markus Fleschutz / License: CC0
|
||||
#>
|
||||
|
||||
param([string]$DirTree = "")
|
||||
|
@ -2,13 +2,13 @@
|
||||
.SYNOPSIS
|
||||
Removes all jobs from all printers
|
||||
.DESCRIPTION
|
||||
This script removes all print jobs from all printer devices.
|
||||
This PowerShell script removes all print jobs from all printer devices.
|
||||
.EXAMPLE
|
||||
PS> ./remove-print-jobs
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
Author: Markus Fleschutz / License: CC0
|
||||
#>
|
||||
|
||||
#Requires -Version 4
|
||||
|
@ -2,7 +2,7 @@
|
||||
.SYNOPSIS
|
||||
Removes a Git tag (locally, remote, or both)
|
||||
.DESCRIPTION
|
||||
This script removes a Git tag, either locally, remote, or both.
|
||||
This PowerShell script removes a Git tag, either locally, remote, or both.
|
||||
.PARAMETER TagName
|
||||
Specifies the Git tag name
|
||||
.PARAMETER Mode
|
||||
@ -14,7 +14,7 @@
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
Author: Markus Fleschutz / License: CC0
|
||||
#>
|
||||
|
||||
param([string]$TagName = "", [string]$Mode = "", [string]$RepoDir = "$PWD")
|
||||
|
@ -2,13 +2,13 @@
|
||||
.SYNOPSIS
|
||||
Repeats the last reply
|
||||
.DESCRIPTION
|
||||
This repeats the last reply by text-to-speech (TTS).
|
||||
This PowerShell script repeats the last reply by text-to-speech (TTS).
|
||||
.EXAMPLE
|
||||
PS> ./repeat-last-reply
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
Author: Markus Fleschutz / License: CC0
|
||||
#>
|
||||
|
||||
function GetTempDir {
|
||||
|
@ -2,7 +2,7 @@
|
||||
.SYNOPSIS
|
||||
Search and replace a pattern in the given files by the replacement
|
||||
.DESCRIPTION
|
||||
This script searches and replaces a pattern in the given files by the replacement.
|
||||
This PowerShell script searches and replaces a pattern in the given files by the replacement.
|
||||
.PARAMETER pattern
|
||||
Specifies the pattern to look for
|
||||
.PARAMETER replacement
|
||||
@ -11,10 +11,10 @@
|
||||
Specifies the file to scan
|
||||
.EXAMPLE
|
||||
PS> ./replace-in-files NSA "No Such Agency" C:\Temp\*.txt
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
Author: Markus Fleschutz / License: CC0
|
||||
#>
|
||||
|
||||
param([string]$pattern = "", [string]$replacement = "", [string]$files = "")
|
||||
|
@ -5,10 +5,10 @@
|
||||
This PowerShell script restarts all local network adapters (needs admin rights).
|
||||
.EXAMPLE
|
||||
PS> ./restart-network-adapters
|
||||
.NOTES
|
||||
Author: Markus Fleschutz / License: CC0
|
||||
.LINK
|
||||
htts://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
Author: Markus Fleschutz / License: CC0
|
||||
#>
|
||||
|
||||
#Requires -RunAsAdministrator
|
||||
|
@ -2,13 +2,13 @@
|
||||
.SYNOPSIS
|
||||
Replies to "Roll a dice"
|
||||
.DESCRIPTION
|
||||
This script rolls a dice and returns the number by text-to-speech (TTS).
|
||||
This PowerShell script rolls a dice and returns the number by text-to-speech (TTS).
|
||||
.EXAMPLE
|
||||
PS> ./roll-a-dice
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
Author: Markus Fleschutz / License: CC0
|
||||
#>
|
||||
|
||||
$Reply = "It's", "I get", "Now it's", "OK, I have" | Get-Random
|
||||
|
@ -2,16 +2,16 @@
|
||||
.SYNOPSIS
|
||||
Saves a single screenshot
|
||||
.DESCRIPTION
|
||||
This script takes a single screenshot and saves it into a target folder (the user's pictures folder by default).
|
||||
This PowerShell script takes a single screenshot and saves it into a target folder (the user's pictures folder by default).
|
||||
.PARAMETER TargetFolder
|
||||
Specifies the target folder (the user's pictures folder by default)
|
||||
.EXAMPLE
|
||||
PS> ./save-screenshot
|
||||
✔️ screenshot saved to C:\Users\Markus\Pictures\2021-10-10T14-33-22.png
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
Author: Markus Fleschutz / License: CC0
|
||||
#>
|
||||
|
||||
param([string]$TargetFolder = "$HOME/Pictures")
|
||||
|
@ -2,13 +2,13 @@
|
||||
.SYNOPSIS
|
||||
Scans the network for open/closed ports
|
||||
.DESCRIPTION
|
||||
This script scans the network for open or closed ports
|
||||
This PowerShell script scans the network for open or closed ports.
|
||||
.EXAMPLE
|
||||
PS> ./scan-ports
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
Author: Markus Fleschutz / License: CC0
|
||||
#>
|
||||
|
||||
$network = "192.168.178"
|
||||
|
@ -2,7 +2,7 @@
|
||||
.SYNOPSIS
|
||||
Lists all files and folder names matching a search pattern
|
||||
.DESCRIPTION
|
||||
This script serves as a quick Powershell replacement to the search functionality in Windows
|
||||
This PowerShell script serves as a quick Powershell replacement to the search functionality in Windows
|
||||
After you pass in a root folder and a search term, the script will list all files and folders matching that phrase.
|
||||
.PARAMETER path
|
||||
Specifies the path
|
||||
@ -10,10 +10,10 @@
|
||||
Specifies the search term
|
||||
.EXAMPLE
|
||||
PS> ./search-filename
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
Author: Markus Fleschutz / License: CC0
|
||||
#>
|
||||
|
||||
param(
|
||||
|
@ -2,17 +2,17 @@
|
||||
.SYNOPSIS
|
||||
Searches for a pattern in files
|
||||
.DESCRIPTION
|
||||
This script searches for a pattern in the given files.
|
||||
This PowerShell script searches for a pattern in the given files.
|
||||
.PARAMETER pattern
|
||||
Specifies the search pattern
|
||||
.PARAMETER files
|
||||
Specifies the files
|
||||
.EXAMPLE
|
||||
PS> ./search-files UFO C:\Temp\*.txt
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
Author: Markus Fleschutz / License: CC0
|
||||
#>
|
||||
|
||||
param([string]$pattern = "", [string]$files = "")
|
||||
|
@ -2,13 +2,13 @@
|
||||
.SYNOPSIS
|
||||
Answers to 'see you later'
|
||||
.DESCRIPTION
|
||||
This script says a reply to "see you later" by text-to-speech (TTS).
|
||||
This PowerShell script says a reply to "see you later" by text-to-speech (TTS).
|
||||
.EXAMPLE
|
||||
PS> ./see-you-later
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
Author: Markus Fleschutz / License: CC0
|
||||
#>
|
||||
|
||||
$Reply = "Good bye.", "See you.", "Bye bye." | Get-Random
|
||||
|
@ -2,13 +2,13 @@
|
||||
.SYNOPSIS
|
||||
Sends an email message
|
||||
.DESCRIPTION
|
||||
This script sends an email message.
|
||||
This PowerShell script sends an email message.
|
||||
.EXAMPLE
|
||||
PS> ./send-email
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
Author: Markus Fleschutz / License: CC0
|
||||
#>
|
||||
|
||||
$smtpServer = "smtp.example.com"
|
||||
|
@ -2,7 +2,7 @@
|
||||
.SYNOPSIS
|
||||
Sends a TCP message to an IP address and port
|
||||
.DESCRIPTION
|
||||
This script sends a TCP message to the given IP address and port.
|
||||
This PowerShell script sends a TCP message to the given IP address and port.
|
||||
.PARAMETER TargetIP
|
||||
Specifies the target IP address
|
||||
.PARAMETER TargetPort
|
||||
@ -11,10 +11,10 @@
|
||||
Specifies the message to send
|
||||
.EXAMPLE
|
||||
PS> ./send-tcp 192.168.100.100 8080 "TEST"
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
Author: Markus Fleschutz / License: CC0
|
||||
#>
|
||||
|
||||
param([string]$TargetIP = "", [int]$TargetPort = 0, [string]$Message = "")
|
||||
|
@ -2,7 +2,7 @@
|
||||
.SYNOPSIS
|
||||
Sends a UDP datagram message to an IP address and port
|
||||
.DESCRIPTION
|
||||
This script sends a UDP datagram message to an IP address and port.
|
||||
This PowerShell script sends a UDP datagram message to an IP address and port.
|
||||
.PARAMETER TargetIP
|
||||
Specifies the target IP address
|
||||
.PARAMETER TargetPort
|
||||
@ -12,10 +12,10 @@
|
||||
.EXAMPLE
|
||||
PS> ./send-udp 192.168.100.100 8080 "TEST"
|
||||
✔️ Done.
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
Author: Markus Fleschutz / License: CC0
|
||||
#>
|
||||
|
||||
param([string]$TargetIP = "", [int]$TargetPort = 0, $[string]Message = "")
|
||||
|
@ -2,13 +2,13 @@
|
||||
.SYNOPSIS
|
||||
Sets the PowerShell profile for the current user
|
||||
.DESCRIPTION
|
||||
This script sets the PowerShell profile for the current user.
|
||||
This PowerShell script sets the PowerShell profile for the current user.
|
||||
.EXAMPLE
|
||||
PS> ./set-profile
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
Author: Markus Fleschutz / License: CC0
|
||||
#>
|
||||
|
||||
try {
|
||||
|
@ -2,15 +2,15 @@
|
||||
.SYNOPSIS
|
||||
Sets a timer for a countdown
|
||||
.DESCRIPTION
|
||||
This script sets a timer for a countdown.
|
||||
This PowerShell script sets a timer for a countdown.
|
||||
.PARAMETER Seconds
|
||||
Specifies the number of seconds
|
||||
.EXAMPLE
|
||||
PS> ./set-timer 60
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
Author: Markus Fleschutz / License: CC0
|
||||
#>
|
||||
|
||||
param([int]$Seconds = 0)
|
||||
|
@ -2,17 +2,17 @@
|
||||
.SYNOPSIS
|
||||
Sets the given image file as desktop wallpaper
|
||||
.DESCRIPTION
|
||||
Sets the given image file as desktop wallpaper (.JPG or .PNG supported)
|
||||
This PowerShell script sets the given image file as desktop wallpaper (.JPG or .PNG supported)
|
||||
.PARAMETER ImageFile
|
||||
Specifies the path to the image file
|
||||
.PARAMETER Style
|
||||
Specifies either Fill, Fit, Stretch, Tile, Center, or Span (default)
|
||||
.EXAMPLE
|
||||
PS> ./set-wallpaper C:\ocean.jpg
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
Author: Markus Fleschutz / License: CC0
|
||||
#>
|
||||
|
||||
param([string]$ImageFile = "", [string]$Style = "Span")
|
||||
|
@ -2,13 +2,13 @@
|
||||
.SYNOPSIS
|
||||
Shows Lightnings in OpenStreetMap
|
||||
.DESCRIPTION
|
||||
This script launches the Web browser and shows Lightnings in OpenStreetMap.
|
||||
This PowerShell script launches the Web browser and shows lightnings in OpenStreetMap.
|
||||
.EXAMPLE
|
||||
PS> ./show-lightnings
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
Author: Markus Fleschutz / License: CC0
|
||||
#>
|
||||
|
||||
& "$PSScriptRoot/open-default-browser.ps1" "https://www.lightningmaps.org"
|
||||
|
@ -2,13 +2,13 @@
|
||||
.SYNOPSIS
|
||||
Shows the current traffic
|
||||
.DESCRIPTION
|
||||
This script launches the Web browser with MSN showing the current traffic.
|
||||
This PowerShell script launches the Web browser with MSN showing the current traffic.
|
||||
.EXAMPLE
|
||||
PS> ./show-traffic
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
Author: Markus Fleschutz / License: CC0
|
||||
#>
|
||||
|
||||
& "$PSScriptRoot/open-default-browser.ps1" "https://www.msn.com/en-us/traffic?lvl=11&intent=roadClosures"
|
||||
|
@ -2,13 +2,13 @@
|
||||
.SYNOPSIS
|
||||
Simulates the Matrix (fun)
|
||||
.DESCRIPTION
|
||||
This script simulates the Matrix (for fun).
|
||||
This PowerShell script simulates the Matrix (for fun).
|
||||
.EXAMPLE
|
||||
PS> ./simulate-matrix
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
Author: Markus Fleschutz / License: CC0
|
||||
#>
|
||||
|
||||
try {
|
||||
|
@ -2,13 +2,13 @@
|
||||
.SYNOPSIS
|
||||
Simulates the human presence against burglars
|
||||
.DESCRIPTION
|
||||
This script simulates the human presence against burglars.
|
||||
This PowerShell script simulates the human presence against burglars.
|
||||
.PARAMETER IPaddress
|
||||
Specifies the IP address of the Shelly1 device
|
||||
.EXAMPLE
|
||||
PS> ./simulate-presence 192.168.100.100
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
Author: Markus Fleschutz / License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
#>
|
||||
|
@ -2,16 +2,16 @@
|
||||
.SYNOPSIS
|
||||
Converts the S.M.A.R.T. JSON files in a folder 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
|
||||
(use query-smart-data.ps1 to generate those JSON files).
|
||||
This PowerShell script converts the S.M.A.R.T. JSON files in the current/given directory
|
||||
to a CSV table for analysis (use query-smart-data.ps1 to generate those JSON files).
|
||||
.PARAMETER Directory
|
||||
Specifies the path to the directory
|
||||
.EXAMPLE
|
||||
PS> ./smart-data2csv
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
Author: Markus Fleschutz / License: CC0
|
||||
#>
|
||||
|
||||
param([string]$Directory = "")
|
||||
|
@ -2,15 +2,15 @@
|
||||
.SYNOPSIS
|
||||
Speaks a checklist by text-to-speech
|
||||
.DESCRIPTION
|
||||
This script speaks the given checklist by text-to-speech (TTS).
|
||||
This PowerShell script speaks the given checklist by text-to-speech (TTS).
|
||||
.PARAMETER Name
|
||||
Specifies the name of the checklist
|
||||
.EXAMPLE
|
||||
PS> ./speak-checklist
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
Author: Markus Fleschutz / License: CC0
|
||||
#>
|
||||
|
||||
param([string]$Name = "")
|
||||
|
@ -2,15 +2,15 @@
|
||||
.SYNOPSIS
|
||||
Speaks a countdown by text-to-speech
|
||||
.DESCRIPTION
|
||||
This scripts speaks a countdown starting from a given number (10 by default) by text-to-speech (TTS).
|
||||
This PowerShell script speaks a countdown starting from a given number (10 by default) by text-to-speech (TTS).
|
||||
.PARAMETER StartNumber
|
||||
Specifies the number to start from
|
||||
.EXAMPLE
|
||||
PS> ./speak-countdown 60
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
Author: Markus Fleschutz / License: CC0
|
||||
#>
|
||||
|
||||
param([int]$StartNumber = 10)
|
||||
|
@ -2,15 +2,15 @@
|
||||
.SYNOPSIS
|
||||
Speaks text with an English text-to-speech voice
|
||||
.DESCRIPTION
|
||||
This scripts speaks the given text with an English text-to-speech (TTS) voice.
|
||||
This PowerShell scripts speaks the given text with an English text-to-speech (TTS) voice.
|
||||
.PARAMETER text
|
||||
Specifies the text to speak
|
||||
.EXAMPLE
|
||||
PS> ./speak-english "Hello World"
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
Author: Markus Fleschutz / License: CC0
|
||||
#>
|
||||
|
||||
param([string]$text = "")
|
||||
|
@ -2,15 +2,15 @@
|
||||
.SYNOPSIS
|
||||
Speaks the content of the given Epub file by text-to-speech (TTS).
|
||||
.DESCRIPTION
|
||||
This script speaks the content of the given Epub file by text-to-speech (TTS).
|
||||
This PowerShell script speaks the content of the given Epub file by text-to-speech (TTS).
|
||||
.PARAMETER Filename
|
||||
Specifies the path to the Epub file
|
||||
.EXAMPLE
|
||||
PS> ./speak-epub C:\MyBook.epub
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
Author: Markus Fleschutz / License: CC0
|
||||
#>
|
||||
|
||||
param([string]$Filename = "")
|
||||
|
@ -2,15 +2,15 @@
|
||||
.SYNOPSIS
|
||||
Speaks file content by text-to-speech
|
||||
.DESCRIPTION
|
||||
This script speaks the content of the given text file by text-to-speech (TTS).
|
||||
This PowerShell script speaks the content of the given text file by text-to-speech (TTS).
|
||||
.PARAMETER File
|
||||
Specifies the path to the text file
|
||||
.EXAMPLE
|
||||
PS> ./speak-file C:\MyFile.txt
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
Author: Markus Fleschutz / License: CC0
|
||||
#>
|
||||
|
||||
param([string]$File = "")
|
||||
|
@ -2,15 +2,15 @@
|
||||
.SYNOPSIS
|
||||
Speaks text with a French text-to-speech voice
|
||||
.DESCRIPTION
|
||||
This script speaks the given text with a French text-to-speech (TTS) voice.
|
||||
This PowerShell script speaks the given text with a French text-to-speech (TTS) voice.
|
||||
.PARAMETER text
|
||||
Specifies the text to speak
|
||||
.EXAMPLE
|
||||
PS> ./speak-french Salut
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
Author: Markus Fleschutz / License: CC0
|
||||
#>
|
||||
|
||||
param([string]$text = "")
|
||||
|
@ -2,15 +2,15 @@
|
||||
.SYNOPSIS
|
||||
Speaks text with a German text-to-speech voice
|
||||
.DESCRIPTION
|
||||
This script speaks the given text with a German text-to-speech (TTS) voice.
|
||||
This PowerShell script speaks the given text with a German text-to-speech (TTS) voice.
|
||||
.PARAMETER text
|
||||
Specifies the text to speak
|
||||
.EXAMPLE
|
||||
PS> ./speak-german Hallo
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
Author: Markus Fleschutz / License: CC0
|
||||
#>
|
||||
|
||||
param([string]$text = "")
|
||||
|
@ -2,15 +2,15 @@
|
||||
.SYNOPSIS
|
||||
Speaks text with an Italian text-to-speech voice
|
||||
.DESCRIPTION
|
||||
This script speaks the given text with an Italian text-to-speech (TTS) voice.
|
||||
This PowerShell script speaks the given text with an Italian text-to-speech (TTS) voice.
|
||||
.PARAMETER text
|
||||
Specifies the text to speak
|
||||
.EXAMPLE
|
||||
PS> ./speak-italian Ciao
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
Author: Markus Fleschutz / License: CC0
|
||||
#>
|
||||
|
||||
param([string]$text = "")
|
||||
|
@ -2,15 +2,15 @@
|
||||
.SYNOPSIS
|
||||
Speaks text with a Spanish text-to-speech voice
|
||||
.DESCRIPTION
|
||||
This script speaks the given text with a Spanish text-to-speech (TTS) voice.
|
||||
This PowerShell script speaks the given text with a Spanish text-to-speech (TTS) voice.
|
||||
.PARAMETER text
|
||||
Specifies the text to speak
|
||||
.EXAMPLE
|
||||
PS> ./speak-spanish Hola
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
Author: Markus Fleschutz / License: CC0
|
||||
#>
|
||||
|
||||
param([string]$text = "")
|
||||
|
@ -2,13 +2,13 @@
|
||||
.SYNOPSIS
|
||||
Performs a text-to-speech test
|
||||
.DESCRIPTION
|
||||
This script performs a text-to-speech (TTS) test.
|
||||
This PowerShell script performs a text-to-speech (TTS) test.
|
||||
.EXAMPLE
|
||||
PS> ./speak-test
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
Author: Markus Fleschutz / License: CC0
|
||||
#>
|
||||
|
||||
function Speak { param([string]$Text)
|
||||
|
@ -2,15 +2,15 @@
|
||||
.SYNOPSIS
|
||||
Speaks text by the default text-to-speech voice
|
||||
.DESCRIPTION
|
||||
This script speaks the given text by the default text-to-speech (TTS) voice.
|
||||
This PowerShell script speaks the given text by the default text-to-speech (TTS) voice.
|
||||
.PARAMETER text
|
||||
Specifies the text to read
|
||||
.EXAMPLE
|
||||
PS> ./speak-text "Hello World"
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
Author: Markus Fleschutz / License: CC0
|
||||
#>
|
||||
|
||||
param([string]$text = "")
|
||||
|
@ -2,15 +2,15 @@
|
||||
.SYNOPSIS
|
||||
Spells a word
|
||||
.DESCRIPTION
|
||||
This script spells the given word by text-to-speech (TTS).
|
||||
This PowerShell script spells the given word by text-to-speech (TTS).
|
||||
.PARAMETER word
|
||||
Specifies the word to spell
|
||||
.EXAMPLE
|
||||
PS> ./spell-word
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
Author: Markus Fleschutz / License: CC0
|
||||
#>
|
||||
|
||||
param([string]$word = "")
|
||||
@ -29,4 +29,4 @@ try {
|
||||
} catch {
|
||||
"⚠️Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))"
|
||||
exit 1
|
||||
}
|
||||
}
|
||||
|
@ -2,15 +2,15 @@
|
||||
.SYNOPSIS
|
||||
Starts a local Calibre server
|
||||
.DESCRIPTION
|
||||
This script starts a local Calibre server as background process (Web port number is 8099 by default).
|
||||
This PowerShell script starts a local Calibre server as background process (Web port number is 8099 by default).
|
||||
.PARAMETER port
|
||||
Specifies the Web port number (8099 by default)
|
||||
.EXAMPLE
|
||||
PS> ./start-calibre-server
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
Author: Markus Fleschutz / License: CC0
|
||||
#>
|
||||
|
||||
param([int]$port = 8099)
|
||||
|
@ -5,10 +5,10 @@
|
||||
This PowerShell script starts a local IPFS server as a daemon process.
|
||||
.EXAMPLE
|
||||
PS> ./start-ipfs-server
|
||||
.NOTES
|
||||
Author: Markus Fleschutz / License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
Author: Markus Fleschutz / License: CC0
|
||||
#>
|
||||
|
||||
try {
|
||||
|
@ -2,17 +2,17 @@
|
||||
.SYNOPSIS
|
||||
Switches the branch in a Git repository
|
||||
.DESCRIPTION
|
||||
This script switches to another branch in a Git repository (including submodules).
|
||||
This PowerShell script switches to another branch in a Git repository (including submodules).
|
||||
.PARAMETER BranchName
|
||||
Specifies the branch name
|
||||
.PARAMETER RepoDir
|
||||
Specifies the path to the Git repository
|
||||
.EXAMPLE
|
||||
PS> ./switch-branch main C:\MyRepo
|
||||
.NOTES
|
||||
Author: Markus Fleschutz / License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
Author: Markus Fleschutz / License: CC0
|
||||
#>
|
||||
|
||||
param([string]$BranchName = "", [string]$RepoDir = "$PWD")
|
||||
|
@ -1,8 +1,8 @@
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Switches a Shelly1 device in the local network
|
||||
Switches a Shelly1 device
|
||||
.DESCRIPTION
|
||||
This script switches a Shelly1 device in the local network.
|
||||
This PowerShell script switches a Shelly1 device in the local network.
|
||||
.PARAMETER Host
|
||||
Specifies either the hostname or IP address of the Shelly1 device
|
||||
.PARAMETER TurnMode
|
||||
@ -11,10 +11,10 @@
|
||||
Specifies the timer in seconds (0 = infinite)
|
||||
.EXAMPLE
|
||||
PS> ./switch-shelly1 192.168.100.100 toggle 10
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
Author: Markus Fleschutz / License: CC0
|
||||
#>
|
||||
|
||||
param([string]$Host = "", [string]$TurnMode = "", [int]$Timer = -999)
|
||||
|
@ -1,16 +1,16 @@
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Synchronizes a Git repository by push & pull (including submodules)
|
||||
Synchronizes a Git repository
|
||||
.DESCRIPTION
|
||||
This script synchronizes a Git repository by push & pull (including submodules).
|
||||
This PowerShell script synchronizes a Git repository by push & pull (including submodules).
|
||||
.PARAMETER RepoDir
|
||||
Specifies the path to the Git repository
|
||||
.EXAMPLE
|
||||
PS> ./sync-repo C:\MyRepo
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
Author: Markus Fleschutz / License: CC0
|
||||
#>
|
||||
|
||||
param([string]$RepoDir = "$PWD")
|
||||
|
@ -2,13 +2,13 @@
|
||||
.SYNOPSIS
|
||||
Tells a joke by text-to-speech
|
||||
.DESCRIPTION
|
||||
This script selects a random Chuck Norris joke in Data/jokes.csv and speaks it by text-to-speech (TTS).
|
||||
This PowerShell script selects a random Chuck Norris joke in Data/jokes.csv and speaks it by text-to-speech (TTS).
|
||||
.EXAMPLE
|
||||
PS> ./tell-joke
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
Author: Markus Fleschutz / License: CC0
|
||||
#>
|
||||
|
||||
try {
|
||||
|
@ -2,13 +2,13 @@
|
||||
.SYNOPSIS
|
||||
Tells a quote by text-to-speech
|
||||
.DESCRIPTION
|
||||
This script selects a random quote in Data/quotes.csv and speaks it by text-to-speech (TTS).
|
||||
This PowerShell script selects a random quote in Data/quotes.csv and speaks it by text-to-speech (TTS).
|
||||
.EXAMPLE
|
||||
PS> ./tell-quote
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
Author: Markus Fleschutz / License: CC0
|
||||
#>
|
||||
|
||||
try {
|
||||
|
@ -2,7 +2,7 @@
|
||||
.SYNOPSIS
|
||||
Translates a text file into another language
|
||||
.DESCRIPTION
|
||||
This script translates a text file into another language.
|
||||
This PowerShell script translates a text file into another language.
|
||||
.PARAMETER File
|
||||
Specifies the file to translate
|
||||
.PARAMETER SourceLang
|
||||
@ -11,10 +11,10 @@
|
||||
Specifies the target language
|
||||
.EXAMPLE
|
||||
PS> ./translate-file C:\Memo.txt en de
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
Author: Markus Fleschutz / License: CC0
|
||||
#>
|
||||
|
||||
param([string]$File = "", [string]$SourceLang = "", [string]$TargetLang = "")
|
||||
|
@ -2,15 +2,15 @@
|
||||
.SYNOPSIS
|
||||
Translates text files into any supported language
|
||||
.DESCRIPTION
|
||||
This script translates text files into any supported language.
|
||||
This PowerShell script translates text files into any supported language.
|
||||
.PARAMETER FilePattern
|
||||
Specifies the file pattern
|
||||
.EXAMPLE
|
||||
PS> ./translate-files C:\Temp\*.txt
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
Author: Markus Fleschutz / License: CC0
|
||||
#>
|
||||
|
||||
param([string]$FilePattern = "")
|
||||
|
@ -2,7 +2,7 @@
|
||||
.SYNOPSIS
|
||||
Translates text into other languages
|
||||
.DESCRIPTION
|
||||
This script translates text into other languages.
|
||||
This PowerShell script translates text into other languages.
|
||||
.PARAMETER Text
|
||||
Specifies the text to translate
|
||||
.PARAMETER SourceLang
|
||||
@ -11,10 +11,10 @@
|
||||
Specifies the target language
|
||||
.EXAMPLE
|
||||
PS> ./translate-text "Hello World" de en
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
Author: Markus Fleschutz / License: CC0
|
||||
#>
|
||||
|
||||
param([string]$Text = "", [string]$SourceLangCode = "en", [string]$TargetLangCode = "any")
|
||||
|
@ -2,15 +2,15 @@
|
||||
.SYNOPSIS
|
||||
Turns the audio volume down (-10% by default)
|
||||
.DESCRIPTION
|
||||
This script turns the audio volume down (by -10% by default).
|
||||
This PowerShell script turns the audio volume down (by -10% by default).
|
||||
.PARAMETER percent
|
||||
Specifies the percent number
|
||||
.EXAMPLE
|
||||
PS> ./turn-volume-down
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
Author: Markus Fleschutz / License: CC0
|
||||
#>
|
||||
|
||||
param([int]$percent = 10)
|
||||
|
@ -2,13 +2,13 @@
|
||||
.SYNOPSIS
|
||||
Turns the volume off
|
||||
.DESCRIPTION
|
||||
This script mutes the default audio device immediately.
|
||||
This PowerShell script mutes the default audio device immediately.
|
||||
.EXAMPLE
|
||||
PS> ./turn-volume-off
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
Author: Markus Fleschutz / License: CC0
|
||||
#>
|
||||
|
||||
try {
|
||||
|
@ -2,13 +2,13 @@
|
||||
.SYNOPSIS
|
||||
Turns the volume on
|
||||
.DESCRIPTION
|
||||
This script unmutes the audio output.
|
||||
This PowerShell script unmutes the audio output.
|
||||
.EXAMPLE
|
||||
PS> .\turn-volume-on.ps1
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
PS> .\turn-volume-on
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
Author: Markus Fleschutz / License: CC0
|
||||
#>
|
||||
|
||||
try {
|
||||
|
@ -1,16 +1,16 @@
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Turns the audio volume up (+10% by default)
|
||||
Turns the audio volume up
|
||||
.DESCRIPTION
|
||||
This script turns the audio volume up (by +10% by default)
|
||||
This PowerShell script turns the audio volume up (by +10% by default)
|
||||
.PARAMETER percent
|
||||
Specifies the percent number
|
||||
.EXAMPLE
|
||||
PS> ./turn-volume-up
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
Author: Markus Fleschutz / License: CC0
|
||||
#>
|
||||
|
||||
param([int]$percent = 10)
|
||||
|
@ -5,10 +5,10 @@
|
||||
This PowerShell script upgrades Ubuntu Linux to the latest (LTS) release.
|
||||
.EXAMPLE
|
||||
PS> .\upgrade-ubuntu.ps1
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
Author: Markus Fleschutz / License: CC0
|
||||
#>
|
||||
|
||||
try {
|
||||
|
@ -2,7 +2,7 @@
|
||||
.SYNOPSIS
|
||||
Uploads a local file to a FTP server
|
||||
.DESCRIPTION
|
||||
This script uploads a local file to a FTP server.
|
||||
This PowerShell script uploads a local file to a FTP server.
|
||||
.PARAMETER File
|
||||
Specifies the path to the local file
|
||||
.PARAMETER URL
|
||||
@ -13,10 +13,10 @@
|
||||
Specifies the password
|
||||
.EXAMPLE
|
||||
PS> .\upload-file.ps1
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
Author: Markus Fleschutz / License: CC0
|
||||
#>
|
||||
|
||||
param([string]$File = "", [string]$URL = "", [string]$Username = "", [string]$Password = "")
|
||||
|
@ -2,7 +2,7 @@
|
||||
.SYNOPSIS
|
||||
Sends a magic packet to a computer to wake him up
|
||||
.DESCRIPTION
|
||||
Sends a magic UDP packet twice to a computer to wake him up (requires Wake-On-LAN).
|
||||
This PowerShell script sends a magic UDP packet twice to a computer to wake him up (requires Wake-On-LAN).
|
||||
.PARAMETER MACaddress
|
||||
Specifies the host's MAC address (e.g. 11:22:33:44:55:66)
|
||||
.PARAMETER IPaddress
|
||||
@ -12,10 +12,10 @@
|
||||
.EXAMPLE
|
||||
PS> ./wakeup 11:22:33:44:55:66 192.168.100.100
|
||||
(PC wakes up)
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
Author: Markus Fleschutz / License: CC0
|
||||
#>
|
||||
|
||||
param([string]$MACaddress = "", [string]$IPaddress = "", [int]$Port=9)
|
||||
|
@ -2,21 +2,21 @@
|
||||
.SYNOPSIS
|
||||
Lists the local weather report
|
||||
.DESCRIPTION
|
||||
This script lists the local weather report.
|
||||
This PowerShell script lists the local weather report.
|
||||
.PARAMETER GeoLocation
|
||||
Specifies the geographic location to use (determine automatically by default)
|
||||
.EXAMPLE
|
||||
PS> ./weather-report Paris
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
Author: Markus Fleschutz / License: CC0
|
||||
#>
|
||||
|
||||
param([string]$GeoLocation = "") # empty means determine automatically
|
||||
|
||||
try {
|
||||
(invoke-webRequest http://v2d.wttr.in/$GeoLocation -userAgent "curl" -useBasicParsing).Content
|
||||
(Invoke-WebRequest http://v2d.wttr.in/$GeoLocation -userAgent "curl" -useBasicParsing).Content
|
||||
exit 0 # success
|
||||
} catch {
|
||||
"⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))"
|
||||
|
@ -2,15 +2,15 @@
|
||||
.SYNOPSIS
|
||||
Lists the current weather forecast
|
||||
.DESCRIPTION
|
||||
This script lists the current weather forecast.
|
||||
This PowerShell script lists the current weather forecast.
|
||||
.PARAMETER GeoLocation
|
||||
Specifies the geographic location to use
|
||||
.EXAMPLE
|
||||
PS> ./weather Paris
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
Author: Markus Fleschutz / License: CC0
|
||||
#>
|
||||
|
||||
param([string]$GeoLocation = "") # empty means determine automatically
|
||||
|
@ -2,15 +2,15 @@
|
||||
.SYNOPSIS
|
||||
Prints a description of an abbreviation
|
||||
.DESCRIPTION
|
||||
This script prints a description of the given abbreviation.
|
||||
This PowerShell script prints a description of the given abbreviation.
|
||||
.PARAMETER abbreviation
|
||||
Specifies the appreviation to look for
|
||||
.EXAMPLE
|
||||
PS> ./what-is IAS
|
||||
.NOTES
|
||||
Author: Markus Fleschutz / License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
Author: Markus Fleschutz / License: CC0
|
||||
#>
|
||||
|
||||
param([string]$abbreviation = "")
|
||||
|
@ -2,13 +2,13 @@
|
||||
.SYNOPSIS
|
||||
Writes animated text
|
||||
.DESCRIPTION
|
||||
This script writes animated text.
|
||||
This PowerShell script writes animated text.
|
||||
.EXAMPLE
|
||||
PS> ./write-animated "Hello World"
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
Author: Markus Fleschutz / License: CC0
|
||||
#>
|
||||
|
||||
param($Line1 = "", $Line2 = "", $Line3 = "", $Line4 = "", $Line5 = "", $Line6 = "", $Line7 = "", $Line8 = "", $Line9 = "", [int]$Speed = 30) # 30 ms pause
|
||||
|
@ -2,15 +2,15 @@
|
||||
.SYNOPSIS
|
||||
Writes text in big letters
|
||||
.DESCRIPTION
|
||||
This script writes the given text in big letters.
|
||||
This PowerShell script writes the given text in big letters.
|
||||
.PARAMETER text
|
||||
Specifies the text to write
|
||||
.EXAMPLE
|
||||
PS> ./write-big "Hello World"
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
Author: Markus Fleschutz / License: CC0
|
||||
#>
|
||||
|
||||
param([string]$text = "")
|
||||
|
@ -2,15 +2,15 @@
|
||||
.SYNOPSIS
|
||||
Writes text in a blue foreground color
|
||||
.DESCRIPTION
|
||||
This script writes text in a blue foreground color.
|
||||
This PowerShell script writes text in a blue foreground color.
|
||||
.PARAMETER text
|
||||
Specifies the text to write
|
||||
.EXAMPLE
|
||||
PS> ./write-blue "Hello World"
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
Author: Markus Fleschutz / License: CC0
|
||||
#>
|
||||
|
||||
param([string]$text = "")
|
||||
|
@ -2,13 +2,13 @@
|
||||
.SYNOPSIS
|
||||
Writes text in Braille
|
||||
.DESCRIPTION
|
||||
This script writes text in Braille.
|
||||
This PowerShell script writes text in Braille.
|
||||
.PARAMETER text
|
||||
Specifies the text to write
|
||||
.EXAMPLE
|
||||
PS> ./write-braille "Hello World"
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
Author: Markus Fleschutz / License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
#>
|
||||
|
@ -1,8 +1,8 @@
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Writes out calendar elements, either a single month or an entire year
|
||||
Writes out a calendar
|
||||
.DESCRIPTION
|
||||
write-calendar.ps1 [<Month>] [<Year>]
|
||||
Writes out calendar elements, either a single month or an entire year.
|
||||
.PARAMETER Month
|
||||
If specified, will limit output to a single month with this numeral value.
|
||||
.PARAMETER Year
|
||||
@ -20,7 +20,7 @@
|
||||
PS> ./write-calendar 7
|
||||
Outputs the calendar for July of this year.
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
Author: Markus Fleschutz / License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
#>
|
||||
|
@ -2,11 +2,11 @@
|
||||
.SYNOPSIS
|
||||
Writes a chart
|
||||
.DESCRIPTION
|
||||
This script writes a chart.
|
||||
This PowerShell script writes a chart.
|
||||
.EXAMPLE
|
||||
PS> ./write-chart
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
Author: Markus Fleschutz / License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
#>
|
||||
|
@ -2,13 +2,13 @@
|
||||
.SYNOPSIS
|
||||
Writes text in a green foreground color
|
||||
.DESCRIPTION
|
||||
This script writes text in a green foreground color.
|
||||
This PowerShell script writes text in a green foreground color.
|
||||
.PARAMETER text
|
||||
Specifies the text to write
|
||||
.EXAMPLE
|
||||
PS> ./write-green "Hello World"
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
Author: Markus Fleschutz / License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
#>
|
||||
|
@ -2,12 +2,12 @@
|
||||
.SYNOPSIS
|
||||
Writes a random Juck Norris joke to the console
|
||||
.DESCRIPTION
|
||||
This script writes a random Juck Norris joke to the console.
|
||||
This PowerShell script writes a random Juck Norris joke to the console.
|
||||
.EXAMPLE
|
||||
PS> ./write-joke
|
||||
When Chuck Norris does division, there are no remainders. 😂
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
Author: Markus Fleschutz / License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
#>
|
||||
|
@ -2,13 +2,13 @@
|
||||
.SYNOPSIS
|
||||
Writes text in lowercase letters
|
||||
.DESCRIPTION
|
||||
This script writes text in lowercase letters.
|
||||
This PowerShell script writes text in lowercase letters.
|
||||
.PARAMETER text
|
||||
Specifies the text to write
|
||||
.EXAMPLE
|
||||
PS> ./write-lowercase "Hello World"
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
Author: Markus Fleschutz / License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
#>
|
||||
|
@ -2,7 +2,7 @@
|
||||
.SYNOPSIS
|
||||
Writes text as marquee
|
||||
.DESCRIPTION
|
||||
This script writes text as marquee.
|
||||
This PowerShell script writes text as marquee.
|
||||
.PARAMETER text
|
||||
Specifies the text to write
|
||||
.PARAMETER speed
|
||||
@ -10,7 +10,7 @@
|
||||
.EXAMPLE
|
||||
PS> ./write-marquee "Hello World"
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
Author: Markus Fleschutz / License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
#>
|
||||
|
@ -2,7 +2,7 @@
|
||||
.SYNOPSIS
|
||||
Writes text in Morse code
|
||||
.DESCRIPTION
|
||||
This script writes text in Morse code.
|
||||
This PowerShell script writes text in Morse code.
|
||||
.PARAMETER text
|
||||
Specifies the text to write
|
||||
.PARAMETER speed
|
||||
@ -10,7 +10,7 @@
|
||||
.EXAMPLE
|
||||
PS> ./write-morse-code "Hello World"
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
Author: Markus Fleschutz / License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
#>
|
||||
|
@ -2,11 +2,11 @@
|
||||
.SYNOPSIS
|
||||
Writes the message of the day (MOTD)
|
||||
.DESCRIPTION
|
||||
This script writes the message of the day (MOTD).
|
||||
This PowerShell script writes the message of the day (MOTD).
|
||||
.EXAMPLE
|
||||
PS> ./write-motd
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
Author: Markus Fleschutz / License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
#>
|
||||
|
@ -2,11 +2,11 @@
|
||||
.SYNOPSIS
|
||||
Writes a random quote to the console
|
||||
.DESCRIPTION
|
||||
This script writes a random quote to the console.
|
||||
This PowerShell script writes a random quote to the console.
|
||||
.EXAMPLE
|
||||
PS> ./write-quote
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
Author: Markus Fleschutz / License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
#>
|
||||
|
@ -2,13 +2,13 @@
|
||||
.SYNOPSIS
|
||||
Writes text in a red foreground color
|
||||
.DESCRIPTION
|
||||
This script writes text in a red foreground color.
|
||||
This PowerShell script writes text in a red foreground color.
|
||||
.PARAMETER text
|
||||
Specifies the text to write
|
||||
.EXAMPLE
|
||||
PS> ./write-red "Hello World"
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
Author: Markus Fleschutz / License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
#>
|
||||
|
@ -2,13 +2,13 @@
|
||||
.SYNOPSIS
|
||||
Writes text encoded or decoded with ROT13
|
||||
.DESCRIPTION
|
||||
This script writes text encoded or decoded with ROT13.
|
||||
This PowerShell script writes text encoded or decoded with ROT13.
|
||||
.PARAMETER text
|
||||
Specifies the text to write
|
||||
.EXAMPLE
|
||||
PS> ./write-rot13 "Hello World"
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
Author: Markus Fleschutz / License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
#>
|
||||
|
@ -2,7 +2,7 @@
|
||||
.SYNOPSIS
|
||||
Writes text with the typewriter effect
|
||||
.DESCRIPTION
|
||||
This script writes text with the typewriter effect.
|
||||
This PowerShell script writes text with the typewriter effect.
|
||||
.PARAMETER text
|
||||
Specifies the text to write
|
||||
.PARAMETER speed
|
||||
@ -10,7 +10,7 @@
|
||||
.EXAMPLE
|
||||
PS> ./write-typewriter "Hello World"
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
Author: Markus Fleschutz / License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
#>
|
||||
|
@ -2,13 +2,13 @@
|
||||
.SYNOPSIS
|
||||
Writes text in uppercase letters
|
||||
.DESCRIPTION
|
||||
This script writes text in uppercase letters.
|
||||
This PowerShell script writes text in uppercase letters.
|
||||
.PARAMETER text
|
||||
Specifies the text to write
|
||||
.EXAMPLE
|
||||
PS> ./write-uppercase "Hello World"
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
Author: Markus Fleschutz / License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
#>
|
||||
|
@ -2,13 +2,13 @@
|
||||
.SYNOPSIS
|
||||
Writes text in vertical direction
|
||||
.DESCRIPTION
|
||||
This script writes text in vertical direction.
|
||||
This PowerShell script writes text in vertical direction.
|
||||
.PARAMETER text
|
||||
Specifies the text to write
|
||||
.EXAMPLE
|
||||
PS> ./write-vertical "Hello World"
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
Author: Markus Fleschutz / License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
#>
|
||||
|
Loading…
Reference in New Issue
Block a user