Skip to content

Instantly share code, notes, and snippets.

View pablocattaneo's full-sized avatar

Pablo Cattaneo pablocattaneo

View GitHub Profile

Practical fix for local dev (Android emulator) Use the same URL host as on iOS (e.g. http://localhost:3000/...) on the emulator as well, and make localhost on the emulator reach your Mac’s port 3000 with port reverse:

adb reverse tcp:3000 tcp:3000 Then set:

EXPO_PUBLIC_KYC_WEBVIEW_URL_FREE_ACTIVATION="http://localhost:3000/beacon-money-account/info/free-activation?beacon_flow=BMA"

(aligned with iOS). After reverse, localhost:3000 inside the emulator is forwarded to your host’s 3000, so you get connectivity and the same host as iOS for cookies/session.

npx playwright codegen --device="iPhone 13" playwright.dev
# using the --headed option --headed
npx playwright test --headed
Yes. Git lets you cherry-pick multiple commits in several ways.
### Cherry-pick specific commits
```bash
git cherry-pick <commit1> <commit2> <commit3>
```
Example:
Android https://httptoolkit.com/android/
Web
brew install --cask burp-suite
https://portswigger.net/burp
xcode-select -p && xcodebuild -version
# returned example
# path/to/xcode
# Xcode 16.4
# Build version 16F6

A predicate function is a function that returns a boolean value—that is, it returns true or false depending on whether a condition is satisfied.

In other words, a predicate tests something.

Simple example (JavaScript)

function isEven(number) {
  return number % 2 === 0;
}
git log --patch
git log -p
git log -p app/\(features\)/beacon-money-account/info/free-activation/components/FreeActivationHero.tsx
git log -p ec60ac4 #using commit hash
# or using https://github.com/jonas/tig
tig
  1. Run bun i , bun run clean , and do everything we do when we build the app.
  2. Run bun run start and keep the Metro bundler running through the entire process.
  3. Run xed ios on the project folder. It will open the Xcode project.
  4. Set the target device (On the top of the Xcode window, Right after MyBeacon > ) to Any iOS Device (arm64) On the top menu, Press Product > Archive. 5 When the build finishes, Organizer window will come (if not appears go to top menu > windows > organizer). Press Distribute App Select Custom, Next, Select App Store Connect, Next, and select Export , and follow the rest of the wizard