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() {

Keybase proof

I hereby claim:

  • I am macalac on github.
  • I am macalac (https://keybase.io/macalac) on keybase.
  • I have a public key ASCFt2smQ0yf4wRHECd1ttATLIhCpgBGExeQ7Es0For4cwo

To claim this, I am signing this object:

@macalac
macalac / clean_install_ubuntu.md
Last active May 27, 2022 11:45
Clean install -- Ubuntu (as of 22.04)

Ubuntu Preferences

Install the basics

# basics
sudo apt update /
&& sudo apt install git /
@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