Skip to content

Instantly share code, notes, and snippets.

@ffesseler
ffesseler / cli_widget.sh
Last active January 25, 2026 10:58
Shortcut to convert a natural-language request into the corresponding command line
# ZLE widget for cli - press Ctrl+X to convert human prompt to command inline
# Paste this into your ~/.zshrc
# Requires zsh & llm (https://github.com/simonw/llm) installed
# Adapt prompt, LLM, shortcut model to your needs
CLI_MODEL="gemini/gemini-2.5-flash-lite"
CLI_PROMPT="Output the bash-compatible command line only that works on macOS. No markdown, no code blocks, no explanations. Just the raw command. I should be able to copy paste the result and it should work directly in bash on macOS"
CLI_SHORTCUT='^X' # Ctrl+X
_cli_widget() {
@ffesseler
ffesseler / reboot_network
Created August 6, 2015 07:54
Reboot network on OSX
sudo ifconfig en4 down
sudo ifconfig en4 up
@ffesseler
ffesseler / about.md
Last active September 26, 2015 18:28 — forked from sputnikus/about.md
Programming Achievements: How to Level Up as a Developer

Programming Achievements: How to Level Up as a Developer

  1. Select a particular experience to pursue.
  2. Pursue that experience to completion. (Achievement unlocked!)
  3. Reflect on that experience. Really soak it in. Maybe a blog post would be in order?
  4. Return to Step 1, this time selecting a new experience.

This gist is a fork of the gist from this blog post.