Skip to content

Instantly share code, notes, and snippets.

View bnjmnt4n's full-sized avatar
😴
💤⚰️

Benjamin Tan bnjmnt4n

😴
💤⚰️
View GitHub Profile
@strega-nil
strega-nil / jj-config.toml
Last active May 21, 2025 08:02
Better range-diff for GitHub
[aliases]
range-diff = ["util", "exec", "--", "sh", "-c", '''
if [ "x$1" = "x" ]; then
echo "jj range-diff requires at least one argument" 1>&2
exit 1
fi
old_commit="$1"
trunk=`jj log -r "trunk()" -T commit_id --no-graph`
current=`jj log -r HEAD -T commit_id --no-graph`
git range-diff "$trunk..$old_commit" "$trunk..$current" | awk -f "$HOME/projects/dotfiles/scripts/range-diff.awk"
@syneart
syneart / meld_hotfix_sonoma.sh
Last active June 12, 2025 13:25
Meld v3.21.0 (r4) hot-fix for macOS on Intel CPU / Apple Silicon CPU with Rosetta
### Test on https://github.com/yousseb/meld/releases/tag/osx-20
### OSX - 3.21.0 (r4) Sonoma
### !!! Note: You need put the Meld.app r4 build to the /Applications path first.
#!/bin/zsh
#Fix libpng16.16.dylib not found
install_name_tool -change /usr/local/opt/libpng/lib/libpng16.16.dylib @executable_path/../Frameworks/libpng16.16.dylib /Applications/Meld.app/Contents/Frameworks/libfreetype.6.20.0.dylib
#Fix libbrotlidec.1.dylib not found