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
let | |
Source = Folder.Files("D:\Downloads") | |
in | |
Source |
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 | |
Downloads all Excel file assessments to a folder specified. | |
.DESCRIPTION | |
This script gets all current assessments in Azure Migrate and downloads them to a folder for easy viewing. | |
.PARAMETER AssessmentProjectName | |
Name of the Azure Migrate Assessment Project. Note this is not the name of the Azure Migrate Project itself! You need to pull this first. See https://docs.microsoft.com/en-us/rest/api/migrate/assessment/projects | |
.PARAMETER SubscriptionID |
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
steps: | |
- task: AzurePowerShell@5 | |
displayName: Run Identities deployment | |
inputs: | |
azureSubscription: ${{ parameters.adosServiceConnectionName }} | |
pwsh: true | |
azurePowerShellVersion: LatestVersion | |
ScriptType: FilePath | |
ScriptPath: $(Pipeline.Workspace)/infrastructure/scripts/Deploy-Identities.ps1 | |
ScriptArguments: >- |
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
jobs: | |
- deployment: deployADPFoundation | |
displayName: Foundation Components | |
environment: ads-dev | |
pool: | |
vmImage: windows-latest | |
strategy: | |
runOnce: | |
deploy: | |
steps: |
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
// Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification | |
// for details on configuring this project to bundle and minify static web assets. | |
// Write your JavaScript code. | |
$(".dropdown-menu a").on("click", function () { | |
$(".dropdown-toggle").html($(this).html()); | |
}); | |
var url1 = "http://iot1.leach.my.com.au"; | |
var url2 = "http://iot2.leach.my.com.au"; |
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
public async Task<ActionResult> GetFromExternal(string url) | |
{ | |
string urlDecode = Base64Decode(url); | |
var client = new HttpClient(); | |
Task<string> getStringTask = | |
client.GetStringAsync(urlDecode); | |
string contents = urlDecode; |
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 | |
Downloads BOM data and creates a JSON file. | |
.DESCRIPTION | |
This script creates a JSON file with irrigation timings to be invoked with another PowerShell script. | |
The script is designed to get the best irrigation timings based on the tempature in the last X days and some other factors like how often the irrigation would run per WaterCorp regulations. | |
.PARAMETER JSONFile | |
Specifies the file name. |
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
void publishAzuredata(char* event, unsigned int value){ | |
client.publish(event, value); | |
} | |
void subscibeAzuredata(char* event){ | |
client.subscribe(iothub_subscribe_endpoint); | |
} | |
void reconnect() { | |
while (!client.connected()) { | |
Serial.print("Attempting MQTT connection..."); |
NewerOlder