[Verifying my keyoxide cryptographic key: openpgp4fpr:22A87774A7342FE3DF25E15D08528E69B3B9CA3E]
This file contains 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
# Setup of variables: | |
# Update server and port to your local values | |
$server = "localhost" | |
$port = 8096 | |
$myinstall = (Invoke-WebRequest -UseBasicParsing http://$($server):$port/System/Info/Public).Content | ConvertFrom-Json | |
$latest = (Invoke-WebRequest -UseBasicParsing https://api.github.com/repos/jellyfin/jellyfin/releases/latest) | ConvertFrom-Json | |
if ( $myinstall.Version -eq $latest.name){ |
I hereby claim:
- I am cjerrington on github.
- I am cjerrington (https://keybase.io/cjerrington) on keybase.
- I have a public key ASCmzLyC__Ic3zd1WreR5woBrzm9zoTA6G4uoF8y3PbnKgo
To claim this, I am signing this object:
This file contains 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 Show-Console | |
{ | |
param ([Switch]$Show,[Switch]$Hide) | |
if (-not ("Console.Window" -as [type])) { | |
Add-Type -Name Window -Namespace Console -MemberDefinition ' | |
[DllImport("Kernel32.dll")] | |
public static extern IntPtr GetConsoleWindow(); | |
[DllImport("user32.dll")] |
This file contains 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
#Requires –Version 3 | |
# Set TLS support for Powershell and parse the JSON request | |
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 | |
$npp = Invoke-WebRequest -UseBasicParsing 'https://api.github.com/repos/notepad-plus-plus/notepad-plus-plus/releases/latest' | ConvertFrom-Json | |
# Get Hashes for Checksums | |
Invoke-WebRequest -UseBasicParsing $npp.assets[0].browser_download_url -OutFile $npp.assets[0].name | |
# Get the download URL from the JSON object per 32/64 bit |
OlderNewer