Skip to content

Instantly share code, notes, and snippets.

View 7Mendez's full-sized avatar
🏠
Working from home

Henry Mendez 7Mendez

🏠
Working from home
View GitHub Profile
@7Mendez
7Mendez / legacy-build-asdf.md
Last active November 18, 2025 18:49
[ASDF] Install legacy nodejs version using a custom node-build.

Context

Sometimes you need to install a Node.js version that is not available in the official ASDF plugin (because node-build lacks the definition or the version was never added). This guide explains how to manually add a custom node-build definition so ASDF can install any Node.js version — including legacy or unreleased ones.

1. Check if ASDF supports the version

asdf list-all nodejs | grep 20.18
@7Mendez
7Mendez / Ruby Native Gem Installs in Mac.md
Last active January 23, 2025 21:42
Ruby Native Gem Installs in Mac

PG (postgresql gem)

  • Install dependencies. brew install libpq and set in the ENV:export PATH="/opt/homebrew/bin:$PATH".
  • Example: gem install pg -- --with-pg-config=/path/to/pg_config
  • Using a postgres app gem install pg -- --with-pg-config=/Applications/Postgres.app/Contents/Versions/latest/bin/pg_config

Mimemmagic

  • Install dependencies. brew install shared-mime-info
  • gem install mimemagic

image_magick

@7Mendez
7Mendez / Install Ruby 3 in Mac M series.md
Last active January 23, 2025 18:39
[ASDF] Install Ruby 3 in Mac M4 o Another Apple M Processors

1. Download the patch.

curl -sSL https://github.com/ruby/ruby/commit/1dfe75b0beb7171b8154ff0856d5149be0207724.patch -o "patch_name"

2. Using ASDF

RUBY_APPLY_PATCHES="patch_file_path" asdf install ruby 3.x.x

3. Notes

Note: I used this method in for Ruby 3.0.6 and I read that it works in 3.0.7 version.

Error Screenshot: