This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Sets the title of a window when running in mac terminal | |
Function Set-WindowTitle { | |
param($in) | |
write-host "`e]1;$in`a" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Function Convert-Base64 { | |
param([string]$instring) | |
# Convert string to byte array | |
$bytes = [System.Text.Encoding]::UTF8.GetBytes($instring) | |
# Convert byte array to Base64 string | |
$base64String = [System.Convert]::ToBase64String($bytes) | |
# Output the Base64 string |
OlderNewer