Skip to content

Instantly share code, notes, and snippets.

View Aimeast's full-sized avatar
🙃
There is no typing

Aimeast

🙃
There is no typing
View GitHub Profile
@Aimeast
Aimeast / LimitedConcurrencyLevelTaskScheduler.cs
Created April 4, 2017 14:06
LimitedConcurrencyLevelTaskScheduler.cs
//--------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// File: LimitedConcurrencyTaskScheduler.cs
// Source: https://code.msdn.microsoft.com/vstudio/Execution-Time-Based-dd4dbdb6/sourcecode?fileId=67470&pathId=1378361369
// Modified for .net core
//--------------------------------------------------------------------------
using System;
@Aimeast
Aimeast / Program.cs
Created January 26, 2022 16:03
Add headers to PDF files with Spire.Pdf
using Spire.Pdf;
using Spire.Pdf.Graphics;
// Main call
static void AddHeader(PdfPageBase page, string left, string center, string right)
{
var state = page.Canvas.Save();
RotatePage(page);
AddHeaderWithRotatedPage(page, left, center, right);
page.Canvas.Restore(state);
@Aimeast
Aimeast / en.md
Last active February 22, 2025 11:30
A Comprehensive Analysis on Selecting the Best .NET Core SSH Server Library

A Comprehensive Analysis on Selecting the Best .NET Core SSH Server Library

In the realm of secure remote access, SSH (Secure Shell) servers are essential for enabling secure communication between clients and servers over potentially insecure networks. For developers working with .NET Core, selecting the right SSH server library is crucial to ensure compatibility, performance, and feature richness. This analysis explores the process of identifying and evaluating potential libraries, culminating in the recommendation of Rebex SSH Pack as the best option, while also considering alternatives like FxSsh and SSH.NET for context.

Understanding the Requirement

An SSH server library allows a .NET Core application to function as an SSH server, accepting connections from SSH clients for tasks such as command execution, file transfers via SFTP or SCP, and secure shell sessions. Given .NET Core’s cross-platform nature, the library must support modern versions like .NET 8, ensuring compatibility with Windows, m