- Linux: keyd
- Windows: AutoHotkey v2
Esc
:`
(backtick)
Esc
: `
(backtick)# Save this file to /etc/keyd/kensington.conf | |
# Kensington Expert Mouse Default Bindings: | |
# - bottom left: leftmouse | |
# - bottom right: rightmouse | |
# - top left: middlemouse | |
# - top right: mouse1 | |
# Result: | |
# - bottom left: leftmouse |
# Monkey patch the graphrag package to support local models deployed via Ollama. Only tested for graphrag version 0.3.2. | |
# See https://chishengliu.com/posts/graphrag-local-ollama/ for details. | |
# | |
# Usage: | |
# * How to patch the `graphrag.index` CLI: | |
# * Save https://github.com/microsoft/graphrag/blob/v0.3.2/graphrag/index/__main__.py as "index.py" | |
# * Replace line 8 with: | |
# ```python | |
# from graphrag.index.cli import index_cli | |
# from graphrag_monkey_patch import patch_graphrag |
#!/usr/bin/env bash | |
# Usage: | |
# 1. Download this file and save it as .git/hooks/commit-msg under current repo. | |
# 2. Run `chmod +x .git/hooks/commit-msg` | |
COMMIT_MSG_FILE=$1 | |
# If the commit message is fixup! or squash! or Merge, exit without changing it. | |
grep -qE '^(fixup!|squash!|Merge)' "$COMMIT_MSG_FILE" && exit 0 |