Skip to content

Instantly share code, notes, and snippets.

View antoniovs1029's full-sized avatar

Antonio Velázquez antoniovs1029

  • Bellevue, Washington
View GitHub Profile
@antoniovs1029
antoniovs1029 / searchws.js
Created March 29, 2022 16:24
Fiddler script to search within websocket messages
// Adds QuickExec command `searchws <string>` to search the string inside websocket messages on all current Fiddler websocket sessions
// It also adds a column to the sessions `WS Search` reporting on how many hits for <string> were found on each session,
// and logs to the standard log tab in what messages of which session was the <string> found.
// This script may be copied as-is to replace all the contents in Fiddler > Rules > Customize Rules editor,
// or its contents can be added to the script already found there.
import System;
import System.Windows.Forms;
import Fiddler;
@antoniovs1029
antoniovs1029 / inputfile.tsv
Last active November 1, 2019 18:48
Issue with ImageLoader working with empty input column
Label ImageSource
dog dog\img1.jpg
dog dog\img2.jpg
dog dog\img3.jpg
fruit fruit\img1.jpg
fruit fruit\img2.jpg
whatever whatever\img1.jpg
whatever whatever\img2.jpg
@antoniovs1029
antoniovs1029 / PFIwithBPTfromdisk.cs
Last active October 23, 2019 23:16
Use ML.net's PFI with a binary prediction transformer loaded from disk
// Based on the original sample of using PFI with Binary prediction:
// https://github.com/dotnet/machinelearning/blob/master/docs/samples/Microsoft.ML.Samples/Dynamic/Trainers/BinaryClassification/PermutationFeatureImportance.cs
// Presenting in here a workaround to make it work with a model loaded from disk
using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.ML;
using Microsoft.ML.Calibrators;
using Microsoft.ML.Data;