Skip to content

Commit 7c94e47

Browse files
Feat/domain availability scripts (#2)
* - use node 24 - add yaml parser for cli - add support for domain-availability checking * improve domain availability logic * fix tests * make tests for e2e for both vitest and bats * remove note9 and pixel5 hardcode aliases * Migrate max files to macos section and add feature flag for it
1 parent 3ae90d0 commit 7c94e47

30 files changed

Lines changed: 3285 additions & 228 deletions

.gitignore

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,4 +64,16 @@ yarn-error.*
6464
# vites
6565
coverage
6666

67-
js/coverage
67+
js/coverage
68+
69+
# results outputs
70+
./**/domain-results.*
71+
./**/domain-check-results.*
72+
js/domain-results.*
73+
js/domain-check-results.*
74+
75+
js/domains-to-test.*
76+
domains-to-test.*
77+
78+
# tsconfig
79+
tsconfig.tsbuildinfo

.pnp.cjs

Lines changed: 594 additions & 32 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,25 @@ Key scripts designed to boost developer productivity:
8787
- **Usage**: `rn-fix`
8888
- **Saves Time**: 5-10 minutes of manual cleanup per fix
8989

90+
### macOS File Descriptor Management
91+
92+
**`fix-max-files-temp`** - Temporary File Descriptor Limit
93+
94+
- **Problem Solved**: "Too many open files" errors when running file watchers or tools that open many file descriptors
95+
- **How It Works**: Applies temporary system-level file descriptor limits for the current session using `launchctl`
96+
- **Usage**: `fix-max-files-temp`
97+
- **Duration**: Session only; resets on reboot
98+
- **Perfect For**: Quick fixes during development sessions
99+
100+
**`fix-max-files-permanently`** - Permanent File Descriptor Configuration
101+
102+
- **Problem Solved**: Sets persistent file descriptor limits across reboots
103+
- **How It Works**: Installs LaunchDaemon configuration at `/Library/LaunchDaemons/limit.maxfiles.plist`
104+
- **Usage**: `fix-max-files-permanently`
105+
- **Requirements**: The `limit.maxfiles.plist` file should be located alongside the script
106+
- **Warning**: Will not override an existing configuration file
107+
- **Perfect For**: Permanent solution on development machines
108+
90109
**`rnios` / `rnra`** - iOS/Android Launch Shortcuts
91110

92111
- **Usage**: `rnios` (iOS) or `rnra` (Android)

apps/watchman/set-max-file-limit.sh

Lines changed: 0 additions & 24 deletions
This file was deleted.

entry.zsh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,11 @@ if [[ "${OSA_CONFIG_COMPONENTS_MAC_TOOLS}" == "true" ]] || [[ "${OSA_CONFIG_SNIP
132132
[[ -f "$OSA_SCRIPTS_ZSH_ROOT/platform/mac/rmAsync.zsh" ]] && source "$OSA_SCRIPTS_ZSH_ROOT/platform/mac/rmAsync.zsh"
133133
fi
134134

135+
# macOS File Descriptor Management
136+
if [[ "${OSA_CONFIG_SNIPPETS_OSASNIPPETS_FILELIMITS}" == "true" ]] || [[ "${OSA_CONFIG_SNIPPETS_OSASNIPPETS_FILELIMITS}" == "true" ]]; then
137+
[[ -f "$OSA_SCRIPTS_ZSH_ROOT/platform/mac/set-max-file-limit.sh" ]] && source "$OSA_SCRIPTS_ZSH_ROOT/platform/mac/set-max-file-limit.sh"
138+
fi
139+
135140
# macOS eGPU Management
136141
if [[ "${OSA_CONFIG_COMPONENTS_EGPU}" == "true" ]] || [[ "${OSA_CONFIG_SNIPPETS_OSASNIPPETS_EGPU}" == "true" ]]; then
137142
[[ -f "$OSA_SCRIPTS_ZSH_ROOT/platform/mac/egpu.zsh" ]] && source "$OSA_SCRIPTS_ZSH_ROOT/platform/mac/egpu.zsh"

0 commit comments

Comments
 (0)