Skip to content

Instantly share code, notes, and snippets.

View surgicalcoder's full-sized avatar

surgicalcoder

  • United Kingdom
View GitHub Profile
@surgicalcoder
surgicalcoder / docker-for-windows.md
Created May 26, 2020 10:06 — forked from BretFisher/docker-for-windows.md
Getting a Shell in the Docker for Windows Moby VM

2018 Update: Easiest option is Justin's repo and image

Just run this from your CLI and it'll drop you in a container with full permissions on the Moby VM. Only works for Moby Linux VM (doesn't work for Windows Containers). Note this also works on Docker for Mac.

docker run -it --rm --privileged --pid=host justincormack/nsenter1

more info: https://github.com/justincormack/nsenter1

@surgicalcoder
surgicalcoder / Program.cs
Created December 25, 2015 21:03 — forked from DanielSWolf/Program.cs
Console progress bar. Code is under the MIT License: http://opensource.org/licenses/MIT
using System;
using System.Threading;
static class Program {
static void Main() {
Console.Write("Performing some task... ");
using (var progress = new ProgressBar()) {
for (int i = 0; i <= 100; i++) {
progress.Report((double) i / 100);