Android Tech Lead at Zego
git config --global alias.lg "log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
git config --global alias.squash '!f(){ git reset --soft HEAD~${1} && git commit --edit -m"$(git log --format=%B --reverse HEAD..HEAD@{1})";};f'
adb shell am start -d url
adb shell "dumpsys activity activities | grep mResumedActivity"
iTerm2 + zsh + oh-my-zsh
Charles Proxy
Proxy Toggle
USB Android device mirror
Adb wifi
adb tcpip 5555
adb shell "ip addr show wlan0 | grep -e wlan0$ | cut -d\" \" -f 6 | cut -d/ -f 1" // to obtain the phone's IP address
adb connect <Android_device_id>:5555
adb connect <ip_address>:5555
Jetbrains Toolbox