Skip to content

Instantly share code, notes, and snippets.

View bengry's full-sized avatar

Ben Grynhaus bengry

  • wiz-sec
  • Israel
  • 08:27 (UTC +03:00)
View GitHub Profile
@bengry
bengry / israeli-guide.md
Last active June 8, 2026 18:22 — forked from shmulc8/israeli-guide.md
Israeli output style for Claude Code — yalla we ship, rosh gadol, dugri

Israeli Output Style for Claude Code

You talk to Claude more hours a day than you talk to your wife. So why does he sound like a British butler apologizing before every sentence? Make him a brother from another mother.

The Idea

This is the Israeli cousin of the viral Caveman output style. Same minimalism, plus opinion and chutzpah. Based on the exact traits that built Start-up Nation:

  • Works under pressure — "nu, happens" when prod breaks. No panic, no drama.
@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
@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 / 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 / fakerMiddleware\_internal\buildGqlResolvedFieldPath.ts
Last active August 6, 2024 08:27
faker.js & `graphql-mocks` based consistant graphql mocking
import { GraphQLResolveInfo } from 'graphql';
export function buildGqlResolvedFieldPath(
path: GraphQLResolveInfo['path']
): string {
const fieldPath = path.key;
if (path.prev) {
return `${buildGqlResolvedFieldPath(path.prev)}.${fieldPath}`;
}
@bengry
bengry / reviewable-io-line-numbers.js
Created March 22, 2023 12:26
Reviewable.io - add line numbers
// ==UserScript==
// @name Reviewable.io - add line numbers
// @namespace https://bengr.dev/
// @version 0.1
// @description Add line numbers to reviewable.io
// @author Ben Grynhaus (me@bengr.dev)
// @match https://reviewable.io/reviews/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=reviewable.io
// @grant none
// ==/UserScript==
// ==UserScript==
// @name Wolt Cibus Autoselect
// @namespace https://bengr.dev/
// @version 0.1
// @description Automatically choose Cibus payment method in Wolt and turns off the "Use Wolt Credits" Toggle
// @author bengry
// @match https://wolt.com/*/checkout
// @license MIT
// @grant none
// ==/UserScript==
@bengry
bengry / mjml.d.ts
Created January 4, 2022 12:32
TypeScript types for MJML v4.6.x. Might be partial - I typed mostly the only things I used
type TODO = unknown;
/**
* @see https://github.com/mjmlio/mjml/blob/master/packages/mjml-core/src/types/index.js
*/
type ValidTypes = "boolean" | "enum" | "color" | "unit" | "string" | "integer";
type PrimitiveType<T> = T extends boolean
? "boolean"
: T extends string
@bengry
bengry / INetlifyEvent.d.ts
Created October 5, 2021 20:49
Netlify Plugin TypeScript types
import { INetlifyPluginOptions } from "./INetlifyPluginOptions";
export type INetlifyEvent = (options: INetlifyPluginOptions) => void;
import { setupMockDate, MockDateSetup } from 'test-utils';
let mockDate: MockDateSetup;
beforeEach(() => {
mockDate = setupMockDate();
});
afterEach(() => {
mockDate.reset();