Skip to content

Instantly share code, notes, and snippets.

@tonyxu-io
Last active February 18, 2020 00:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tonyxu-io/07bb9db07152a9d03fee84e8bfe08a05 to your computer and use it in GitHub Desktop.
Save tonyxu-io/07bb9db07152a9d03fee84e8bfe08a05 to your computer and use it in GitHub Desktop.
Terminal Commands

Copy SSH Key to Remote Server

Use ssh-copy-id

ssh-copy-id [-i identity file] [-p port] [user@]hostname

General Terminal Commands

Kill process running on a port

kill -9 $(lsof -i:9604 -t) 2> /dev/null 

Run Emulator from Terminal

Android Pixel Emulator

~/Library/Android/sdk/emulator/emulator -avd Pixel_API_26

iOS Emulator

xcrun instruments -w "iPhone X"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment