Friday, March 24, 2023

in-security: GitHub RSA key changed

 We updated our RSA SSH host key | The GitHub Blog

reason:’s RSA SSH private key was briefly exposed in a public GitHub repository.

need to remove the old key by running this command:

$ ssh-keygen -R

Or manually updating your ~/.ssh/known_hosts file to remove the old entry.

.NET Hot Reload

 .NET 6 Hot Reload in Visual Studio 2022, VS Code, and NOTEPAD?!? - YouTube

> dotnet new console

> dotnet run

hot reload:

> dotnet watch run 

// in implicit "Main" class and method, changes => hot reload changes pid
// Console.WriteLine($"Hello, World! pid: {System.Diagnostics.Process.GetCurrentProcess().Id}");

var u = new Utils();
while (true) {

public class Utils { // changes => hot reload preserves pid!
    public void WritePid() {
        Console.WriteLine($"Hello, World! pid: {System.Diagnostics.Process.GetCurrentProcess().Id}");