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 / 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 / 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 / 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'
)
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 / 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:

@Meir017
Meir017 / package-lock.json
Last active May 8, 2022 19:22
node-tgz-downloader #19 package.lock
{
"name": "hello-world",
"version": "0.1.0",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "hello-world",
"version": "0.1.0",
"dependencies": {
@Meir017
Meir017 / covid.ps1
Created November 1, 2020 15:43
Covid 19 Israel status check
enum Covid19Query {
lastUpdate
sickPerDateTwoDays
sickPatientPerLocation
deadPatientsPerDate
recoveredPerDay
testResultsPerDate
infectedPerDate
infectedByAgeAndGenderPublic
isolatedDoctorsAndNurses
@Meir017
Meir017 / test.json
Created June 2, 2020 05:06
playwright firefox tests
[
{
"name": "Browser",
"it": []
},
{
"name": "Page",
"it": []
},
{
@Meir017
Meir017 / generate-tests-list.js
Created June 2, 2020 04:50
generate-tests-list
const utils = require('./test/utils');
const tests = require('./test/playwright.spec');
const collected = [];
let current = {};
var options = {
playwrightPath: utils.projectRoot(),
product: 'Firefox',
@Meir017
Meir017 / Protocol.Generated.cs
Last active February 23, 2020 19:42
Chromium Protocol.Generated.cs
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
#pragma warning disable CS1591 // Missing XML comment for publicly visible type or member