Skip to content

Instantly share code, notes, and snippets.

@ivanbarlog
Last active January 20, 2026 11:45
Show Gist options
  • Select an option

  • Save ivanbarlog/d9551ea0a04e3e52d55cbc3999c87f35 to your computer and use it in GitHub Desktop.

Select an option

Save ivanbarlog/d9551ea0a04e3e52d55cbc3999c87f35 to your computer and use it in GitHub Desktop.
Shell scripts
#!/usr/bin/env bash
sudo rm -rf $(xcode-select --print-path)
xcode-select --install
#!/usr/bin/env bash
find . -name "node_modules" -type d -prune -print | xargs du -chs
find . -name "cdk.out" -type d -prune -print | xargs du -chs
#find . -name 'node_modules' -type d -prune -print -exec rm -rf '{}' \;
#find . -name 'cdk.out' -type d -prune -print -exec rm -rf '{}' \;
echo https://dev.to/trilon/how-to-delete-all-nodemodules-folders-on-your-machine-43dh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment