Skip to content

Instantly share code, notes, and snippets.

View bebrooke's full-sized avatar

Ben bebrooke

  • United Kingdom
  • 16:29 (UTC +01:00)
View GitHub Profile
# https://www.thomasmaurer.ch/2018/04/hvc-ssh-direct-for-linux-vms-on-hyper-v/
# https://patrickwu.space/2019/02/16/hyper-v-hvc-command/
# Below working on Win 11 Pro 23H2 22631
# Doesn't seem to like win32-openssh location (spaces in program files). Set the following env variable (System)
HV_SSH_COMMAND C:\Windows\System32\OpenSSH\ssh.exe
# No gui setting to add com port in gen 2 vm. Use the cmdlet when VM powered off
Set-VMComPort -VMName TestVM -Number 1 \\.\pipe\testvmpipe
@bebrooke
bebrooke / gist:72f8eda88420a4b658bbcba7b3b8732d
Created November 18, 2023 16:50
Visual Studio Code Remote-SSH sudo
## From https://github.com/microsoft/vscode-remote-release/issues/1688
alias sudocode='SUDO_EDITOR="$(which code) --wait" sudoedit'
@bebrooke
bebrooke / gist:b003606d853210170dfac7589f1f8b4e
Created November 17, 2023 20:39
Thunderbird Outlook.com Oauth2 Settings
Incoming:
IMAP
Server hostname: outlook.office365.com
Port: 993
SSL: SSL/TLS
Authentication: Oauth2
Outgoing:
Server hostname: smtp.office365.com
Port: 587
SSL: STARTTLS