Skip to content

Instantly share code, notes, and snippets.

View StefanScherer's full-sized avatar
🌍

Stefan Scherer StefanScherer

🌍
View GitHub Profile
Install-Module -Name xPSDesiredStateConfiguration -Force
[DscLocalConfigurationManager()]
configuration LCM {
Settings {
RebootNodeIfNeeded = $true
ActionAfterReboot = 'ContinueConfiguration'
}
}
@ericclemmons
ericclemmons / example.md
Last active October 13, 2025 15:16
HTML5 <details> in GitHub

Using <details> in GitHub

Suppose you're opening an issue and there's a lot noisey logs that may be useful.

Rather than wrecking readability, wrap it in a <details> tag!

<details>
 Summary Goes Here
@DieterReuter
DieterReuter / compile-docker-1.12.0-on-arm.sh
Last active August 6, 2016 15:38
Upgrade HypriotOS 0.8.3 with Docker 1.12.0 and compile Docker 1.12.0 (plus ARM patch)
#!/bin/bash
set -e
set -x
if [ ! -f ~/docker-engine_1.12.0-0~jessie_armhf-armv6.deb ]; then
echo "...ERROR:"
echo " Package ~/docker-engine_1.12.0-0~jessie_armhf-armv6.deb missing"
exit 1
fi
@ryanmaclean
ryanmaclean / promiscous_enable.sh
Last active July 18, 2024 14:58
Allow VMWare Fusion Promiscuous Mode on macOS Sierra
#!/bin/bash
sudo touch "/Library/Preferences/VMware Fusion/promiscAuthorized"
@AlexZeitler
AlexZeitler / command.sh
Last active September 15, 2016 19:55
Removing big files from Git repository history in a batch
# CREATE A BACKUP FIRST!
# Then find the oldest commit containing the unwanted files
# ./replace.sh <PathToFileContainingTheBigFilesToRemove> <OldestCommitSHA>
cd /path/to/your/git/repository
./replace.sh files.txt 9e5bc93
@PatrickLang
PatrickLang / iis_auth_allsteps.md
Last active March 2, 2024 20:18
Setting up IIS with User Authorization in Windows Server containers

Create a resource group

Create a resource group in Azure to hold all of the resources you'll be creating:

  • Virtual Network
  • Virtual Machines

Create a VNet

  • Don't use 172.* IPs. I used 10.3.0.0/24
@thebsdbox
thebsdbox / gist:29e395299f89b52214b66269f5b33f7d
Created February 22, 2017 10:58
Hello Docker World in 69 bytes
BITS 32
org 0x05000000
db 0x7F, "ELF"
dd 1
dd 0
dd $$
dw 2
dw 3
dd 0x0500001B
@BretFisher
BretFisher / docker-for-mac.md
Last active December 30, 2025 18:54
Getting a Shell in the Docker Desktop Mac VM

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

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

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

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


@PatrickLang
PatrickLang / sd_drivers_ws2016.md
Last active November 14, 2023 08:20
Booting Windows Server 2016 core from eMMC

Booting Windows Server 2016 Core from eMMC devices

Comparing drivers between Desktop & Core editions

The Windows installation ISO contains multiple Windows image files (WIM):

  • boot.wim - this is used to boot the Windows Preinstallation Environment (WinPE) for a clean install
  • install.wim - this contains the image(s) that will be installed.

The Windows Server 2016 ISO contains multiple versions in this single install.wim file which is why the same media can be used to install Standard or Datacenter editions, with the desktop experience or without it (core).

@rn
rn / packet.net.md
Last active November 14, 2017 14:52
arm64 server setup

This document outlines steps and common tasks for setting up a arm64 dev machine for LinuxKit.

Notes on packet.net

If you set up a server on packet.net using the docker account please use your name/slackhandle/initials in the machine name. We will garbage collect machine and whack machine not adhering to this policy without warning :).

Deploy a Ubuntu 16.04 LTS server on packet.net and ssh in as root.