Skip to content

Instantly share code, notes, and snippets.

View macalac's full-sized avatar

Mac Adamarczuk macalac

View GitHub Profile
@macalac
macalac / add_to_zshrc.sh
Created September 15, 2024 00:37 — forked from karpathy/add_to_zshrc.sh
Git Commit Message AI
# -----------------------------------------------------------------------------
# AI-powered Git Commit Function
# Copy paste this gist into your ~/.bashrc or ~/.zshrc to gain the `gcm` command. It:
# 1) gets the current staged changed diff
# 2) sends them to an LLM to write the git commit message
# 3) allows you to easily accept, edit, regenerate, cancel
# But - just read and edit the code however you like
# the `llm` CLI util is awesome, can get it here: https://llm.datasette.io/en/stable/
gcm() {
@macalac
macalac / basic_setup.md
Last active August 18, 2023 10:43 — forked from saetia/gist:1623487
Clean Install – macOS 11.6 Big Sur

OS X Preferences


most of these require logout/restart to take effect

# Enable character repeat on keydown
defaults write -g ApplePressAndHoldEnabled -bool false

# Set a shorter Delay until key repeat