Skip to content

Instantly share code, notes, and snippets.

View mahyarmoghadam's full-sized avatar

Mahyar Moghadam mahyarmoghadam

View GitHub Profile
@mahyarmoghadam
mahyarmoghadam / openssh-on-windows-server-2022.md
Last active August 21, 2024 18:40
Install OpenSSH on Windows Server 2019 or 2022
  1. Using Windows PowerShell Open PowerShell as an Administrator.

  2. Run this Command

Get-WindowsCapability -Online | Where-Object Name -like 'OpenSSH*'
  1. Install OpenSSH Client:
@mahyarmoghadam
mahyarmoghadam / .bashrc
Last active September 13, 2022 13:24 — forked from mathiasverraes/.bashrc
Git shortcuts
#! /bin/sh
alias gs="git status"
alias gc="git commit"
alias gr="git checkout"
alias ga="git add"
alias gl="git lola"
@mahyarmoghadam
mahyarmoghadam / EntityEvent.cs
Last active October 4, 2021 08:19
Generic Entity Event Handlers
public abstract class EntityEvent : INotification
{
public Guid Id { get; set; }
}
public abstract class EntityEvent<T> : EntityEvent { }