{"id":19846148,"url":"https://github.com/qw8880000/codesnippets","last_synced_at":"2026-04-14T01:32:19.821Z","repository":{"id":167134280,"uuid":"171977051","full_name":"qw8880000/CodeSnippets","owner":"qw8880000","description":"python,shell,batch脚本语言的代码片断","archived":false,"fork":false,"pushed_at":"2022-11-16T09:30:57.000Z","size":31,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-28T22:51:56.675Z","etag":null,"topics":["batch","python","shell"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/qw8880000.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-02-22T02:02:24.000Z","updated_at":"2022-11-16T05:53:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"2b405811-f18c-4b1e-a46f-722d73d0ed6a","html_url":"https://github.com/qw8880000/CodeSnippets","commit_stats":null,"previous_names":["qw8880000/codesnippets"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/qw8880000/CodeSnippets","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qw8880000%2FCodeSnippets","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qw8880000%2FCodeSnippets/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qw8880000%2FCodeSnippets/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qw8880000%2FCodeSnippets/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/qw8880000","download_url":"https://codeload.github.com/qw8880000/CodeSnippets/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qw8880000%2FCodeSnippets/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31778580,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-14T00:11:49.126Z","status":"ssl_error","status_checked_at":"2026-04-14T00:10:29.837Z","response_time":93,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["batch","python","shell"],"created_at":"2024-11-12T13:10:36.361Z","updated_at":"2026-04-14T01:32:19.797Z","avatar_url":"https://github.com/qw8880000.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CodeSnippets\n\n# shell\n\n  - [ utf8_to_cp936.sh ](./shell/utf8_to_cp936.sh) - 把utf8编码的文件转换成cp936编码。\n  - [ get_rhel_info.sh ](./shell/get_rhel_info.sh) - 用来获取rhel主机信息\n  - [ port_check.sh  ](./shell/port_check.sh) - 循环ssh到远程主机并使用nc命令进行端口连通性测试\n  - [ firewall_add_rich_rule.sh  ](./shell/firewall_add_rich_rule.sh) - 循环ssh到远程主机配置firewall\n  - [ firewall_remove_rich_rule.sh  ](./shell/firewall_remove_rich_rule.sh) - 循环ssh到远程主机清空 rich rules规则\n  - [ thread_count.sh ](./shell/thread_count.sh) - 进程数量统计\n\n# python\n\n  - [ check_logfiles.py ](./python/check_files_exist.py) - 用来检查文件的每一行，判断是否包含某关键字。\n  - [ check_files_exist.py ](./python/check_files_exist.py) - 用来测试多个文件是否存在。\n  - [ ftp_client.py ](./python/ftp_client.py) - ftp客户端，用来上传和下载文件\n  - [ get_windows_info.py ](./python/get_windows_info.py) - 用来获取windwos主机信息\n  - [ get_windows_hotfix.py ](./python/get_windows_hotfix.py) - 获取windows补丁信息\n\n# batch\n\n  - [ check_multi_ps.bat ](./batch/check_multi_ps.bat) - 检查进程是否存在。\n  - [ get_ip.bat ](./batch/get_ip.bat) - 获取系统IP。\n  - [ modify_file.bat ](./batch/modify_file.bat) - 修改文件内容。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqw8880000%2Fcodesnippets","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqw8880000%2Fcodesnippets","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqw8880000%2Fcodesnippets/lists"}