Shell utilities hosted at https://scripts.msar.me/. Run from a terminal; hosts scripts need administrator rights.
setup-husky.shInstalls and configures Husky with pre-commit and commit-msg hooks for Laravel/Vue-style projects (checks project directory, package manager, etc.).
Use
curl -sSL https://scripts.msar.me/setup-husky.sh | bash
curl -sSL https://scripts.msar.me/setup-husky.sh | bash -s -- /path/to/project
add-hosts-domain.shAdds one or more local domains to /etc/hosts as 127.0.0.1 entries. Optional --verify (-V) to verify the file; --help (-h) for usage.
Use
curl -sSL https://scripts.msar.me/add-hosts-domain.sh | sudo bash -s -- domain1.test domain2.test
sudo bash add-hosts-domain.sh --verify domain1.test
remove-hosts-domain.shRemoves matching domain lines from /etc/hosts. Same flags as add: --verify, --help.
Use
curl -sSL https://scripts.msar.me/remove-hosts-domain.sh | sudo bash -s -- domain1.test
sudo bash remove-hosts-domain.sh domain1.test domain2.test
set-editor.shmacOS: uses duti to set the default app for many code-related file extensions. Edit EDITOR_ID inside the script (e.g. bundle id for VS Code or Zed) before running.
Use
curl -sSL https://scripts.msar.me/set-editor.sh | bash