Skip to content

Instantly share code, notes, and snippets.

View bytespec's full-sized avatar

Mike bytespec

View GitHub Profile
@bytespec
bytespec / install-docker-wsl2.sh
Created June 21, 2022 01:53
Bash script to install Docker in WSL2 without using Docker Desktop. Tested with Debian 11.3 and Ubuntu 20.04 LTS. Based on information from the Docker installation instructions and https://dev.to/felipecrs/simply-run-docker-on-wsl2-3o8
#!/bin/bash
set -e
if [ "$USER" = "root" ]; then
echo "This script shouldn't run as root (don't use sudo)."
exit 1
fi
echo "Elevating..."
@bytespec
bytespec / CreateSystemVPN.ps1
Last active February 6, 2022 02:51
Example PowerShell code to create a system (all users) SSTP VPN. Use a .cmd file as a launcher within a .scapp file for an almost-one-click deploying via Screen Connect's Toolbox in Backstage mode.
# Settings
$VPN_NAME = "My System VPN"
$SERVER = "vpn.example.com:443"
$ROUTES = @("192.168.5.0/24", "192.168.6.0/24") # Empty to disable split tunneling
$USER = "sys-vpn-username"
# ========
$ErrorActionPreference = "Stop"