Skip to content

Instantly share code, notes, and snippets.

@odalet
odalet / sync_docker_time.ps1
Last active April 8, 2020 08:37 — forked from FilipChalupa/sync_docker_time.ps1
Synchronize your Docker date/time with the host clock - Mitigates https://github.com/docker/for-win/issues/4526
# NB: "Time Synchronization" is "Synchronisation date/heure" in French
$principal = New-Object Security.Principal.WindowsPrincipal([Security.Principal.WindowsIdentity]::GetCurrent())
if (-Not $principal.IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)) {
Write-Host "Elevated privileges are required."
Start-Process -FilePath "powershell" -ArgumentList "$('-File ""')$(Get-Location)$('\')$($MyInvocation.MyCommand.Name)$('""')" -Verb runAs
exit
}
Write-Host "--- Synchronizing your docker time ---"
@odalet
odalet / gist:d32560f89f0c1a5c9ad1
Created January 17, 2016 19:05 — forked from lontivero/gist:593fc51f1208555112e0
Generates Markdown from VS XML documentation file
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text.RegularExpressions;
using System.Xml;
using System.Xml.Linq;
namespace GithubWikiDoc
{