Delete all existing containers:
sudo docker rm -f $(docker ps -a -q)
Delete all stopped containers:
sudo docker rm -f $(docker ps -a -f status=exited)
version: '3.7' | |
services: | |
mailpit-server: | |
image: axllent/mailpit:latest | |
container_name: mailpit-server | |
hostname: mailpit-server | |
restart: unless-stopped | |
volumes: |
# Some functions may require PS v6 or later - so let`s install it first | |
iex "& { $(irm https://aka.ms/install-powershell.ps1) } -UseMSI" | |
# add local service account | |
$username = "svc_passwordsecure" | |
$password = Read-Host -AsSecureString | |
New-LocalUser -Name $username -Password $password -FullName "Netwrix Password Secure" -Description "Service account" | |
Add-LocalGroupMember -Group Administrators -Member $username |
#!/bin/bash | |
############################################################ | |
# Script META # | |
############################################################ | |
MetaName="secs.sh" | |
MetaDesc="Add publicly accessible GitHub user SSH public keys to 'authorized_keys'" | |
MetaVersion="2023.6.1" | |
# PKI MFA Test Script | |
# Create a new self signed certificate in the 'CurrentUser' certificate store | |
# to test the NPS PKI MFA second factor | |
# | |
# ------------------------- Password Secure User Settings ------------------------- | |
# Certificate hash methods: SHA1 | |
# | |
# Checking mode for certificate chains: No checking | |
# Only for testing, use trusted PKI certificate for productive use | |
# |
# Load the necessary user32.dll functions | |
Add-Type @" | |
using System; | |
using System.Runtime.InteropServices; | |
public class User32 { | |
[DllImport("user32.dll")] | |
[return: MarshalAs(UnmanagedType.Bool)] | |
public static extern bool GetWindowRect(IntPtr hWnd, out RECT lpRect); | |
[DllImport("user32.dll")] |