Skip to content

Instantly share code, notes, and snippets.

View bengry's full-sized avatar

Ben Grynhaus bengry

  • wiz-sec
  • Israel
  • 05:22 (UTC +03:00)
View GitHub Profile
@bengry
bengry / StringWithAutocomplete.ts
Created August 31, 2024 20:35
Utility function for class organization when using libraries like Tailwind, which get very verbose very fast
/**
* A utility type around `string` that allows for autocomplete on the string on a specific set of values, yet accepting any string.
*
* @see https://twitter.com/diegohaz/status/1524257274012876801
*/
export type StringWithAutocomplete<S extends string> =
| S
| (string & Record<never, never>);
@bengry
bengry / README.md
Last active October 5, 2025 09:13
GitHub Issues Instant Solutions - UserScript to find best solutions in GitHub issues by analyzing reactions

GitHub Issues Instant Solutions - UserScript

Automatically find the best solution to a GitHub Issue by analyzing comment reactions.

Features

  • 🎯 Automatic Solution Detection - Analyzes reactions on comments to identify the most helpful solutions
  • 🚀 Quick Navigation - Adds a floating "Jump to solution" button to instantly navigate to the best answer
  • 🏆 Top 3 Solutions - Highlights and ranks the top 3 most helpful comments
  • Fast & Lightweight - Pure vanilla JavaScript, no dependencies
@bengry
bengry / claude-rtl.user.js
Created March 12, 2026 19:37
Claude RTL userscript — makes claude.ai RTL for Persian/Arabic speakers. Install via Tampermonkey/Greasemonkey.
// ==UserScript==
// @name Claude RTL
// @namespace https://github.com/mh-daneshvar/claude-rtl
// @version 1.2.0
// @description Makes claude.ai RTL for Persian and Arabic speakers. Code blocks stay LTR.
// @author mh-daneshvar (userscript adaptation)
// @match https://claude.ai/*
// @run-at document-end
// @grant none
// @license MIT