Skip to content

Instantly share code, notes, and snippets.

View tzachbon's full-sized avatar
💻

Zach Bonfil tzachbon

💻
View GitHub Profile
@tzachbon
tzachbon / codex-worktrees.md
Last active March 7, 2026 21:13
Prompt: add codex yolo + worktree shell function

Add a codex shell function to ~/.zshrc (or ~/.bashrc) that:

  1. Always runs codex in full-auto / yolo mode (--dangerously-bypass-approvals-and-sandbox)
  2. Supports a -w [name] flag that creates a git worktree at ~/.worktrees/<repo-name>/<name> from the current HEAD, then opens codex inside it. If no name is given, auto-generates one from the current timestamp (e.g. codex-20260307-143022).

Add this to your shell config:

@tzachbon
tzachbon / JS_DEV_SETUP.md
Last active March 6, 2026 15:42
Javascript Developer Setup for Mac

Javascript Developer Setup for Mac

This guide is for those who want to prepare their Mac for javascript developement, I attached here some apps that will surely help you and recommendations that are sure to make your life easier.

Specially thanks to my colleagues at wix.com for bring up most of those ideas

TOC

@juampynr
juampynr / CHANGELOG.md
Created March 27, 2018 09:35
Sample CHANGELOG

Change Log

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog and this project adheres to Semantic Versioning.

[Unreleased] - yyyy-mm-dd

Here we write upgrading notes for brands. It's a team effort to make them as

@parmentf
parmentf / GitCommitEmoji.md
Last active February 27, 2026 08:17
Git Commit message Emoji
@pbojinov
pbojinov / README.md
Last active November 5, 2025 23:10
Two way iframe communication- Check out working example here: http://pbojinov.github.io/iframe-communication/

Two way iframe communication

The main difference between the two pages is the method of sending messages. Recieving messages is the same in both.

Parent

Send messages to iframe using iframeEl.contentWindow.postMessage Recieve messages using window.addEventListener('message')

iframe

@renancouto
renancouto / color.lighten.js
Created January 30, 2013 17:58
Method to lighten / darken hex colors using Javascript.
var LightenColor = function(color, percent) {
var num = parseInt(color,16),
amt = Math.round(2.55 * percent),
R = (num >> 16) + amt,
B = (num >> 8 & 0x00FF) + amt,
G = (num & 0x0000FF) + amt;
return (0x1000000 + (R<255?R<1?0:R:255)*0x10000 + (B<255?B<1?0:B:255)*0x100 + (G<255?G<1?0:G:255)).toString(16).slice(1);
};