Skip to content

Instantly share code, notes, and snippets.

View kylesnowschwartz's full-sized avatar

kylesnowschwartz

View GitHub Profile
import { spawnSync } from "child_process";
/**
* Script to automate the git commit process with AI-generated commit messages.
* It checks for staged changes, generates a commit message, and prompts the user to review or edit the message before committing.
* Original source: https://microsoft.github.io/genaiscript/samples/gcm/
*/
script({
title: 'Git Commit Message',
@babakness
babakness / disable-back-gesture-on-mac-by-browser.md
Last active May 18, 2025 10:16
A list of commands to disable the back gesture for Chrome, FireFox, Brave, and Safari

When working with online editor, the back gesture on a Mac can become very frustrating. Here are some helpful commands disable the back gesture:

# Disable back gesture in specific apps

# Chrome
defaults write com.google.Chrome AppleEnableSwipeNavigateWithScrolls -bool FALSE
# FireFox
defaults write org.mozilla.firefox AppleEnableSwipeNavigateWithScrolls -bool FALSE
# Brave