Skip to content

Instantly share code, notes, and snippets.

View manewitz's full-sized avatar
👾

Mike Manewitz manewitz

👾
View GitHub Profile
@manewitz
manewitz / aoc_23_01_v2.ex
Created December 6, 2023 16:22
Advent of Code 2023 - Day 1, V2 - Elixir
defmodule AdventOfCode23.Dec01.V2 do
@number_map %{
"zero" => 0,
"one" => 1,
"two" => 2,
"three" => 3,
"four" => 4,
"five" => 5,
"six" => 6,
"seven" => 7,
@manewitz
manewitz / aoc_23_01_v2.ex
Created December 7, 2023 19:11
Advent of Code 2023 - Day 2 - Elixir
defmodule Cube.RegEx do
@regex_game_number ~r/Game (\d+)/
@regex_color_thresholds ~r/(1[3-9]|[2-9][0-9]) red|(1[4-9]|[2-9][0-9]) green|(1[5-9]|[2-9][0-9]) blue/
@spec count(binary()) :: any()
def count(filename) do
File.read!(Path.expand(filename))
|> String.split("\n", trim: true)
|> Enum.reject(&match_color_thresholds?/1)
|> Enum.reduce(0, &sum_game_numbers/2)
@manewitz
manewitz / README.md
Last active November 4, 2025 00:42
Using Tidewave MCP with Codex CLI
  • Prereqs
    • Tidewave gem already mounted (e.g., /tidewave/mcp on http://localhost:3100).
    • Rails server running locally on that port (bin/rails s -p 3100 or equivalent).
  • Install the shim globally
    1. Copy tidewave_mcp_stdio_proxy.rb into ~/bin/tidewave-mcp-cli-bridge (or any directory on your $PATH).
    2. Make it executable: chmod +x ~/bin/tidewave-mcp-cli-bridge.
    3. (Optional) If you need request logging, export TIDEWAVE_MCP_PROXY_LOG=/path/to/logfile.log. Leave it unset or set to off to disable logging.
  • Configure Codex
    • Edit ~/.codex/config.toml and add: