Add a small PreToolUse hook that stops Claude Code from running rm -rf on / or ~, force pushes and curl-pipe-to-shell, using exit code 2. Includes the script, the settings entry and a way to test it.
Tag Archives: github
Top 10 Claude Code Skills Ranked by GitHub Stars (October 2026)
Ten popular Claude Code skills ranked by GitHub stars in October 2026, from Superpowers to Graphify, with what each does and which three to try first.
Review and Undo Aider Code Changes Safely in 5 Steps
Use a clean Git branch, Aider’s ask mode, diffs and scoped undo to review AI edits. Learn why automatic commits and pre-commit hooks need explicit attention.
Why Merging a Branch Does Not Restore a Reverted Change
A Git revert remains part of history, so a later branch merge may not restore the original change. Learn when to revert the revert or cherry-pick only the missing fix.
How to Fix Composer’s “Could Not Find a Version Matching Your Minimum-Stability” Error
Learn why Composer rejects development-only packages in stable projects and how to fix the problem safely with version constraints or semantic version tags.
How to remove node_modules in git
You may accidentally add the node_modules or you forgot to add the node_modules directory to .gitignore list, no worry, you may remove it after you pushed to the git. First, add the node_modules in to the .gitignore After added the /node_modules and save it.
exit code of #128 fatal: unable to connect to github.com
I follow the Quickstart guide from FoundationPress and it display this error bower install && grunt build bower foundation#* not-cached git://github.com/zurb/bower-foundation.git#* bower foundation#* resolve git://github.com/zurb/bower-foundation.git#* bower fontawesome#~4.3.0 not-cached git://github.com/FortAwesome/Font-Awesome.git#~4.3.0 bower fontawesome#~4.3.0 resolve git://github.com/FortAwesome/Font-Awesome.git#~4.3.0 bower fontawesome#~4.3.0 ECMDERR Failed to execute “git ls-remote –tags –heads git://github.com/FortAwesome/Font-Awesome.git”, exit code of #128 fatal: unable to connect to github.com: github.com[0: Continue reading “exit code of #128 fatal: unable to connect to github.com”
