Skip to content

Instantly share code, notes, and snippets.

@cmod
cmod / hugofastsearch.md
Last active October 20, 2025 09:10 — forked from eddiewebb/readme.md
Fast, instant client side search for Hugo static site generator
@cmod
cmod / html2md.md
Last active October 14, 2025 01:06
Convert HTML (in clipboard) to Markdown (in clipboard) Alfred Workflow

Simple Alfred workflow using Node to convert rich-text HTML (i.e., just select and copy from a website) in your clipbaord to Markdown, replacing the HTML in the clipboard.

Requirements

  • Node.js
    • brew install node in macOS terminal
    • turndown package (npm install turndown in terminal)
  • Alfred launcher

Workflow Configuration

@cmod
cmod / usd-jpy-jpy-usd.sh
Created June 25, 2025 09:27
JPY USD Conversion (usable with Alfred)
#!/bin/bash
query="$1"
# Simple function to add commas using Python (most reliable)
add_commas() {
python3 -c "print(f'{float('$1'):,.2f}')"
}
if [[ $query =~ ^([0-9]+\.?[0-9]*)$ ]]; then