Skip to content

Instantly share code, notes, and snippets.

@yaron-idan
yaron-idan / README.md
Last active October 16, 2019 20:22
Reproducing Azure Python sdk error

Create a resource group (if there isn't one already -

az group create -l westus -n PythonSDKTest

Create storage account -

az storage account create -n pythonsdktestsa -g PythonSDKTest -l westus --sku Standard_LRS

Create container -

az storage container create -n pythonsdkcontainer --account-name pythonsdktestsa --account-key <REDACTED>

Create nic -

az network nic create \
	--resource-group PythonSDKTest \
@yaron-idan
yaron-idan / Dockerfile
Created May 6, 2019 21:23
dotnet core dockerfile
FROM microsoft/dotnet:2.1-aspnetcore-runtime AS base
WORKDIR /app
EXPOSE 80
EXPOSE 443
EXPOSE 5000
FROM microsoft/dotnet:2.1-sdk AS build
WORKDIR /src
COPY ["TestAPI.csproj", "."]
@yaron-idan
yaron-idan / bot.js
Created August 11, 2019 11:41
Botkit-mock tests for dialog
// __ __ ___ ___
// |__) / \ | |__/ | |
// |__) \__/ | | \ | |
// This is the main file for the botium bot.
// Import Botkit's core features
const { Botkit, BotkitConversation } = require('botkit');
const { BotkitCMSHelper } = require('botkit-plugin-cms');
@yaron-idan
yaron-idan / bot.js
Created September 9, 2019 08:40
Botkit Duplicate messages
// __ __ ___ ___
// |__) / \ | |__/ | |
// |__) \__/ | | \ | |
// This is the main file for the mock-bot bot.
// Import Botkit's core features
const { Botkit, BotkitConversation } = require('botkit');
const { BotkitCMSHelper } = require('botkit-plugin-cms');
function passwordCriteria(password) {
isValidPassword = true;
// if (Math.ceil(Math.log(password + 1) / Math.LN10) != 6){
// console.log("password is not 6 digits - "+password.length)
// isValidPassword = false;
// }
if (isValidPassword && !isAdjacentPairNew(password)){
isValidPassword = false;