1
0
mirror of https://github.com/fleschutz/PowerShell.git synced 2025-06-27 23:42:00 +02:00

Changed encoding to UTF-8 with BOM

This commit is contained in:
Markus Fleschutz 2022-12-29 21:46:35 +01:00
parent f7d5d62a77
commit 79dadddfad
20 changed files with 48 additions and 48 deletions

@ -1,16 +1,16 @@
<# <#
.SYNOPSIS .SYNOPSIS
Convert-ImageToAscii Converts images to ASCII art
.DESCRIPTION .DESCRIPTION
Converts an image to ASCII art. This PowerShell script converts an image to ASCII art.
.EXAMPLE .EXAMPLE
Convert-ImageToAscii -InFile "C:\Folder\Image.jpg" -Width 32 -Height 32 Convert-ImageToAscii -InFile "C:\Folder\Image.jpg" -Width 32 -Height 32
.INPUTS .INPUTS
.OUTPUTS .OUTPUTS
.NOTES .NOTES
Author: Fxbyy Author: Fxbyy
.FUNCTIONALITY .FUNCTIONALITY
Converts an image to ASCII art. Converts an image to ASCII art.
#> #>
function Convert-ImageToAscii { function Convert-ImageToAscii {

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Installs Audacity Installs Audacity
.DESCRIPTION .DESCRIPTION

@ -1,6 +1,4 @@
# Copyright (c) Microsoft Corporation. <#
# Licensed under the MIT License.
<#
.Synopsis .Synopsis
Install PowerShell on Windows, Linux or macOS. Install PowerShell on Windows, Linux or macOS.
.DESCRIPTION .DESCRIPTION
@ -520,4 +518,5 @@ try {
[Net.ServicePointManager]::SecurityProtocol = $originalValue [Net.ServicePointManager]::SecurityProtocol = $originalValue
Remove-Item -Path $tempDir -Recurse -Force -ErrorAction SilentlyContinue Remove-Item -Path $tempDir -Recurse -Force -ErrorAction SilentlyContinue
exit 0 # success
} }

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Installs Thunderbird Installs Thunderbird
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Installs Twitter Installs Twitter
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Installs Visual Studio Code Installs Visual Studio Code
.DESCRIPTION .DESCRIPTION

@ -69,6 +69,6 @@ try {
List-Pi $Digits List-Pi $Digits
exit 0 # success exit 0 # success
} catch { } catch {
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
exit 1 exit 1
} }

@ -23,8 +23,8 @@
param([string]$CommitID = "", [string]$CommitMessage = "", [string]$Branches = "", [string]$RepoDir = "$PWD") param([string]$CommitID = "", [string]$CommitMessage = "", [string]$Branches = "", [string]$RepoDir = "$PWD")
try { try {
if (-not(test-path "$RepoDir" -pathType container)) { throw "Can't access directory: $RepoDir" } if (-not(Test-Path "$RepoDir" -pathType container)) { throw "Can't access directory: $RepoDir" }
set-location "$RepoDir" Set-Location "$RepoDir"
if ($CommitID -eq "") { $CommitID = read-host "Enter the Git commit id to cherry-pick" } if ($CommitID -eq "") { $CommitID = read-host "Enter the Git commit id to cherry-pick" }
if ($CommitMessage -eq "") { $CommitMessage = read-host "Enter the commit message to use" } if ($CommitMessage -eq "") { $CommitMessage = read-host "Enter the commit message to use" }

@ -1,12 +1,12 @@
<# <#
.SYNOPSIS .SYNOPSIS
Plays the Happy Birthday song Plays the Happy Birthday song
.DESCRIPTION .DESCRIPTION
This PowerShell script plays the famous Happy Birthday song. This PowerShell script plays the famous Happy Birthday song.
.EXAMPLE .EXAMPLE
PS> ./play-happy-birthday PS> ./play-happy-birthday
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
Author: Markus Fleschutz | License: CC0 Author: Markus Fleschutz | License: CC0
#> #>

@ -1,12 +1,12 @@
<# <#
.SYNOPSIS .SYNOPSIS
Plays the Tetris melody Plays the Tetris melody
.DESCRIPTION .DESCRIPTION
This PowerShell script plays the Tetris melody. This PowerShell script plays the Tetris melody.
.EXAMPLE .EXAMPLE
PS> ./play-tetris-melody PS> ./play-tetris-melody
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
Author: Markus Fleschutz | License: CC0 Author: Markus Fleschutz | License: CC0
#> #>

@ -1,14 +1,14 @@
<# <#
.SYNOPSIS .SYNOPSIS
Shows a notification Shows a notification
.DESCRIPTION .DESCRIPTION
This PowerShell script shows a toast-message notification for the Windows 10 Notification Center. This PowerShell script shows a toast-message notification for the Windows 10 Notification Center.
.EXAMPLE .EXAMPLE
PS> ./show-notification "Hello World" PS> ./show-notification "Hello World"
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
Author: Markus Fleschutz | License: CC0 Author: Markus Fleschutz | License: CC0
#> #>
param([string]$Text = "Hello World", [string]$Title = "NOTE", [int]$Duration = 5000) param([string]$Text = "Hello World", [string]$Title = "NOTE", [int]$Duration = 5000)

@ -1,6 +1,6 @@
<# <#
.SYNOPSIS .SYNOPSIS
Speaks the content of the given Epub file by text-to-speech (TTS). Speaks an Epub file by text-to-speech (TTS).
.DESCRIPTION .DESCRIPTION
This PowerShell 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 .PARAMETER Filename
@ -55,7 +55,7 @@ function UnzipFile() { param([string]$file, [string]$dest)
} }
if ($Filename -eq "") { if ($Filename -eq "") {
$Filename = read-host "Enter path to .epub file" $Filename = Read-Host "Enter path to .epub file"
} }
write-output "Reading $Filename ..." write-output "Reading $Filename ..."
$file = get-item $Filename $file = get-item $Filename
@ -94,3 +94,4 @@ foreach($item in $content.package.manifest.Item) {
} }
} }
} }
exit 0 # success

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Turns audio volume fully up Turns audio volume fully up
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Uninstalls VLC Uninstalls VLC
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Uninstalls Windows Terminal Uninstalls Windows Terminal
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Uploads a file to Dropbox Uploads a file to Dropbox
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Writes a fractal Writes a fractal
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Writes the matrix Writes the matrix
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Write sine curves Write sine curves
.DESCRIPTION .DESCRIPTION