Skip to content

Instantly share code, notes, and snippets.

@Koubek
Koubek / InstallDockerEE.ps1
Last active December 13, 2023 07:20
Install Docker EE (for Windows Server)
<#
.SYNOPSIS
Install/Upgrade Docker EE (Windows Server).
.DESCRIPTION
This script checks the official Docker EE (for Windows Server) repository and
detects the latest version available to download and install. It also compares
with the version currently installed on the Docker host (WinServer) and asks
you if you wish to proceed or not.
@Koubek
Koubek / SetupConfiguration.ps1
Last active November 8, 2017 18:53
NAV on Docker - copy into "my" folder to override config - new setting for November release: EnableSymbolLoadingAtServerStartup
# Invoke default behavior
. (Join-Path $runPath $MyInvocation.MyCommand.Name)
Write-Host "Running Custom SetupConfiguration.ps1" -ForegroundColor Yellow
# Disable Buffered Inserts for DEV purposes only!!!
$customConfig.SelectSingleNode("//appSettings/add[@key='BufferedInsertEnabled']").Value = "false"
# Task scheduler activation.
$customConfig.SelectSingleNode("//appSettings/add[@key='EnableTaskScheduler']").Value = "true"
@Koubek
Koubek / VPN-client-on-Docker.md
Last active March 16, 2023 22:42
How to connect a PC behind VPN gateway using Docker

VPN-client-on-Docker


This approach uses Docker containers based on Linux kernel. Due to this fact we use one shared Linux server with multiple VPN containers. Then everyone in the company can access the remote system using the shared instances.

I haven`t tested this concept on my Win10 machine, running Linux containers (switching Docker to Linux containers mode). I suppose in the near future will be possible run containers on both platforms simultaneously. Even then I am not sure if the networking stack of Docker on Windows will allow us to run these VPN client containers correctly. I will test it in the future or if anyone else will do I`ll be happy to know the results.


@Koubek
Koubek / AdditionalSetup.ps1
Created May 15, 2018 06:22
bc-on-docker-letsencrypt
# Invoke default behavior
. (Join-Path $runPath $MyInvocation.MyCommand.Name)
. (Join-Path $PSScriptHost 'Deploy-LetsEncrypt.ps1')
@Koubek
Koubek / ResetPasswordOnWindowsServerRDP__CTRL_ALT_DEL.ps1
Last active April 11, 2022 11:36
Reset Password on Windows Server RDP (CTRL+ALT+DEL)
# Run from PowerShell:
(New-Object -COM Shell.Application).WindowsSecurity()
@Koubek
Koubek / AzureContainerRegistryImageCleanup.ps1
Last active January 23, 2020 12:42
Cleanup of Azure Container Reigstry repository to remove unused layers.
# The MIT License
# Copyright 2019 Jakub Vaňák
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
# The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTW