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
AWS_ACCESS_KEY_ID= | |
AWS_SECRET_ACCESS_KEY= | |
AWS_HOSTED_ZONE_ID= |
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
$dashboard = New-UDDashboard -Title "PowerShell Universal Dashboard" -Content { | |
New-UDRow -Columns { | |
New-UDColumn -Size 1 { | |
New-UDElement -Tag "input" -Attributes @{ | |
type = "button" | |
value = "Click me!" | |
onClick = { | |
$Element = Get-UDElement -Id "textbox" | |
if ($Element.Content[0] -eq "Wax on") { | |
Set-UDElement -Id "textbox" -Content { |
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
<# | |
.SYNOPSIS | |
Listens to and read data from a serial port (e.g. COM port) | |
.DESCRIPTION | |
The purpose of this script is to keep listening and read data from a serial port. | |
All the data captured will be displayed and log into a file. | |
.EXAMPLE | |
./SerialPortReader.ps1 | |
.EXAMPLE | |
./SerialPortReader.ps1 -PortName COM3 -BaudRate 9600 |
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
# Load your target version of the assembly | |
$newtonsoft = [System.Reflection.Assembly]::LoadFrom("$PSScriptRoot\packages\Newtonsoft.Json.8.0.3\lib\net45\Newtonsoft.Json.dll") | |
$onAssemblyResolveEventHandler = [System.ResolveEventHandler] { | |
param($sender, $e) | |
# You can make this condition more or less version specific as suits your requirements | |
if ($e.Name.StartsWith("Newtonsoft.Json")) { | |
return $newtonsoft | |
} | |
foreach($assembly in [System.AppDomain]::CurrentDomain.GetAssemblies()) { | |
if ($assembly.FullName -eq $e.Name) { |