Skip to content

Instantly share code, notes, and snippets.

@andrewsanchez
andrewsanchez / llm-mgrep-tool.md
Last active December 4, 2025 17:33
Example of using the mgrep CLI tool with an llm tool
➜ llm --td --cl 20 --functions '
import subprocess
def mgrep(pattern: str, path: str = ".") -> str:
    """Call mgrep for semantic search across files under the given path."""
    result = subprocess.run(["mgrep", "search", pattern, path], capture_output=True, text=True, timeout=30)
    return result.stdout if result.returncode == 0 else result.stderr
  ' \
-s "Use mgrep extensively to search the current working directory to answer the user's question. mgrep is powerful semantic search tool." \
"Write a plugin that defines a toolbox for using the mgrep search cli tool.
@gerep
gerep / blogger_foundation_all_fonts.css
Last active December 12, 2015 12:29
[Blogger] All Foundation icons in one css file.
/*
For General Icons: <i class="general foundicon-[icon-name]"></i>
For Social Icons: <i class="social foundicon-[icon-name]"></i>
For Accessibility Icons: <i class="accessibility foundicon-[icon-name]"></i>
For General Enclosed Icons: <i class="enclosed foundicon-[icon-name]"></i>
*/
/* global foundicon styles */
[class*="foundicon-"] {
@jgeurts
jgeurts / install-graphite-ubuntu-12.04.sh
Created July 14, 2012 16:36 — forked from tkoeppen/install-graphite-ubuntu-10.04.sh
Install Graphite 0.9.10 on Ubuntu 12.04
####################################
# BASIC REQUIREMENTS
# http://graphite.wikidot.com/installation
# http://geek.michaelgrace.org/2011/09/how-to-install-graphite-on-ubuntu/
# Last tested & updated 10/13/2011
####################################
cd
sudo apt-get update
sudo apt-get upgrade