Skip to content

Instantly share code, notes, and snippets.

@phumpal
Last active March 4, 2025 05:09
Show Gist options
  • Save phumpal/45d1fbc67764668727c9d7236e6949de to your computer and use it in GitHub Desktop.
Save phumpal/45d1fbc67764668727c9d7236e6949de to your computer and use it in GitHub Desktop.
Solutions to hair pulling events

Environment variables

Export key value env vars file not in profile or environment paths

export $(grep -v '^#' ./env/active/.env.dev1 | xargs)

Undo the export of key value pairs

unset $(grep -v '^#' ./env/active/.env.dev1 | sed -E 's/(.*)=.*/\1/' | xargs)

rvm

When openssl@3 is installed

brew install [email protected]
export LDFLAGS="-L/usr/local/opt/[email protected]/lib"
export CPPFLAGS="-I/usr/local/opt/[email protected]/include"
export PKG_CONFIG_PATH="/usr/local/opt/[email protected]/lib/pkgconfig"
rvm install 3.2.2

AWS

AWS policy simulator https://policysim.aws.amazon.com/home/index.jsp

Monterey performance issues

On a mid-2015 MBP running macOS 12.7.6 these seem to help

  1. Remove MalwareBytes
  2. Disable SIP
    • Boot into Recovery Mode using Cmd+R
    • Utilities | Terminal
    • csrutil disable - System Integrity Protection (to enable csrutil enable
    • Reboot
  3. Disable indexing files sudo mdutil -a -i off (to enable sudo mdutil -a -i on)
  4. Disable Spotlight sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist

Alternatively

  1. Add aggressive exclusion lists to Spolight
  2. Run Firefox, Brave, DuckDuckGo or Safari - anything other than Chrome

Bootable media

https://support.apple.com/en-us/101578

sudo /Applications/Install\ macOS\ Monterey.app/Contents/Resources/createinstallmedia --volume /Volumes/MyVolume
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment