{"id":26455072,"url":"https://github.com/sundanc/auto_scripts","last_synced_at":"2025-03-18T20:29:57.890Z","repository":{"id":282535508,"uuid":"948906959","full_name":"sundanc/auto_scripts","owner":"sundanc","description":"A collection of useful automation scripts for system administration, development, and DevOps tasks.","archived":false,"fork":false,"pushed_at":"2025-03-15T08:35:02.000Z","size":19,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-15T09:25:45.342Z","etag":null,"topics":["auto-script","automation","bash","bash-scripting","cicd","linux","script","scripts-collection"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/sundanc.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":"2025-03-15T08:20:50.000Z","updated_at":"2025-03-15T09:03:25.000Z","dependencies_parsed_at":"2025-03-15T09:36:07.425Z","dependency_job_id":null,"html_url":"https://github.com/sundanc/auto_scripts","commit_stats":null,"previous_names":["sundanc/auto_scripts"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sundanc%2Fauto_scripts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sundanc%2Fauto_scripts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sundanc%2Fauto_scripts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sundanc%2Fauto_scripts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sundanc","download_url":"https://codeload.github.com/sundanc/auto_scripts/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244300937,"owners_count":20430840,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["auto-script","automation","bash","bash-scripting","cicd","linux","script","scripts-collection"],"created_at":"2025-03-18T20:29:54.474Z","updated_at":"2025-03-18T20:29:57.884Z","avatar_url":"https://github.com/sundanc.png","language":"Shell","readme":"\u003cdiv align=\"center\"\u003e\n  \u003cbr\u003e\n  \u003cimg src=\"https://img.shields.io/badge/AUTOMATION-SCRIPTS-orange?style=for-the-badge\" alt=\"Automation Scripts\"/\u003e\n  \u003cimg src=\"https://img.shields.io/badge/OPERATIONS-SPECIALIST-blue?style=for-the-badge\" alt=\"Operations Specialist\"/\u003e\n  \u003cbr\u003e\u003cbr\u003e\n  \u003ctable\u003e\n    \u003ctr\u003e\n      \u003ctd\u003e\n        \u003cimg src=\"https://img.shields.io/badge/Author-@sundanc-success?style=flat-square\" alt=\"Author\"/\u003e\n      \u003c/td\u003e\n      \u003ctd\u003e\n        \u003cimg src=\"https://img.shields.io/badge/GitHub-sundanc-4183C4?style=flat-square\u0026logo=github\" alt=\"GitHub\"/\u003e\n      \u003c/td\u003e\n      \u003ctd\u003e\n        \u003cimg src=\"https://img.shields.io/badge/Status-Active-success?style=flat-square\" alt=\"Status\"/\u003e\n      \u003c/td\u003e\n    \u003c/tr\u003e\n  \u003c/table\u003e\n  \u003cbr\u003e\n  \u003csup\u003e⭐ Please star if you find this useful ⭐\u003c/sup\u003e\n  \u003cbr\u003e\n  \u003csup\u003e📋 Original content - Attribution required if used or modified 📋\u003c/sup\u003e\n\u003c/div\u003e\n\n# Auto-Scripts Collection\n\nA collection of useful automation scripts for system administration, development, and DevOps tasks.\n\n## IT Arsenal Command Center\n\nThe IT Arsenal is a unified command center that brings all scripts together into a cohesive toolkit. This central interface makes it easy to access all scripts in one place, with consistent logging, configuration, and execution handling. [Check my blog post](https://brokeninfra.tech/using_it_arsenal/)\n\nThis blog post covers:\n- Installation and setup\n- Detailed usage instructions for all tool categories\n- Advanced features and integrations\n- Creating your own arsenal-compatible scripts\n- Troubleshooting common issues\n- Best practices for IT automation\n\nWhether you're new to the toolkit or looking to master advanced features, this comprehensive guide will help you leverage the full power of the IT Arsenal.\n\n\nTo launch the arsenal:\n\n```bash\nchmod +x arsenal.sh\n./arsenal.sh\n```\n\nThe arsenal provides:\n- Menu-driven access to all tools\n- Unified logging system\n- Centralized configuration\n- Error handling and notifications\n- Easy script execution\n\n## Comprehensive Tutorial\n\nWe've created a detailed tutorial to help you get the most out of the IT Arsenal:\n\n**[How to Use IT Arsenal: Your One-Stop IT Automation Solution](docs/using_it_arsenal.md)**\n\n## Directory Structure\n\n- **system/** - Scripts for system administration tasks\n- **development/** - Scripts for development workflows and tools\n- **devops/** - Scripts for deployment and CI/CD automation\n- **database/** - Scripts for database management and maintenance\n- **lib/** - Shared libraries and utilities\n- **config/** - Configuration files\n- **logs/** - Log files generated by the arsenal and scripts\n- **docs/** - Documentation and tutorials\n\n## Available Scripts\n\n### System Administration\n\n| Script | Description |\n|--------|-------------|\n| `vm.sh` | Enhanced VM detection script that checks for hypervisors, virtual hardware signatures, network adapters and container environments. |\n| `uptime.sh` | Displays system uptime and boot time in a human-readable format. |\n| `updateupgrade.sh` | Simple apt package update and upgrade script with colored output. |\n| `syshealth.sh` | Advanced system health monitoring with adaptive thresholds based on historical data. Includes CPU, memory, disk usage and load average tracking. |\n| `sys_monitor.sh` | Simple system monitoring script that logs system statistics every 5 seconds. |\n| `health_check.sh` | Service health check that verifies if nginx is running and starts it if needed. |\n| `disk_usage.sh` | Monitors disk usage and alerts when partitions exceed the defined threshold (85%). |\n| `connectivity_check.sh` | Checks network connectivity to a specified host and logs the result. |\n| `security_audit.sh` | Comprehensive security audit tool that scans for common vulnerabilities and configuration issues. |\n\n### Development Tools\n\n| Script | Description |\n|--------|-------------|\n| `git_branch_management.sh` | Interactive git branch management tool for creating, deleting, and merging branches. Includes safety checks and confirmation prompts. |\n| `autogit.sh` | Streamlines the git workflow by automating add, commit, and push operations with interactive prompts. |\n| `create_env.sh` | Creates and activates a Python virtual environment for development projects. |\n\n### DevOps \u0026 Deployment\n\n| Script | Description |\n|--------|-------------|\n| `ci_cd_auto.sh` | Comprehensive CI/CD automation system with branch management, testing, code quality checks, and deployment capabilities. |\n| `deploy.sh` | Deploys an application from a git repository to a target server with options for branch selection and service restart. |\n| `backup.sh` | Simple file backup script that creates timestamped backup directories. |\n\n### Database Management\n\n| Script | Description |\n|--------|-------------|\n| `database_backup.sh` | MySQL database backup utility that creates timestamped SQL dumps. |\n| `autodb.sh` | Advanced database maintenance script with backup, optimization, connection monitoring, and performance reporting features. |\n\n## Library Functions\n\nThe `lib/common.sh` provides shared functionality for all scripts, including:\n\n- Configuration management\n- Logging functions\n- System monitoring utilities\n- File management helpers\n- User interaction tools\n- Network utilities\n\nTo use these functions in your own scripts:\n\n```bash\nsource \"$(dirname \"$0\")/../lib/common.sh\"\n```\n\n## Usage\n\nMost scripts can be executed directly after making them executable:\n\n```bash\nchmod +x script_name.sh\n./script_name.sh\n```\n\nHowever, it's recommended to use the IT Arsenal command center to execute scripts for consistent logging and error handling.\n\n## Contributing\n\nFeel free to contribute to this collection by adding new scripts or improving existing ones. Please follow these guidelines:\n- Add clear comments to your script\n- Include error handling where appropriate\n- Use consistent formatting\n- Document any dependencies or prerequisites\n\n## License\n\nThese scripts are provided as-is under the MIT license. Use at your own risk.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsundanc%2Fauto_scripts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsundanc%2Fauto_scripts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsundanc%2Fauto_scripts/lists"}