Use dired-do-shell to explore the parquet schema from Emacs

I use dired-do-shell command in Emacs to run CLI commands from within its file manager dired. This workflow makes it easy to perform batch operations on files that would be annoying otherwise. The trouble arose when trying to use the duckdb CLI to print the schema of a parquet file, as the notation for wildcards in emacs (* and ?) conflicts with duckdb’s usage of the former. Thus running the following after M-x dired-do-shell (bound to ! in dired-mode) did not work: ...

2025-10-23 · Alán F. Muñoz

Recursive search and replace

I needed to rename all occurrences of a pattern with another, where I knew there was no ambiguous situations. This uses ripgrep, xargs and GNU sed. source. rg old_pattern --files-with-matches | xargs sed -i 's/old_pattern/new_pattern/g'

2025-08-12 · Alán F. Muñoz

Github code review on existing code base

Create an empty branch with one empty commit Create new branch git checkout --orphan review-1-target Reset git reset . Clean branch git clean -df Add empty commit git commit --allow-empty -m 'Empty commit' Rebase a branch to put this commit at the root Push to your fork git push -u origin review-1-target Move to branch to review git checkout origin/main Spin-off branch from here git checkout -b review-1 Rebase to empty branch git rebase -i review-1-target, the empty commit must be at the start Push git push -u origin review-1 That should make a pull request possible, providing the code review tooling. source ...

2024-11-26 · Alán F. Muñoz