Skip to content

Instantly share code, notes, and snippets.

View trentsteenholdt-readify's full-sized avatar

trentsteenholdt-readify

View GitHub Profile
let
Source = Folder.Files("D:\Downloads")
in
Source
let
Source = SharePoint.Files("https://purple.sharepoint.com/sites/example/", [ApiVersion = 15]),
#"Filtered Rows" = Table.SelectRows(Source, each ([Folder Path] = "https://purple.sharepoint.com/sites/example/Shared Documents/AzMigrateData/")),
Navigation1 = #"Filtered Rows"{0}[Content]
in
Navigation1
<#
.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
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: >-
jobs:
- deployment: deployADPFoundation
displayName: Foundation Components
environment: ads-dev
pool:
vmImage: windows-latest
strategy:
runOnce:
deploy:
steps:
// 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";
public async Task<ActionResult> GetFromExternal(string url)
{
string urlDecode = Base64Decode(url);
var client = new HttpClient();
Task<string> getStringTask =
client.GetStringAsync(urlDecode);
string contents = urlDecode;
<#
.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.
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...");