Skip to content

Instantly share code, notes, and snippets.

View pablocattaneo's full-sized avatar

Pablo Cattaneo pablocattaneo

View GitHub Profile
If you're using **[Trunk](https://trunk.io)** (a dev tool that includes linting, formatting, etc.), and it detects auto-fixable lint issues, you can run the auto-fix with:
```bash
trunk check --fix
```
### Explanation:
* `trunk check`: runs the Trunk pipeline (linters, formatters, etc.)
* `--fix`: automatically applies any fixes that the linters support (like ESLint or Prettier).
git checkout <tag-name>
# However, note that this puts your repo in a "detached HEAD" state, meaning you're not on a branch, and any new commits won't belong to any branch unless you create one.
#Source: https://github.com/nvm-sh/nvm?tab=readme-ov-file#usage
nvm ls-remote
Source: https://chatgpt.com/share/67ec3d1a-af94-8006-b218-af5a02c59418
Yes, you can have multiple versions of Xcode installed on your Mac and choose which one to use.
### **How to Install Multiple Versions of Xcode**
1. **Download the Xcode Versions**
- You can download older versions from Apple's [Developer Downloads](https://developer.apple.com/download/all/).
- The latest versions are available in the App Store.
2. **Install and Rename**
fn+◄ (function + left arrow) for Home and fn+► (function + right arrow) for End.
source: https://superuser.com/a/210005/2166510
// Set flexShrink in Style: This property allows the text to shrink in order to fit its container.
<View style={{ flexDirection: 'row', width: 100 }}>
<Text style={{ flexShrink: 1 }}>This is some long text that might overflow its container.</Text>
</View>
rm -rf node_modules && rm -rf ios && rm -rf android
expo prebuild --clean
bun pm cache rm