Skip to content

Instantly share code, notes, and snippets.

View thatbeautifuldream's full-sized avatar
🎯
Focusing

Milind Mishra thatbeautifuldream

🎯
Focusing
View GitHub Profile
@thatbeautifuldream
thatbeautifuldream / image-zoom.module.css
Created November 5, 2026 10:52
React Image Zoom with Native Popover and CSS Modules
.trigger {
display: block;
padding: 0;
border: 0;
background: transparent;
color: inherit;
font: inherit;
cursor: zoom-in;
overflow: hidden;
border-radius: inherit;
@thatbeautifuldream
thatbeautifuldream / README.md
Last active October 27, 2026 09:37
Visual proof of work: capture before/after screenshots and attach comparison tables to GitHub PRs

Visual proof of work

Capture before/after screenshots, keep them organized, and attach comparison tables to GitHub PRs.

Install

npx skills add https://gist.github.com/def5bb7e3026836477fcc7c8587244f8.git -g -a codex -y
@thatbeautifuldream
thatbeautifuldream / SKILL.md
Created October 27, 2026 07:09
X Player Card Embed Skill
name x-player-card-embed
description Makes an interactive webpage embeddable inside an X post using Twitter Player Card metadata and a dedicated iframe route. Use when asked to run a website, canvas, demo, tool, or game inside a tweet, configure twitter:player, or troubleshoot blank, clipped, or image-only player cards. Does not cover embedding X posts on another website.

X Player Card Embed

Make a selected webpage usable inside an X post through a dedicated HTTPS iframe route.

How it works

@thatbeautifuldream
thatbeautifuldream / git-coauthor-cleanup.md
Last active October 24, 2026 19:42
Automatically strip Git co-author trailers on your machine

Automatically strip Git co-author trailers on your machine

This setup removes Co-authored-by: lines from new commit messages and lets the commit continue if the repository's other checks pass. A pre-push check also rejects pushes containing commits with co-author lines, catching commits that bypassed cleanup. It applies to your OS user, across repositories using the global hooks setting. Existing commits and the commit's author identity stay unchanged.

Requirements

  • macOS or Linux: Git, a POSIX shell, and Perl on your PATH.
  • Windows: run from Git Bash with Git and Perl available (command -v git perl), or install inside WSL for repositories you use from WSL. A WSL installation does not configure Windows Git.

Run the installer separately on each machine and for each OS user. Clients must use the same Git configuration and support Git hooks.

Omarchy / Hyprland squircle corners

image image

This bundle records the user-level corner customization applied on an Omarchy desktop.

Changes

@thatbeautifuldream
thatbeautifuldream / index.js
Created July 1, 2026 02:33
Cloudflare Email Worker
export default {
async email(message, env, ctx) {
const subject = message.headers.get("subject") || "(no subject)";
await fetch("https://discord.com/api/webhooks/123/345", {
method: "POST",
headers: {
"content-type": "application/json",
},
body: JSON.stringify({
@thatbeautifuldream
thatbeautifuldream / .worktrees.zsh
Last active April 23, 2026 05:38
Git worktree helpers for zsh
# git worktree helpers
# gist: https://gist.github.com/thatbeautifuldream/6e7b1af3a0ba939adc6929f57360f390
wta() {
# usage: wta <branch-name> [base-branch]
if [ -z "$1" ]; then
echo "usage: wta <branch-name> [base-branch]" >&2
return 1
fi
local branch="$1"
local base="${2:-develop}"
{
"data": [
{
"id": "openai/gpt-5.4-pro",
"canonical_slug": "openai/gpt-5.4-pro-20260305",
"hugging_face_id": "",
"name": "OpenAI: GPT-5.4 Pro",
"created": 1772734366,
"description": "GPT-5.4 Pro is OpenAI's most advanced model, building on GPT-5.4's unified architecture with enhanced reasoning capabilities for complex, high-stakes tasks. It features a 1M+ token context window (922K input, 128K output) with support for text and image inputs. Optimized for step-by-step reasoning, instruction following, and accuracy, GPT-5.4 Pro excels at agentic coding, long-context workflows, and multi-step problem solving.",
"context_length": 1050000,
openapi: 3.1.0
info:
title: SearXNG Search API
version: 1.0.0
description: |
HTTP API for querying a SearXNG instance.
Supports GET and POST requests on `/` and `/search`.
GET expects parameters as query parameters.
POST expects parameters as form data.
alias cd=z
alias claude="$HOME/.local/bin/claude"
alias clauded="claude --dangerously-skip-permissions"
alias claudedr="claude --dangerously-skip-permissions -r"
alias claudedc="claude --dangerously-skip-permissions --continue"
alias pn=pnpm
alias px="pnpm dlx"
alias pnd="pnpm run dev"