An open API service indexing awesome lists of open source software.

https://github.com/qw8880000/codesnippets

python,shell,batch脚本语言的代码片断
https://github.com/qw8880000/codesnippets

batch python shell

Last synced: 3 months ago
JSON representation

python,shell,batch脚本语言的代码片断

Awesome Lists containing this project

README

          

# CodeSnippets

# shell

- [ utf8_to_cp936.sh ](./shell/utf8_to_cp936.sh) - 把utf8编码的文件转换成cp936编码。
- [ get_rhel_info.sh ](./shell/get_rhel_info.sh) - 用来获取rhel主机信息
- [ port_check.sh ](./shell/port_check.sh) - 循环ssh到远程主机并使用nc命令进行端口连通性测试
- [ firewall_add_rich_rule.sh ](./shell/firewall_add_rich_rule.sh) - 循环ssh到远程主机配置firewall
- [ firewall_remove_rich_rule.sh ](./shell/firewall_remove_rich_rule.sh) - 循环ssh到远程主机清空 rich rules规则
- [ thread_count.sh ](./shell/thread_count.sh) - 进程数量统计

# python

- [ check_logfiles.py ](./python/check_files_exist.py) - 用来检查文件的每一行,判断是否包含某关键字。
- [ check_files_exist.py ](./python/check_files_exist.py) - 用来测试多个文件是否存在。
- [ ftp_client.py ](./python/ftp_client.py) - ftp客户端,用来上传和下载文件
- [ get_windows_info.py ](./python/get_windows_info.py) - 用来获取windwos主机信息
- [ get_windows_hotfix.py ](./python/get_windows_hotfix.py) - 获取windows补丁信息

# batch

- [ check_multi_ps.bat ](./batch/check_multi_ps.bat) - 检查进程是否存在。
- [ get_ip.bat ](./batch/get_ip.bat) - 获取系统IP。
- [ modify_file.bat ](./batch/modify_file.bat) - 修改文件内容。