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 class HourBookingDialog : AuthenticatedDialog | |
{ | |
private readonly string _propNameModel = "HourBookingModel"; | |
private readonly string _propNameCustomers = "Customers"; | |
private readonly string _propNameProjects = "Projects"; | |
public HourBookingDialog(IConfiguration configuration) : base (nameof(HourBookingDialog), configuration["ConnectionName"]) | |
{ | |
var waterFallSteps = new WaterfallStep[] | |
{ |
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
#Libraries | |
import sys | |
import RPi.GPIO as GPIO # Importeer de GPIO bibliotheek. | |
from time import sleep ## Importeer de bibliotheek voor tijdfuncties | |
seconds = 5 | |
# Set the number of seconds to the provided argument | |
if len(sys.argv) > 2: | |
seconds = sys.argv[2] |
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 Remove-LoadBalancerDebuggerNatPools | |
{ | |
param( | |
[string]$ResourceGroupName, | |
[string]$LoadBalancerName | |
) | |
Write-Information "Removing NAT pools with 'debugger' in the name from load balancer $LoadBalancerName" | |
$loadBalancer = Get-AzureRmLoadBalancer -Name $LoadBalancerName -ResourceGroupName $resourceGroupName | |
$pools = $loadBalancer.InboundNatPools | Where-Object { $_.Name -match "debugger" } |
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 Remove-VMScaleSetDebuggerNatPools { | |
param ( | |
[string]$ResourceGroupName, | |
[string]$VMScaleSetName | |
) | |
Write-Information "Removing NAT pools with 'debugger' in the name from VM scale set $VMScaleSetName" | |
$vmScaleSet = Get-AzureRmVmss -ResourceGroupName $ResourceGroupName -VMScaleSetName $VMScaleSetName | |
$natPools = $vmScaleSet.VirtualMachineProfile.NetworkProfile.NetworkInterfaceConfigurations.ipConfigurations.LoadBalancerInboundNatPools | |
$debugPools = $natPools | Where-Object { $_.Id -match "Debugger" } |
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
param | |
( | |
[Parameter(Mandatory=$true, HelpMessage="Enter Azure Subscription id. You need to be Subscription Admin to execute the script")] | |
[string] $subscriptionId, | |
[Parameter(Mandatory=$true, HelpMessage="Provide a password for SPN application that you would create")] | |
[securestring] $passwordparam, | |
[Parameter(Mandatory=$false, HelpMessage="Provide a SPN role definition")] | |
[string] $spnRole = "owner" |
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
Verifying that "jsiegmund.id" is my Blockstack ID. https://onename.com/jsiegmund |
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
#r "D:\Program Files (x86)\SiteExtensions\Functions\0.3.10261\bin\Microsoft.Azure.WebJobs.Extensions.NotificationHubs.dll" | |
using System; | |
using Newtonsoft.Json; | |
using Newtonsoft.Json.Linq; | |
using Microsoft.Azure.NotificationHubs; | |
using Microsoft.Azure.WebJobs; | |
using Microsoft.Azure.WebJobs.Extensions; | |
public static void Run(string inputEventMessage, string inputBlob, IBinder binder, out string outputBlob, TraceWriter log) |