Skip to content

Instantly share code, notes, and snippets.

@dfang
Last active May 15, 2018 13:20
Show Gist options
  • Select an option

  • Save dfang/d5fce489e279219147e52a22e2f166c8 to your computer and use it in GitHub Desktop.

Select an option

Save dfang/d5fce489e279219147e52a22e2f166c8 to your computer and use it in GitHub Desktop.
iTerm shortcut keys

Jump backward or forward by word(option + left/right)

Preferences ---> Keys ---> Send Escape Sequence b/f

Insert proxychains4 -q before commands (option + q)

Preferences ---> Keys ---> Send Hex Code (0x01 0x70 0x72 0x6f 0x78 0x79 0x63 0x68 0x61 0x69 0x6e 0x73 0x34 0x20 0x2d 0x71 0x20 0x0D)

Insert http_proxy=http://0.0.0.0:8118 https_proxy=https://0.0.0.0:8118 before commands ( option + p)

Preferences ---> Keys ---> Send Hex Code (0x01 0x68 0x74 0x74 0x70 0x5f 0x70 0x72 0x6f 0x78 0x79 0x3d 0x68 0x74 0x74 0x70 0x3a 0x2f 0x2f 0x30 0x2e 0x30 0x2e 0x30 0x2e 0x30 0x3a 0x38 0x31 0x31 0x38 0x20 0x68 0x74 0x74 0x70 0x73 0x5f 0x70 0x72 0x6f 0x78 0x79 0x3d 0x68 0x74 0x74 0x70 0x73 0x3a 0x2f 0x2f 0x30 0x2e 0x30 0x2e 0x30 0x2e 0x30 0x3a 0x38 0x31 0x31 0x38 0x20 0x0D)

@dfang
Copy link
Author

dfang commented May 15, 2018

proxychains 不能代理某些命令, 比如gcloud, go
需要用到http_proxy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment