{"id":30858546,"url":"https://github.com/iamtornado/common_shell_scripts","last_synced_at":"2026-05-16T18:09:43.018Z","repository":{"id":310588633,"uuid":"1040431339","full_name":"iamtornado/common_shell_scripts","owner":"iamtornado","description":"非常实用的bash shell脚本集合","archived":false,"fork":false,"pushed_at":"2026-03-20T02:00:23.000Z","size":312,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-20T17:57:27.035Z","etag":null,"topics":["ai","bash","bash-script","common","llm","shell","shell-scripts","tools"],"latest_commit_sha":null,"homepage":"https://alidocs.dingtalk.com/i/nodes/Amq4vjg890AlRbA6Td9ZvlpDJ3kdP0wQ?utm_scene=team_space","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/iamtornado.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-08-19T01:11:47.000Z","updated_at":"2026-03-20T02:00:26.000Z","dependencies_parsed_at":"2025-08-19T04:10:22.065Z","dependency_job_id":"d3bd38d1-c834-437c-9703-941bcb47adbe","html_url":"https://github.com/iamtornado/common_shell_scripts","commit_stats":null,"previous_names":["iamtornado/common_shell_scripts"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/iamtornado/common_shell_scripts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamtornado%2Fcommon_shell_scripts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamtornado%2Fcommon_shell_scripts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamtornado%2Fcommon_shell_scripts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamtornado%2Fcommon_shell_scripts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iamtornado","download_url":"https://codeload.github.com/iamtornado/common_shell_scripts/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamtornado%2Fcommon_shell_scripts/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33113513,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-16T04:41:52.686Z","status":"ssl_error","status_checked_at":"2026-05-16T04:41:52.009Z","response_time":115,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["ai","bash","bash-script","common","llm","shell","shell-scripts","tools"],"created_at":"2025-09-07T14:13:17.881Z","updated_at":"2026-05-16T18:09:43.012Z","avatar_url":"https://github.com/iamtornado.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Common Shell Scripts Collection\n\n这是一个收集和整理实用shell脚本的代码仓库，旨在为开发者和系统管理员提供高质量、可重用的脚本工具。\n\n## 🎯 项目概述\n\n本项目致力于收集、整理和优化各种实用的shell脚本，涵盖系统管理、开发工具、网络工具、数据处理等多个领域。所有脚本都经过测试和优化，确保在不同环境下都能稳定运行。\n\n## 📁 目录结构\n\n```\ncommon_shell_scripts/\n├── README.md                           # 项目总览（本文件）\n├── download_hf_model/                  # Hugging Face 模型下载脚本\n│   ├── README.md                       # 详细使用说明\n│   ├── download_hf_model.sh            # Linux/macOS 完整版脚本\n│   ├── download_hf_model.bat           # Windows 批处理版本\n│   └── ...\n├── install_browsers/                   # Ubuntu 浏览器安装脚本集合\n│   ├── README.md                       # 浏览器安装脚本说明\n│   ├── install_googlechrome.sh         # Google Chrome 安装脚本\n│   ├── install_microsoft_edge.sh       # Microsoft Edge 安装脚本\n│   └── ...\n├── github_star_migrate/                # GitHub Star 列表导出与批量 Star\n│   ├── README.md                       # 使用说明与 Token 权限\n│   ├── export_github_stars.sh          # 导出当前账号 Star 列表\n│   └── import_github_stars.sh          # 按列表批量 Star\n├── [future_scripts]/                   # 未来添加的脚本目录\n│   ├── script_name/\n│   ├── README.md\n│   └── ...\n└── ...\n```\n\n## 🚀 已包含的脚本\n\n### 1. Hugging Face 模型下载脚本 (`download_hf_model/`)\n\n**功能**: 自动化下载 Hugging Face 上的大模型文件\n**特性**:\n- 支持 Linux/macOS 和 Windows 平台\n- 自动重试机制和错误恢复\n- 镜像站点支持（中国大陆用户优化）\n- 身份验证支持（用于授权模型）\n- 断点续传和下载验证\n\n**适用场景**: AI/ML 开发者、研究人员、需要下载大模型的用户\n\n### 2. Ubuntu 浏览器安装脚本集合 (`install_browsers/`)\n\n**功能**: 在Ubuntu系统上自动安装最新版本的Google Chrome和Microsoft Edge浏览器\n**特性**:\n- 支持Ubuntu 24.04及以上版本\n- 使用官方软件源和GPG密钥验证\n- 完整的系统兼容性检查\n- 智能错误处理和彩色输出\n- 自动创建桌面快捷方式（Edge）\n- 支持重新安装检测\n\n**适用场景**: Ubuntu用户、系统管理员、需要快速安装浏览器的用户\n\n### 3. GitHub Star 迁移 (`github_star_migrate/`)\n\n**功能**: 将一个 GitHub 账号 Star 过的仓库导出为文件，再用另一个账号批量 Star  \n**特性**:\n- 分页拉取完整列表，输出 `txt` + `json`\n- 支持 dry-run、请求间隔、导入报告\n- 适合换号迁移或备份 Star 清单\n\n**适用场景**: 多账号用户、需要迁移收藏夹的开发者（需自备 PAT，见目录内 README）\n\n## 🔮 计划添加的脚本类型\n\n### 系统管理类\n- 系统监控脚本\n- 日志分析工具\n- 备份和恢复脚本\n- 性能优化工具\n- 软件包管理脚本\n\n### 开发工具类\n- 代码格式化脚本\n- 依赖管理工具\n- 构建和部署脚本\n- 测试自动化工具\n- 开发环境配置脚本\n\n### 网络工具类\n- 网络诊断脚本\n- 代理配置工具\n- 下载加速脚本\n- 网络监控工具\n- 浏览器自动化脚本\n\n### 数据处理类\n- 文件批量处理\n- 数据格式转换\n- 日志解析工具\n- 数据清理脚本\n- 数据备份脚本\n\n### 安全工具类\n- 安全检查脚本\n- 权限管理工具\n- 漏洞扫描脚本\n- 安全配置工具\n- 系统加固脚本\n\n## ✨ 脚本特点\n\n### 🛡️ 质量保证\n- 所有脚本都经过测试验证\n- 包含详细的错误处理\n- 支持多种操作系统环境\n- 提供完整的文档说明\n\n### 🔧 易用性\n- 清晰的参数说明\n- 友好的错误提示\n- 支持配置文件\n- 提供使用示例\n\n### 🌍 跨平台支持\n- Linux/macOS 支持\n- Windows 兼容性\n- 环境变量配置\n- 路径处理优化\n\n### 📚 文档完善\n- 详细的 README 说明\n- 使用示例和参数说明\n- 常见问题解答\n- 故障排除指南\n\n## 🚀 快速开始\n\n### 1. 克隆仓库\n```bash\ngit clone https://github.com/iamtornado/common_shell_scripts.git\ncd common_shell_scripts\n```\n\n### 2. 查看可用脚本\n```bash\nls -la\n```\n\n### 3. 进入具体脚本目录\n```bash\n# 进入Hugging Face模型下载脚本目录\ncd download_hf_model\n\n# 或进入浏览器安装脚本目录\ncd install_browsers\n```\n\n### 4. 查看脚本说明\n```bash\ncat README.md\n```\n\n### 5. 运行脚本\n```bash\n# Hugging Face模型下载脚本\n# Linux/macOS\nchmod +x download_hf_model.sh\n./download_hf_model.sh\n\n# Windows\ndownload_hf_model.bat\n\n# 浏览器安装脚本（Ubuntu系统）\nchmod +x install_googlechrome.sh\n./install_googlechrome.sh\n\nchmod +x install_microsoft_edge.sh\n./install_microsoft_edge.sh\n```\n\n## 🤝 贡献指南\n\n我们欢迎社区贡献！如果您有实用的shell脚本想要分享，请：\n\n### 提交新脚本\n1. 在根目录创建新的脚本目录\n2. 包含脚本文件、README说明和示例\n3. 确保脚本有适当的错误处理和文档\n4. 提交 Pull Request\n\n### 改进现有脚本\n1. Fork 项目\n2. 创建功能分支\n3. 进行改进和测试\n4. 提交 Pull Request\n\n### 报告问题\n- 使用 GitHub Issues 报告 bug\n- 提供详细的错误信息和环境描述\n- 包含复现步骤\n\n## 📋 脚本开发规范\n\n### 文件组织\n- 每个脚本放在独立的目录中\n- 包含 README.md 说明文档\n- 提供使用示例和配置文件\n- 包含测试用例（如适用）\n\n### 代码质量\n- 使用清晰的变量命名\n- 添加适当的注释\n- 实现错误处理\n- 支持日志输出\n\n### 文档要求\n- 功能描述清晰\n- 参数说明完整\n- 使用示例具体\n- 常见问题解答\n\n## 🔗 相关资源\n\n- [Shell Scripting Tutorial](https://www.shellscript.sh/)\n- [Bash Reference Manual](https://www.gnu.org/software/bash/manual/)\n- [Advanced Bash-Scripting Guide](https://tldp.org/LDP/abs/html/)\n\n## 📄 许可证\n\n本项目采用 MIT 许可证。详见 [LICENSE](LICENSE) 文件。\n\n## 📞 联系方式\n\n- 项目主页: [GitHub Repository](https://github.com/your-username/common_shell_scripts)\n- 问题反馈: [GitHub Issues](https://github.com/your-username/common_shell_scripts/issues)\n- 讨论交流: [GitHub Discussions](https://github.com/your-username/common_shell_scripts/discussions)\n\n## 🆕 更新日志\n\n### 2025年8月22日\n- **初始版本发布** - 包含Hugging Face模型下载脚本\n- **浏览器安装脚本集合** - 新增Google Chrome和Microsoft Edge自动安装脚本\n- **支持Ubuntu 24.04** - 完整的系统兼容性检查\n- **文档完善** - 详细的README说明和故障排除指南\n\n---\n\n**⭐ 如果这个项目对您有帮助，请给我们一个星标！**\n\n**🔄 持续更新中，欢迎关注和贡献！**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiamtornado%2Fcommon_shell_scripts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiamtornado%2Fcommon_shell_scripts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiamtornado%2Fcommon_shell_scripts/lists"}