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
@echo off | |
pushd "%~dp0" | |
set DistroType=debian | |
set DistroUrl=https://aka.ms/wsl-debian-gnulinux | |
echo This script will setup new %DistroType% distro. | |
set /p DistroName="Enter Distro Alias: " | |
set /p AccountId="Enter Account ID: " | |
choice /c YN /m "Press Y for set as default distro, N for not." |
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
FROM mcr.microsoft.com/windows:1903 AS build | |
WORKDIR C:\\odtsetup | |
ADD https://download.microsoft.com/download/2/7/A/27AF1BE6-DD20-4CB4-B154-EBAB8A7D4A7E/officedeploymenttool_11617-33601.exe odtsetup.exe | |
RUN odtsetup.exe /quiet /norestart /extract:C:\\odtsetup | |
FROM mcr.microsoft.com/windows:1903 AS download | |
WORKDIR C:\\odtsetup | |
COPY --from=build C:\\odtsetup\\setup.exe . |
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
apiVersion: v1 | |
kind: Pod | |
metadata: | |
name: iis-winsvrcore | |
spec: | |
containers: | |
- image: mcr.microsoft.com/windows/servercore/iis:windowsservercore-ltsc2016 | |
imagePullPolicy: Always | |
name: iis-winsvrcore | |
resources: |
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
apiVersion: apps/v1beta1 | |
kind: Deployment | |
metadata: | |
name: azure-vote-back | |
spec: | |
replicas: 1 | |
template: | |
metadata: | |
labels: | |
app: azure-vote-back |
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
apiVersion: v1 | |
kind: Pod | |
metadata: | |
labels: | |
name: iis | |
name: iis | |
namespace: default | |
spec: | |
containers: | |
- image: microsoft/iis:windowsservercore-1803 |
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
@echo off | |
pushd "%~dp0" | |
cls | |
echo This script allows you to run docker daemon. | |
echo. | |
net session >nul 2>&1 | |
if not %errorLevel% == 0 ( | |
echo To run this script, you must run it as a user with administrative privileges. |
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
@echo off | |
pushd "%~dp0" | |
cls | |
echo This script allows you to easily turn on or off Windows Hypervisor settings at once. This script is useful when you want to use Hyper-V or Docker for Windows with other hypervisors. | |
echo. | |
net session >nul 2>&1 | |
if not %errorLevel% == 0 ( | |
echo To run this script, you must run it as a user with administrative privileges. |
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
using OpenCvSharp; | |
using System; | |
using System.Collections.Generic; | |
using System.Diagnostics; | |
using System.IO; | |
using static OpenCvSharp.Cv2; | |
using static System.Math; | |
namespace ReceiptScannerCSharp | |
{ |
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
using TheCompany.Something.Api.Repositories; | |
using TheCompany.Something.Data; | |
using TheCompany.Something.Data.Models; | |
using Machine.Fakes; | |
using Machine.Specifications; | |
using Microsoft.EntityFrameworkCore; | |
using System; | |
using System.Threading; | |
using System.Threading.Tasks; |
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
<Query Kind="Program"> | |
<Connection> | |
<ID>bea78312-0e65-4c9e-8db4-e64dea24514e</ID> | |
<Persist>true</Persist> | |
<Server>(localdb)\hubk</Server> | |
<Database>PointSaving</Database> | |
<ShowServer>true</ShowServer> | |
</Connection> | |
<NuGetReference>Autofac.WebApi2</NuGetReference> | |
<NuGetReference>Microsoft.AspNet.WebApi.OwinSelfHost</NuGetReference> |