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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -105,4 +105,4 @@ $info = $info | ConvertTo-JSON
# Output
$info
exit 0 # success
exit 0 # success

View File

@ -23,8 +23,8 @@
param([string]$CommitID = "", [string]$CommitMessage = "", [string]$Branches = "", [string]$RepoDir = "$PWD")
try {
if (-not(test-path "$RepoDir" -pathType container)) { throw "Can't access directory: $RepoDir" }
set-location "$RepoDir"
if (-not(Test-Path "$RepoDir" -pathType container)) { throw "Can't access directory: $RepoDir" }
Set-Location "$RepoDir"
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" }
@ -78,4 +78,4 @@ try {
} catch {
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
exit 1
}
}

View File

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

View File

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

View File

@ -1,14 +1,14 @@
<#
.SYNOPSIS
Shows a notification
Shows a notification
.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
PS> ./show-notification "Hello World"
PS> ./show-notification "Hello World"
.LINK
https://github.com/fleschutz/PowerShell
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz | License: CC0
Author: Markus Fleschutz | License: CC0
#>
param([string]$Text = "Hello World", [string]$Title = "NOTE", [int]$Duration = 5000)
@ -27,4 +27,4 @@ try {
} catch {
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
exit 1
}
}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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