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

{"1to2":["1.0.0"],"7zip-bin":["0.0.3"],"7zip-bin-win":["2.1.0"],"@angular/compiler-cli":["2.2.3","2.4.1","2.4.10","2.4.6","2.4.7","4.0.0","4.0.2","4.0.3","4.1.1","4.1.3","4.2.4","4.2.5","4.3.5","4.3.6","4.4.6","5.0.0","5.0.5","5.2.1","5.2.2"],"Base64":["0.2.1"],"CSSselect":["0.4.1"],"CSSwhat":["0.4.7"],"JSONStream":["0.10.0","0.4.3","0.6.4","0.7.4","0.8.4","1.0.3","1.0.6","1.0.7","1.1.1","1.2.1","1.3.0","1.3.1","1.3.2"],"JSV":["4.0.2"],"MD5":["1.3.0"],"NodObjC":["1.0.0"],"Swan":["1.0.0","1.0.1","1.0.2","1.0.3"],"URIjs":["1.16.1"],"a":["1.0.0"],"aabb-3d":["0.0.0"],"abab":["1.0.3","1.0.4"],"abbrev":["1.0.3","1.0.5","1.0.7","1.0.9","1.1.0","1.1.1"],"absolute":["0.0.1"],"absolute-path":["0.0.0"],"abstract-leveldown":["0.12.3","0.12.4","2.4.1","2.6.0","2.6.1"],"accept":["1.0.0","2.1.0","2.1.1"],"accepts":["1.0.0","1.0.6","1.0.7","1.1.4","1.2.13","1.2.7","1.3.2","1.3.3","1.3.4","1.3.6"],"access-control":["0.0.8"],"accessibility-developer-tools":["2.10.0"],"accessory":["1.0.1"],"accord":["0.20.5","0.22.3","0.23.0","
@Meir017
Meir017 / FlakyTestMethodAttribute.cs
Last active August 4, 2023 13:37
MSTest flaky test
namespace Playground.Tests
{
[AttributeUsage(AttributeTargets.Method, AllowMultiple = false)]
public class FlakyTestMethodAttribute : TestMethodAttribute
{
public int RetryCount { get; set; }
public override TestResult[] Execute(ITestMethod testMethod)
{
TestResult result = testMethod.Invoke(new object[0]);
@Meir017
Meir017 / script.js
Last active August 25, 2022 19:53
convert node modules to tgz
const { existSync, writeFileSync, mkdirSync } = require('fs');
const { execSync } = require('child_process');
if (!existsSync('package.json')) {
writeFileSync('package.json', JSON.stringify({ dependencies: {} }, null, 2));
}
function saferequire(name) {
try {
return require(name);
@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