Skip to content

Instantly share code, notes, and snippets.

View richardDobron's full-sized avatar
💭
🔥 making stuff faster

Richard Dobroň richardDobron

💭
🔥 making stuff faster
View GitHub Profile
@simoneb
simoneb / parser.cs
Last active January 7, 2020 07:34
Simple dynamic command line arguments parser
class Options : DynamicObject
{
readonly IDictionary<string, object> inner = new ExpandoObject();
public override bool TryGetMember(GetMemberBinder binder, out object result)
{
if (!inner.TryGetValue(binder.Name, out result))
result = false;
else
result = result != null ? new OptionValue(result.ToString()) : (dynamic)true;
@sandeeptalabathula
sandeeptalabathula / Program.cs
Last active October 14, 2022 15:06
Determine Whether Two Date Ranges Overlap Tests
namespace ConsoleApplication
{
using System;
class Program
{
/// <param name="args"></param>
static void Main(string[] args)
{
bool isoverlap;
@dodbrian
dodbrian / Hyper-V Installer.bat
Created May 20, 2019 18:29
Install Hyper-V on Windows 10 Home
@echo off
echo Checking for permissions
>nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system"
echo Permission check result: %errorlevel%
REM --> If error flag set, we do not have admin.
if '%errorlevel%' NEQ '0' (
echo Requesting administrative privileges...
@talon
talon / README.md
Last active June 11, 2021 10:35
Install Docker On Windows 10 Home

Install Docker On Windows 10 Home

"Windows Home Docker Desktop requires Windows 10 Pro or Enterprise version 15063 to run." So says the Docker Installer however, the Docker forums beg to differ

The workaround is to manually image the Hyper-V and Containers features, then trick the installer into thinking you're using Windows Pro.

TL;DR

  1. clone this gist somewhere locally git clone https://gist.github.com/4191def376c9fecae78815454bfe661c.git windows_home_docker
  2. Run windows_home_containers.ps1 in an Administrative Powershell

Docker Windows 10 Home Edition installation

Installation Failed: one prerequisite is not fulfilled

Docker Desktop requires Windows 10 Pro or Enterprise version 15063 to run.

The reason why Docker needs Windows Pro or Enterprise is that they are using Hyper-V and Containers. Let’s install these.

SOLUTION:

Install Hyper-V and Containers