Jul 20
- 64 GB Drive
- 4 GB Memory
- Installed xcode-select --install
- Installed Ansible (https://github.com/geerlingguy/mac-dev-playbook/blob/master/README.md)
TODO (not done yet):
- Installed/authenticated Bitwarden
- Logged into Apple ID
Jul 20
TODO (not done yet):
| function parseTime(str) { | |
| if (!str) return null; | |
| const m = str.match(/(?:(\d+)m\s*)?(\d+)s/); | |
| if (!m) return null; | |
| return (parseInt(m[1] || 0) * 60) + parseInt(m[2]); | |
| } | |
| const results = Array.from(document.querySelectorAll('[data-testid="deployment/status"]')).map(statusEl => { | |
| const field = statusEl.parentElement?.parentElement?.parentElement; | |
| const row = field?.parentElement; |
| #!/bin/bash | |
| # Features: | |
| # - Uses allow-list approach to avoid macOS permission prompts | |
| # - By default searches: ~/bin, ~/dev, and root of ~ only | |
| # - Only shows symlinks owned by you (filters by current user) | |
| # Usage: | |
| # # Search default locations (~/bin, ~/dev, root of ~) | |
| # find-symlinks |
Homebrew's default PostgreSQL uses your system user without a password.
On macOS, the default user setup for PostgreSQL varies based on the installation method, but the general best practices emphasize avoiding the default superuser for daily operations and using a dedicated, least-privilege user for your projects (source: google ai).
Written with Claude Sonnet 4.5. Prompt:
I have a new Node/Next.js client project that I'm running locally. The codebase is unfamiliar to me, so I want to build a bash script to grep for potentially dangerous patterns and ensure nothing unsafe is being executed. Let's start by planning the script—don't write the code yet.
brew install python@3.9 espeak libsndfile portaudio| #!/bin/bash | |
| # A script to download the HTML content from a list of URLs. | |
| # How to use: `chmod +x fetch-html.sh` | |
| # ./fetch-html.sh urls.txt ./downloaded_pages | |
| # This will read the links from `urls.txt` and save the corresponding HTML files into the `downloaded_pages` directory. Let me know if you'd like any tweaks. | |
| # I use Link Gopher on Firefox to manually create my links. | |
| set -euo pipefail # Fail fast on errors |