Skip to content

neverovski/bash-scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Automation Bash Scripts

This repository contains various bash scripts to automate common tasks and workflows on macOS. Each script is organized by category and designed to streamline repetitive processes with colorful, user-friendly output.

Scripts Overview

SD Card Tools (sd-card/)

Scripts for SD card management and preparation on macOS.

  • erase-disk.sh - SD card eraser and formatter with safety checks

View detailed documentation →

System Monitoring (system/)

System monitoring, diagnostics, and log analysis tools.

  • health-check.sh - Comprehensive system health monitoring
  • log-analyzer.sh - System log analysis and error detection

View detailed documentation →

Getting Started

  1. Clone this repository:

    git clone https://github.com/neverovski/bash-scripts.git
    cd bash-scripts
  2. Make scripts executable:

    chmod +x sd-card/*.sh
    chmod +x system/*.sh
  3. Review and customize script variables before running

    • Each script contains configuration variables at the top
    • Update device paths, thresholds, and other settings as needed

General Usage Guidelines

  • Always review script contents before execution
  • Ensure you have necessary permissions (sudo when required)
  • Backup important data before running destructive operations
  • Test scripts in safe environments first
  • Check device paths and configurations before running
  • Use --help flag to see available options for each script

Script Template

When adding new scripts, use this template:

#!/bin/bash
# Script: [Script Name]
# Description: [Brief description of what the script does]
# Author: [Your name]
# Date: [Creation date]

# Add safety checks
set -e  # Exit on error

# Colors for output
RED='\033[0;31m'
GREEN='\033[0;32m'
YELLOW='\033[1;33m'
BLUE='\033[0;34m'
CYAN='\033[0;36m'
NC='\033[0m' # No Color

# Configuration
# [Add your configuration variables here]

# [Your script logic here]

Contributing

Happy to get your feedback! Feel free to:

  • Report bugs or issues
  • Suggest new features or improvements
  • Submit pull requests
  • Improve documentation

📜 License

This project is licensed under the MIT License. See the LICENSE file for details.

About

Automation bash scripts for development workflows and system tasks

Topics

Resources

License

Stars

Watchers

Forks

Languages