Skip to content

Instantly share code, notes, and snippets.

name explain-diff-html
description Use when the user asks for a rich explanation of a code change, diff, branch, or PR. Produces HTML output.

Explain Diff

Please make me a rich, interactive explanation of the specified code change.

It should have these sections:

@rz3n
rz3n / cfmail.py
Last active April 7, 2025 20:49
Script to manage Cloudflare Email Routing rules using the Cloudflare API. Allows to add, list and delete rules. It was created to have an easy way to manage email aliases
#!/usr/bin/env python3
# Simple python script to manage my Cloudflare Email routes via API
# API Documentation: https://developers.cloudflare.com/api/operations/email-routing-routing-rules-list-routing-rules
import requests
import sys
CF_API_TOKEN = "YOUR_CF_API_TOKEN"
CF_ACCOUNT_ID = "YOUR_CF_ACCOUNT_ID"
@Nick-Gabe
Nick-Gabe / linkedin-all.js
Last active September 9, 2023 02:41
Código para aceitar todas as conexões do linkedin
(function (interval = 0) {
document
.querySelectorAll('[class="artdeco-button artdeco-button--2 artdeco-button--secondary ember-view invitation-card__action-btn"]')
.forEach((btn, i) => setTimeout(() => btn.click(), i * interval));
})(1000)
// You can change the 1000, it will be the interval to avoid spamming all at once
@rsp
rsp / node-ts-hello-adventures.md
Last active April 26, 2025 13:00
Creating and using a Node library with TypeScript

node-ts-hello adventures

This is what I was really doing while creating an example from this answer on Stack Overflow:

It turned out that I made several stupid mistakes and wasted a lot more time than it might look like from reading the answer. I eventually removed from the answer not so much out of embarrassment but because I didn't want to be accused that I am complicating the process on purpose to make Deno look better in comparison. The truth is that below ius exactly what I did while trying to create and publish a new module on npm written in TypeScript and use it with ts-node later:

https://github.com/rsp/node-ts-hello

@ascendbruce
ascendbruce / README.md
Last active June 29, 2026 14:11
Use macOS-style shortcuts in Windows

Use macOS-style shortcuts in Windows / keyboard mappings using a Mac keyboard on Windows

ℹ️ There is a newer alternative project that does similar things and more, check it out at https://github.com/stevenilsen123/mac-keyboard-behavior-in-windows

Make Windows PC's shortcut act like macOS (Mac OS X) (using AutoHotkey (ahk) script)

With this AutoHotKey script, you can use most macOS style shortcuts (eg, cmd+c, cmd+v, ...) on Windows with a standard PC keyboard.

How does it work