Skip to content

Instantly share code, notes, and snippets.

View appleseed-iii's full-sized avatar

Applebee's appleseed-iii

View GitHub Profile
@appleseed-iii
appleseed-iii / llama-commit.sh
Last active April 16, 2025 18:28 — forked from karpathy/add_to_zshrc.sh
Git Commit Message AI
#!/bin/zsh
# -----------------------------------------------------------------------------
# AI-powered (llama) Git Commit Function
# Copy paste this gist into your ~/.bashrc or ~/.zshrc to gain the `gcm` command, or simply source this file in your .zshrc.
# 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
@appleseed-iii
appleseed-iii / Convert .mov or .MP4 to .gif.md
Last active January 21, 2023 13:57 — forked from SheldonWangRJT/Convert .mov or .MP4 to .gif.md
Convert Movie(.mov) file to Gif(.gif) file in one command line in Mac Terminal

This notes is written by Sheldon. You can find me with #iOSBySheldon in Github, Youtube, Facebook, etc.

Need

Convert .mov/.MP4 to .gif

Reason

As a developer, I feel better to upload a short video when I create the pull request to show other viewers what I did in this PR. I tried .mov format directly got after finishing recording screen using Quicktime, however, gif offers preview in most web pages, and has smaller file size.

This is not limited to developer, anyone has this need can use this method to convert the files.