Updated the header

This commit is contained in:
Markus Fleschutz 2020-06-15 14:55:54 +02:00
parent 36b82583d7
commit 9e9428f76f
12 changed files with 58 additions and 69 deletions

View File

@ -1,10 +1,10 @@
#!/snap/bin/powershell #!/snap/bin/powershell
# #
# PowerShell Script to Calculate SHA256 Hashes for Files # Description: prints the SHA256 checksum of the given file
# ------------------------------------------------------
# Author: Markus Fleschutz # Author: Markus Fleschutz
# Source: github.com/fleschutz/PowerShell # Source: github.com/fleschutz/PowerShell
# License: CC0 # License: CC0
#
param( param(
[string]$File) [string]$File)

View File

@ -1,7 +1,10 @@
#!/snap/bin/powershell #!/snap/bin/powershell
# #
# Description: initializes Git
# Author: Markus Fleschutz
# Source: github.com/fleschutz/PowerShell
# License: CC0
#
$UserName = read-host "Your full name: " $UserName = read-host "Your full name: "
$UserEmail = read-host "Your email address: " $UserEmail = read-host "Your email address: "
$UserEditor = read-host "Your favorite editor (nano, vi, emacs): " $UserEditor = read-host "Your favorite editor (nano, vi, emacs): "

View File

@ -1,11 +1,10 @@
#!/snap/bin/powershell #!/snap/bin/powershell
# #
# PowerShell Script to Create a New Password # Description: generates and prints a single new password
# ------------------------------------------
# Author: Markus Fleschutz # Author: Markus Fleschutz
# Source: github.com/fleschutz/PowerShell # Source: github.com/fleschutz/PowerShell
# License: CC0 # License: CC0
#
$CharsPerPassword = 15 $CharsPerPassword = 15
$MinCharCode = 33 $MinCharCode = 33
$MaxCharCode = 126 $MaxCharCode = 126

View File

@ -1,11 +1,10 @@
#!/snap/bin/powershell #!/snap/bin/powershell
# #
# PowerShell Script to Create New Passwords # Description: generates and prints a list of new passwords
# -----------------------------------------
# Author: Markus Fleschutz # Author: Markus Fleschutz
# Source: github.com/fleschutz/PowerShell # Source: github.com/fleschutz/PowerShell
# License: CC0 # License: CC0
#
$NumPasswords = 20 $NumPasswords = 20
$CharsPerPassword = 15 $CharsPerPassword = 15
$MinCharCode = 33 $MinCharCode = 33

View File

@ -1,12 +1,9 @@
#!/snap/bin/powershell #!/snap/bin/powershell
# #
# PowerShell Script to Shutdown the Local Computer # Description: halts the local computer (administrator rights might be needed)
# ------------------------------------------------
# Author: Markus Fleschutz # Author: Markus Fleschutz
# Source: github.com/fleschutz/PowerShell # Source: github.com/fleschutz/PowerShell
# License: CC0 # License: CC0
# #
# NOTE: Halts the local computer! Administrator rights might be needed!
Stop-Computer Stop-Computer
exit 0 exit 0

View File

@ -1,12 +1,9 @@
#!/snap/bin/powershell #!/snap/bin/powershell
# #
# PowerShell Script to Reboot the Local Computer # Description: reboots the local computer (administrator rights might be needed)
# ----------------------------------------------
# Author: Markus Fleschutz # Author: Markus Fleschutz
# Source: github.com/fleschutz/PowerShell # Source: github.com/fleschutz/PowerShell
# License: CC0 # License: CC0
# #
# NOTE: Reboots the local computer! Administrator rights might be needed.
Restart-Computer Restart-Computer
exit 0 exit 0

View File

@ -1,11 +1,10 @@
#!/snap/bin/powershell #!/snap/bin/powershell
# #
# PowerShell Script for Text-To-Speech (TTS) # Description: speaks the given text
# ------------------------------------------
# Author: Markus Fleschutz # Author: Markus Fleschutz
# Source: github.com/fleschutz/PowerShell # Source: github.com/fleschutz/PowerShell
# License: CC0 # License: CC0
#
$Text = "Hello World!" $Text = "Hello World!"
$voice = New-Object ComObject SAPI.SPVoice $voice = New-Object ComObject SAPI.SPVoice

View File

@ -1,10 +1,9 @@
#!/snap/bin/powershell #!/snap/bin/powershell
# #
# PowerShell Script for Testing # Description: simple test script
# -----------------------------
# Author: Markus Fleschutz # Author: Markus Fleschutz
# Source: github.com/fleschutz/PowerShell # Source: github.com/fleschutz/PowerShell
# License: CC0 # License: CC0
#
write-output "PowerShell Works!" write-output "PowerShell Works!"
exit 0 exit 0

View File

@ -1,11 +1,10 @@
#!/snap/bin/powershell #!/snap/bin/powershell
# #
# PowerShell Script to Train the DNS Cache # Description: trains the DNS cache with frequently used domain names
# ----------------------------------------
# Author: Markus Fleschutz # Author: Markus Fleschutz
# Source: github.com/fleschutz/PowerShell # Source: github.com/fleschutz/PowerShell
# License: CC0 # License: CC0
#
$DomainTable = import-csv domain_table.csv $DomainTable = import-csv domain_table.csv
foreach($Row in $DomainTable) { foreach($Row in $DomainTable) {

View File

@ -1,11 +1,10 @@
#!/snap/bin/powershell #!/snap/bin/powershell
# #
# PowerShell Script for Translating Texts # Description: translates the given text
# ---------------------------------------
# Author: Markus Fleschutz # Author: Markus Fleschutz
# Source: github.com/fleschutz/PowerShell # Source: github.com/fleschutz/PowerShell
# License: CC0 # License: CC0
#
$SourceText = "Hello World!" $SourceText = "Hello World!"
$SourceLang = "en" $SourceLang = "en"
$TargetLanguages = "af","da","de","el","es","hr","it","ja","ko","pl","pt","nl","ru","tr","uk","vi" $TargetLanguages = "af","da","de","el","es","hr","it","ja","ko","pl","pt","nl","ru","tr","uk","vi"

View File

@ -1,11 +1,10 @@
#!/snap/bin/powershell #!/snap/bin/powershell
# #
# PowerShell Script to Convert Text to Audio WAV files # Description: converts the given text into an audio .WAV file
# ----------------------------------------------------
# Author: Markus Fleschutz # Author: Markus Fleschutz
# Source: github.com/fleschutz/PowerShell # Source: github.com/fleschutz/PowerShell
# License: CC0 # License: CC0
#
# Configuration: # Configuration:
$Text = "Hello, my name ist Bond, James Bond" $Text = "Hello, my name ist Bond, James Bond"
$Speed = -1 # -10 is slowest, 10 is fastest $Speed = -1 # -10 is slowest, 10 is fastest

View File

@ -1,11 +1,10 @@
#!/snap/bin/powershell #!/snap/bin/powershell
# #
# PowerShell Script to Wake-up Other Computers # Description: sends a magic packet to the given computer, waking him up
# --------------------------------------------
# Author: Markus Fleschutz # Author: Markus Fleschutz
# Source: github.com/fleschutz/PowerShell # Source: github.com/fleschutz/PowerShell
# License: CC0 # License: CC0
#
function Send-WOL function Send-WOL
{ {
<# <#