Skip to content

Instantly share code, notes, and snippets.

View clarmso's full-sized avatar

Clare So clarmso

View GitHub Profile
@clarmso
clarmso / extract_failed_tests.py
Last active September 17, 2025 16:03
Command to re-run failed tests locally
from bs4 import BeautifulSoup
import re
import argparse
import requests
import os
# Default values of the arguments:
# --testPlan: FullFunctionalTestPlan
# --parallel: 2
# Mandatory:
@clarmso
clarmso / setLocaleSimulators.sh
Created August 20, 2025 01:43
Set all iOS simulators to US locale
#!/usr/bin/env bash
set -e
# Get all simulator UDIDs
SIM_UDIDS=$(xcrun simctl list devices | grep -Eo '[A-F0-9-]{36}')
for UDID in $SIM_UDIDS; do
echo "Setting locale for simulator $UDID ..."
# Boot the simulator if not already booted
@clarmso
clarmso / gist:b35844ebb86efa49c1c4b51b6bf0a0e7
Last active September 11, 2025 14:22
Firefox/Focus shortcuts
# xcodebuild
## Git shortcuts
alias gitempty="git commit --allow-empty -m '🈳 Empty commit 🈳'; git push"
git config --global alias.co checkout
## Useful shortcuts for Focus and Firefox
alias bootstrap="sh ./bootstrap.sh firefox ; sh ./bootstrap.sh focus"
alias rmdd="setopt rm_star_silent ; rm -fr ~/Library/Developer/Xcode/DerivedData/* ; unsetopt rm_star_silent"
git checkout main
git fetch origin
git checkout <branch>
git rebase main
git push origin <branch> --force
@clarmso
clarmso / get_links_from_page.py
Created September 17, 2018 01:48
get_links_from_page.py

Keybase proof

I hereby claim:

  • I am clarmso on github.
  • I am clarmso (https://keybase.io/clarmso) on keybase.
  • I have a public key whose fingerprint is DCB7 E04F 2EAE CA11 FDA1 2B49 84EF E043 7645 1C6D

To claim this, I am signing this object: