Skip to content

Instantly share code, notes, and snippets.

# https://learn.microsoft.com/en-us/windows/wsl/filesystems#run-windows-tools-from-linux
# Disclaimer: I have no idea what the performance implications of this are.
# wsl -u root
ln -s "/mnt/c/Program Files/OpenSSH/ssh.exe" /usr/local/bin/ssh
ln -s "/mnt/c/Program Files/OpenSSH/scp.exe" /usr/local/bin/scp
ln -s "/mnt/c/Program Files/OpenSSH/ssh-add.exe" /usr/local/bin/ssh-add
ln -s "/mnt/c/Program Files/OpenSSH/ssh-keygen.exe" /usr/local/bin/ssh-keygen
ln -s "/mnt/c/Program Files/OpenSSH/ssh-keyscan.exe" /usr/local/bin/ssh-keyscan
@astra137
astra137 / sbctl-0.10-1.spec
Created January 3, 2023 12:00
sbctl rpm package spec
Name: sbctl
Version: 0.10
Release: 1%{?dist}
Summary: Secure Boot key manager
License: MIT
URL: https://github.com/Foxboron/sbctl
Source0: https://github.com/Foxboron/sbctl/releases/download/%{version}/sbctl-%{version}.tar.gz
Requires: util-linux binutils
BuildRequires: go gcc-go asciidoc

Issue

Remote podman devcontainers are currently broken in VS Code on Windows.

Podman's internal SSH client explodes when trying to access the Windows ssh-agent pipe.

Cannot connect to Podman. Please verify your connection to the Linux system using `podman system connection list`, or try `podman machine init` and `podman machine start` to manage a new Linux VM
Error: unable to connect to Podman. failed to create sshClient: dial unix \\.\pipe\openssh-ssh-agent: connect: No connection could be made because the target machine actively refused it.

Keybase proof

I hereby claim:

  • I am astra137 on github.
  • I am astra137 (https://keybase.io/astra137) on keybase.
  • I have a public key ASCG803KYwARlLwYjL_eLoRG9WT4NGdJf1b_wLlPTeMicgo

To claim this, I am signing this object:

@astra137
astra137 / minecraft-microsoft-auth.js
Last active February 4, 2021 09:01
Demo process for getting Minecraft access token with Microsoft Account
// Experiments based on:
// https://github.com/PrismarineJS/node-minecraft-protocol/blob/master/src/client/microsoftAuth.js
const {createServer} = require('http');
const {URL} = require('url');
const fetch = require('node-fetch');
const msal = require('@azure/msal-node');
const XboxLiveAuth = require('@xboxreplay/xboxlive-auth');
const prettyMilliseconds = require('pretty-ms');