Skip to content

Instantly share code, notes, and snippets.

View Meir017's full-sized avatar
🎯
Focusing

Meir Blachman Meir017

🎯
Focusing
View GitHub Profile
@Meir017
Meir017 / metadata.md
Last active October 11, 2023 14:58
google chrome debian 97

Google Chrome version - 97.0.4692.99-1 base position - 938553

websites:

FROM mcr.microsoft.com/dotnet/sdk:6.0-focal
ARG PLAYWRIGHT_VERSION
# === INSTALL dependencies ===
RUN apt-get update && \
# Feature-parity with node.js base images.
apt-get install -y --no-install-recommends git openssh-client curl && \
# clean apt cache
@Meir017
Meir017 / download-docker-image.ps1
Last active November 17, 2023 11:20
Download Docker Image powershell
param(
[Parameter(Mandatory = $true)]
[string]$ImageName,
[string]$Tag = 'latest',
[ValidateSet(
'DockerIO',
'Microsoft'
)]
[string]$Registry = 'DockerIO'
)
@Meir017
Meir017 / docker-downloader.ps1
Created January 23, 2024 20:44
download docker images to TAR files
function download-docker-image {
param(
[Parameter(Mandatory=$true)]
[string]$image,
[Parameter(Mandatory=$true)]
[string]$tag,
[Parameter(Mandatory=$true)]
[string]$output
@Meir017
Meir017 / EnumsSourceGenerator.cs
Created August 7, 2024 17:48
source generator for Garnet Enums
using System.Text;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp.Syntax;
namespace dotnet_analyzer_ideas;
[Generator]
public class EnumsSourceGenerator : ISourceGenerator
{
@Meir017
Meir017 / Program.cs
Last active October 27, 2024 06:29
Sharpliner.generator
using System.CodeDom.Compiler;
using System.Text;
using System.Text.Json;
using Json.Schema;
var rawSchemaJson = await File.ReadAllTextAsync("yamlschema.json");
var jsonSchema = JsonSerializer.Deserialize<JsonSchema>(rawSchemaJson) ?? throw new InvalidOperationException("Failed to deserialize schema");
var definitions = jsonSchema.GetDefinitions() ?? throw new InvalidOperationException("Failed to get definitions");
var taskDefinition = definitions["task"]!;
@Meir017
Meir017 / Program.cs
Last active April 9, 2025 19:38
Analyze the LoggerMessage usages in a project
using System.Text.Json;
using System.Text.Json.Serialization;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.CSharp.Syntax;
namespace dotnet_ideas;
public class Program
{