Skip to content

Instantly share code, notes, and snippets.

View erossini's full-sized avatar

Enrico Rossini erossini

View GitHub Profile
@erossini
erossini / clone-all.ps1
Created June 30, 2025 14:32
Clone all repositories from an organization in Azure DevOps
# for more details look at the post https://puresourcecode.com/tools/powershell/cloning-all-repositories-from-azure-devops/
param(
[string]$Organization
)
if ($Organization -notmatch '^https?://dev.azure.com/\w+') {
$Organization = "https://dev.azure.com/$Organization"
}
@erossini
erossini / list-repo.ps1
Last active June 30, 2025 14:31
List the repositories in an organization in Azure DevOps
# for more details look at the https://puresourcecode.com/tools/powershell/cloning-all-repositories-from-azure-devops/
param(
[string]$Organization = "ABS-EA-Applications"
)
if ($Organization -notmatch '^https?://dev.azure.com/\w+') {
$Organization = "https://dev.azure.com/$Organization"
}
@erossini
erossini / middlenote.cs
Last active March 13, 2025 12:18
Coding Challenge: Find the Middle Node in a Linked List
/* Coding Challenge: Find the Middle Node in a Linked List
Problem Statement:
Write a method that finds and returns the middle node of a singly linked list.
If the list has an even number of nodes, return the first of the two middle nodes.
Examples:
FindMiddle(["a", "b", "c", "d", "e", "f", "g"]) → "d"
FindMiddle(["a", "b", "c", "d", "e", "f"]) → "c"
@erossini
erossini / GenerateMarkdown.cs
Created November 10, 2022 22:16
How to generate a Markdown documentation from XML documentation from Visual Studio
using System.Text.RegularExpressions;
using System.Xml;
using System.Xml.Linq;
internal class Program
{
private static void Main(string[] args)
{
Program app = new Program();
@erossini
erossini / main.cs
Created February 28, 2018 22:10
Redis Todo demo
using System;
using ServiceStack;
using ServiceStack.Text;
using ServiceStack.Redis;
using ServiceStack.DataAnnotations;
var redisManager = new RedisManagerPool("localhost:6379");
var redis = redisManager.GetClient();
public class Todo