mirror of
https://github.com/fleschutz/PowerShell.git
synced 2024-11-08 17:14:28 +01:00
Remove obsolete scripts
This commit is contained in:
parent
2e35a91d8c
commit
4cf81fb889
@ -1,15 +0,0 @@
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Changes to a beach wallpaper
|
||||
.DESCRIPTION
|
||||
This script downloads a random beach photo and sets it as desktop background.
|
||||
.EXAMPLE
|
||||
PS> ./change-to-beach-wallpaper
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
#>
|
||||
|
||||
& "$PSScriptRoot/change-wallpaper.ps1" -Category "beach"
|
||||
exit 0 # success
|
@ -1,15 +0,0 @@
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Changes to a car wallpaper
|
||||
.DESCRIPTION
|
||||
This script downloads a random car photo and sets it as desktop background.
|
||||
.EXAMPLE
|
||||
PS> ./change-to-car-wallpaper
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
#>
|
||||
|
||||
& "$PSScriptRoot/change-wallpaper.ps1" -Category "car"
|
||||
exit 0 # success
|
@ -1,15 +0,0 @@
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Changes to a city wallpaper
|
||||
.DESCRIPTION
|
||||
This script downloads a random city photo and sets it as desktop background.
|
||||
.EXAMPLE
|
||||
PS> ./change-to-city-wallpaper
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
#>
|
||||
|
||||
& "$PSScriptRoot/change-wallpaper.ps1" -Category "city"
|
||||
exit 0 # success
|
@ -1,15 +0,0 @@
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Changes to a nature wallpaper
|
||||
.DESCRIPTION
|
||||
This script downloads a random nature photo and sets it as desktop background.
|
||||
.EXAMPLE
|
||||
PS> ./change-to-nature-wallpaper
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
#>
|
||||
|
||||
& "$PSScriptRoot/change-wallpaper.ps1" -Category "nature"
|
||||
exit 0 # success
|
@ -1,15 +0,0 @@
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Changes to a plane wallpaper
|
||||
.DESCRIPTION
|
||||
This script downloads a random plane photo and sets it as desktop background.
|
||||
.EXAMPLE
|
||||
PS> ./change-to-plane-wallpaper
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
#>
|
||||
|
||||
& "$PSScriptRoot/change-wallpaper.ps1" -Category "plane"
|
||||
exit 0 # success
|
@ -1,15 +0,0 @@
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Changes to a space wallpaper
|
||||
.DESCRIPTION
|
||||
This script downloads a random space photo and sets it as desktop background.
|
||||
.EXAMPLE
|
||||
PS> ./change-to-space-wallpaper
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
#>
|
||||
|
||||
& "$PSScriptRoot/change-wallpaper.ps1" -Category "space"
|
||||
exit 0 # success
|
@ -1,22 +0,0 @@
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Checks the Bitcoin rate
|
||||
.DESCRIPTION
|
||||
This script queries the current Bitcoin exchange rates and answers by text-to-speech (TTS).
|
||||
.EXAMPLE
|
||||
PS> ./check-bitcoin-rate
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
#>
|
||||
|
||||
try {
|
||||
$Rates = (Invoke-WebRequest -uri "https://min-api.cryptocompare.com/data/price?fsym=BTC&tsyms=USD,EUR" -userAgent "curl" -useBasicParsing).Content | ConvertFrom-Json
|
||||
|
||||
& "$PSScriptRoot/give-reply.ps1" "Bitcoin is currently at $($Rates.USD) US$ and $($Rates.EUR) Euro."
|
||||
exit 0 # success
|
||||
} catch {
|
||||
"⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))"
|
||||
exit 1
|
||||
}
|
@ -1,22 +0,0 @@
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Checks the Ether rate
|
||||
.DESCRIPTION
|
||||
This script queries the current Ethereum exchange rates and answers by text-to-speech (TTS).
|
||||
.EXAMPLE
|
||||
PS> ./check-ether-rate
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
#>
|
||||
|
||||
try {
|
||||
$Rates = (Invoke-WebRequest -uri "https://min-api.cryptocompare.com/data/price?fsym=ETH&tsyms=USD,EUR" -userAgent "curl" -useBasicParsing).Content | ConvertFrom-Json
|
||||
|
||||
& "$PSScriptRoot/give-reply.ps1" "Ethereum is currently at $($Rates.USD) US$ and $($Rates.EUR) Euro."
|
||||
exit 0 # success
|
||||
} catch {
|
||||
"⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))"
|
||||
exit 1
|
||||
}
|
@ -1,22 +0,0 @@
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Checks the Tether rate
|
||||
.DESCRIPTION
|
||||
This script queries the current Tether exchange rates and answers by text-to-speech (TTS).
|
||||
.EXAMPLE
|
||||
PS> ./check-tether-rate
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
#>
|
||||
|
||||
try {
|
||||
$Rates = (Invoke-WebRequest -uri "https://min-api.cryptocompare.com/data/price?fsym=USDT&tsyms=USD,EUR" -userAgent "curl" -useBasicParsing).Content | ConvertFrom-Json
|
||||
|
||||
& "$PSScriptRoot/give-reply.ps1" "Tether is currently at $($Rates.USD) US$ and $($Rates.EUR) Euro."
|
||||
exit 0 # success
|
||||
} catch {
|
||||
"⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))"
|
||||
exit 1
|
||||
}
|
@ -1,15 +0,0 @@
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Closes the System Settings window
|
||||
.DESCRIPTION
|
||||
This script closes the System Settings window gracefully.
|
||||
.EXAMPLE
|
||||
PS> ./close-system-settings
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
#>
|
||||
|
||||
& "$PSScriptRoot/close-program.ps1" "System Settings" "SystemSettings" "SystemSettings"
|
||||
exit 0 # success
|
@ -1,15 +0,0 @@
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Opens Windows activation settings
|
||||
.DESCRIPTION
|
||||
This script launches the Windows activation settings.
|
||||
.EXAMPLE
|
||||
PS> ./open-activation-settings
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
#>
|
||||
|
||||
Start-Process ms-settings:activation
|
||||
exit 0 # success
|
@ -1,15 +0,0 @@
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Opens Windows apps settings
|
||||
.DESCRIPTION
|
||||
This script launches the Windows aps settings.
|
||||
.EXAMPLE
|
||||
PS> ./open-apps-settings
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
#>
|
||||
|
||||
Start-Process ms-settings:appsfeatures
|
||||
exit 0 # success
|
@ -1,15 +0,0 @@
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Opens Windows background settings
|
||||
.DESCRIPTION
|
||||
This script launches the Windows background settings.
|
||||
.EXAMPLE
|
||||
PS> ./open-background-settings
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
#>
|
||||
|
||||
Start-Process ms-settings:personalization-background
|
||||
exit 0 # success
|
@ -1,15 +0,0 @@
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Opens Windows backup settings
|
||||
.DESCRIPTION
|
||||
This script launches the Windows backup settings.
|
||||
.EXAMPLE
|
||||
PS> ./open-backup-settings
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
#>
|
||||
|
||||
Start-Process ms-settings:backup
|
||||
exit 0 # success
|
@ -1,15 +0,0 @@
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Opens Windows Bluetooth settings
|
||||
.DESCRIPTION
|
||||
This script launches the Windows Bluetooth settings application.
|
||||
.EXAMPLE
|
||||
PS> ./open-bluetooth-settings
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
#>
|
||||
|
||||
Start-Process ms-settings:bluetooth
|
||||
exit 0 # success
|
@ -1,15 +0,0 @@
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Opens Windows color settings
|
||||
.DESCRIPTION
|
||||
This script launches the Windows color settings.
|
||||
.EXAMPLE
|
||||
PS> ./open-color-settings
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
#>
|
||||
|
||||
Start-Process ms-settings:colors
|
||||
exit 0 # success
|
@ -1,15 +0,0 @@
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Opens Windows date & time settings
|
||||
.DESCRIPTION
|
||||
This script launches the Windows date & time settings.
|
||||
.EXAMPLE
|
||||
PS> ./open-date-settings
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
#>
|
||||
|
||||
Start-Process ms-settings:dateandtime
|
||||
exit 0 # success
|
@ -1,15 +0,0 @@
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Opens Windows default apps settings
|
||||
.DESCRIPTION
|
||||
This script launches the Windows default apps settings.
|
||||
.EXAMPLE
|
||||
PS> ./open-default-apps-settings
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
#>
|
||||
|
||||
Start-Process ms-settings:defaultapps
|
||||
exit 0 # success
|
@ -1,15 +0,0 @@
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Opens Windows developer settings
|
||||
.DESCRIPTION
|
||||
This script launches the Windows developer settings.
|
||||
.EXAMPLE
|
||||
PS> ./open-developer-settings
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
#>
|
||||
|
||||
Start-Process ms-settings:developers
|
||||
exit 0 # success
|
@ -1,15 +0,0 @@
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Opens Windows display settings
|
||||
.DESCRIPTION
|
||||
This script launches the Windows display settings application.
|
||||
.EXAMPLE
|
||||
PS> ./open-display-settings
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
#>
|
||||
|
||||
Start-Process ms-settings:display
|
||||
exit 0 # success
|
@ -1,15 +0,0 @@
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Opens Windows Ethernet settings
|
||||
.DESCRIPTION
|
||||
This script launches the Windows Ethernet settings.
|
||||
.EXAMPLE
|
||||
PS> ./open-ethernet-settings
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
#>
|
||||
|
||||
Start-Process ms-settings:network-ethernet
|
||||
exit 0 # success
|
@ -1,15 +0,0 @@
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Opens Windows lockscreen settings
|
||||
.DESCRIPTION
|
||||
This script launches the Windows lockscreen settings application.
|
||||
.EXAMPLE
|
||||
PS> ./open-lockscreen-settings
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
#>
|
||||
|
||||
Start-Process ms-settings:lockscreen
|
||||
exit 0 # success
|
@ -1,15 +0,0 @@
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Opens Windows maps settings
|
||||
.DESCRIPTION
|
||||
This script launches the Windows maps settings.
|
||||
.EXAMPLE
|
||||
PS> ./open-maps-settings
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
#>
|
||||
|
||||
Start-Process ms-settings:maps
|
||||
exit 0 # success
|
@ -1,15 +0,0 @@
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Opens Windows printer settings
|
||||
.DESCRIPTION
|
||||
This script launches the Windows printer settings.
|
||||
.EXAMPLE
|
||||
PS> ./open-printer-settings
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
#>
|
||||
|
||||
Start-Process ms-settings:printers
|
||||
exit 0 # success
|
@ -1,15 +0,0 @@
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Opens Windows proxy settings
|
||||
.DESCRIPTION
|
||||
This script launches the Windows proxy settings.
|
||||
.EXAMPLE
|
||||
PS> ./open-proxy-settings
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
#>
|
||||
|
||||
Start-Process ms-settings:network-proxy
|
||||
exit 0 # success
|
@ -1,15 +0,0 @@
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Opens Windows recovery settings
|
||||
.DESCRIPTION
|
||||
This script launches the Windows recovery settings.
|
||||
.EXAMPLE
|
||||
PS> ./open-recovery-settings
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
#>
|
||||
|
||||
Start-Process ms-settings:recovery
|
||||
exit 0 # success
|
@ -1,15 +0,0 @@
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Opens Windows speech settings
|
||||
.DESCRIPTION
|
||||
This script launches the Windows speech settings application.
|
||||
.EXAMPLE
|
||||
PS> ./open-speech-settings
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
#>
|
||||
|
||||
Start-Process ms-settings:speech
|
||||
exit 0 # success
|
@ -1,15 +0,0 @@
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Opens Windows start settings
|
||||
.DESCRIPTION
|
||||
This script launches the Windows start settings.
|
||||
.EXAMPLE
|
||||
PS> ./open-start-settings
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
#>
|
||||
|
||||
Start-Process ms-settings:personalization-start
|
||||
exit 0 # success
|
@ -1,15 +0,0 @@
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Opens Windows system settings
|
||||
.DESCRIPTION
|
||||
This script launches the Windows system settings application.
|
||||
.EXAMPLE
|
||||
PS> ./open-system-settings
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
#>
|
||||
|
||||
Start-Process ms-settings:
|
||||
exit 0 # success
|
@ -1,15 +0,0 @@
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Opens the Windows taskbar settings
|
||||
.DESCRIPTION
|
||||
This script launches the Windows taskbar settings application.
|
||||
.EXAMPLE
|
||||
PS> ./open-task-bar-settings
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
#>
|
||||
|
||||
Start-Process ms-settings:taskbar
|
||||
exit 0 # success
|
@ -1,15 +0,0 @@
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Opens Windows themes settings
|
||||
.DESCRIPTION
|
||||
This script launches the Windows themes settings.
|
||||
.EXAMPLE
|
||||
PS> ./open-themes-settings
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
#>
|
||||
|
||||
Start-Process ms-settings:themes
|
||||
exit 0 # success
|
@ -1,15 +0,0 @@
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Opens Windows date & time settings
|
||||
.DESCRIPTION
|
||||
This script launches the Windows date & time settings.
|
||||
.EXAMPLE
|
||||
PS> ./open-time-settings
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
#>
|
||||
|
||||
Start-Process ms-settings:dateandtime
|
||||
exit 0 # success
|
@ -1,15 +0,0 @@
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Opens Windows Update settings
|
||||
.DESCRIPTION
|
||||
This script launches the Windows Update settings.
|
||||
.EXAMPLE
|
||||
PS> ./open-update-settings
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
#>
|
||||
|
||||
Start-Process ms-settings:windowsupdate
|
||||
exit 0 # success
|
@ -1,15 +0,0 @@
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Opens Windows USB settings
|
||||
.DESCRIPTION
|
||||
This script launches the Windows USB settings application.
|
||||
.EXAMPLE
|
||||
PS> ./open-usb-settings
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
#>
|
||||
|
||||
Start-Process ms-settings:usb
|
||||
exit 0 # success
|
@ -1,15 +0,0 @@
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Opens Windows VPN settings
|
||||
.DESCRIPTION
|
||||
This script launches the Windows VPN (virtual private network) settings.
|
||||
.EXAMPLE
|
||||
PS> ./open-vpn-settings
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
#>
|
||||
|
||||
Start-Process ms-settings:network-vpn
|
||||
exit 0 # success
|
@ -1,15 +0,0 @@
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Opens Windows WLAN settings
|
||||
.DESCRIPTION
|
||||
This script launches the Windows WLAN settings application.
|
||||
.EXAMPLE
|
||||
PS> ./open-wifi-settings
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
#>
|
||||
|
||||
Start-Process ms-settings:network-wifi
|
||||
exit 0 # success
|
@ -1,15 +0,0 @@
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Shows the Bitcoin rate
|
||||
.DESCRIPTION
|
||||
This script launches the Web browser and shows the Bitcoin rate.
|
||||
.EXAMPLE
|
||||
PS> ./show-bitcoin-rate
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
#>
|
||||
|
||||
& "$PSScriptRoot/open-default-browser.ps1" "https://www.bitstamp.net/markets/btc/usd/"
|
||||
exit 0 # success
|
@ -1,15 +0,0 @@
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Shows the British Pound rate
|
||||
.DESCRIPTION
|
||||
This script launches the Web browser and shows the British Pound (GBP) rate.
|
||||
.EXAMPLE
|
||||
PS> ./show-british-pound-rate
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
#>
|
||||
|
||||
& "$PSScriptRoot/open-default-browser.ps1" "https://www.bitstamp.net/markets/gbp/usd/"
|
||||
exit 0 # success
|
@ -1,15 +0,0 @@
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Shows the Ether rate
|
||||
.DESCRIPTION
|
||||
This script launches the Web browser and shows the Ether rate.
|
||||
.EXAMPLE
|
||||
PS> ./show-ether-rate
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
#>
|
||||
|
||||
& "$PSScriptRoot/open-default-browser.ps1" "https://www.bitstamp.net/markets/eth/usd/"
|
||||
exit 0 # success
|
@ -1,15 +0,0 @@
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Shows the Euro rate
|
||||
.DESCRIPTION
|
||||
This script launches the Web browser and shows the Euro (EUR/€) rate.
|
||||
.EXAMPLE
|
||||
PS> ./show-euro-rate
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
#>
|
||||
|
||||
& "$PSScriptRoot/open-default-browser.ps1" "https://www.bitstamp.net/markets/eur/usd/"
|
||||
exit 0 # success
|
@ -1,15 +0,0 @@
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Shows the Tether rate
|
||||
.DESCRIPTION
|
||||
This script launches the Web browser and shows the Tether rate.
|
||||
.EXAMPLE
|
||||
PS> ./show-tether-rate
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
#>
|
||||
|
||||
& "$PSScriptRoot/open-default-browser.ps1" "https://www.bitstamp.net/markets/usdt/usd/"
|
||||
exit 0 # success
|
@ -1,15 +0,0 @@
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Shows the US$ rate
|
||||
.DESCRIPTION
|
||||
This script launches the Web browser and shows the US Dollar (USD/US$) rate.
|
||||
.EXAMPLE
|
||||
PS> ./show-us-dollar-rate
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
#>
|
||||
|
||||
& "$PSScriptRoot/open-default-browser.ps1" "https://www.bitstamp.net/markets/eur/usd"
|
||||
exit 0 # success
|
@ -1,22 +0,0 @@
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Turns the volume off
|
||||
.DESCRIPTION
|
||||
This script mutes the default audio device immediately.
|
||||
.EXAMPLE
|
||||
PS> ./shut-up
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
#>
|
||||
|
||||
try {
|
||||
$obj = new-object -com wscript.shell
|
||||
$obj.SendKeys([char]173)
|
||||
& "$PSScriptRoot/give-reply.ps1" "Audio is off."
|
||||
exit 0 # success
|
||||
} catch {
|
||||
"⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))"
|
||||
exit 1
|
||||
}
|
@ -1,17 +0,0 @@
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Replies to "Sorry"
|
||||
.DESCRIPTION
|
||||
This script replies to 'Sorry' by text-to-speech (TTS).
|
||||
.EXAMPLE
|
||||
PS> ./sorry
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
#>
|
||||
|
||||
$Reply = "Never mind." | Get-Random
|
||||
|
||||
& "$PSScriptRoot/give-reply.ps1" "$Reply"
|
||||
exit 0 # success
|
@ -1,17 +0,0 @@
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Replies to 'thank you'
|
||||
.DESCRIPTION
|
||||
This script replies to 'thank you' by text-to-speech (TTS).
|
||||
.EXAMPLE
|
||||
PS> ./thank-you
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
#>
|
||||
|
||||
$Reply = "You're welcome.", "You're very welcome.", "That's all right.", "No problem.", "No worries.", "Don't mention it.", "It's my pleasure.", "My pleasure.", "Pleasure is mine.", "Glad to help.", "Anytime." | Get-Random
|
||||
|
||||
& "$PSScriptRoot/give-reply.ps1" "$Reply"
|
||||
exit 0 # success
|
Loading…
Reference in New Issue
Block a user