This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/zsh | |
# 从远程服务器下载文件 | |
# 基于scp | |
# 传入路径 | |
s_info=('IP1' 'IP2') | |
u_info=用户名 | |
bastion_ip='跳板机IP' | |
bastion_port=跳板机端口 | |
reply_info='-JUMPER-0' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/zsh | |
# 上传或者下载文件 | |
# 基于scp | |
# 传入路径 | |
s_info=('IP1' 'IP2') | |
u_info=user | |
bastion_ip='跳板机IP' | |
bastion_port=跳板机端口 | |
reply_info='-JUMPER-0' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/zsh | |
# ssh自动登录服务器脚本 | |
# zsh 数组的索引从1开始,切记! | |
# 使用方法:通过传入索引就可以登录相对应的服务器 | |
s_info=('server1-IP' 'server2-IP') # 修改 - 服务器IP地址数组 | |
u_info=seonwater # 修改 - 登录服务器用户名 | |
bastion_ip='IP地址' # 修改 - 跳板机IP地址 | |
bastion_port=18181 # 修改 - 跳板机指定端口 | |
reply_info='-JUMPER-0' # 修改 - 登录跳板机返回的信息 | |
rsa_path='~/.ssh/server_id_rsa' # 修改 - 私钥地址 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Editing ### | |
`Ctrl + Space` 基本代码完成(任意类的,方法的或者变量的名称) | |
`Ctrl + Shift + Enter` 补全当前语句 | |
`Ctrl + P` Parameter info (within method call arguments) | |
`Ctrl + Q` 快速查找文档 | |
`Ctrl + 鼠标滑过` 简明信息查看 | |
`Ctrl + F1` 在插入符号处显示错误或者警告信息 | |
`Alt + Insert` 生成代码...(Getters,Setters,Constructors) | |
`Ctrl + O` 重写方法 | |
`Ctrl + I` 实现方法 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
show full fields from tablename # 查看表信息 | |
desc tablename # 查看表信息 |