Skip to content

Commit d63a470

Browse files
Refactor scripts and snippets to include metadata
- Updated script headers to include @name, @description, @language, and @os for better documentation and consistency across all scripts. - Enhanced user prompts and messages for clarity in various scripts related to Docker, network checks, system performance, and security. - Ensured all scripts follow a uniform format for improved readability and maintainability.
1 parent 962b954 commit d63a470

File tree

60 files changed

+322
-4
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+322
-4
lines changed
Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
#!/usr/bin/env bash
22
# Check - Docker Service (from Check Docker is Running.sh)
3-
# @name: Check Docker is Running
4-
# @description: Checks to See if docker service is running
3+
4+
# @name:Check Docker Service
5+
# @description:Runs check docker service.
6+
# @Language:Bash
7+
# @OS:Linux
8+
59
if systemctl is-active --quiet docker; then echo "Docker service running"; exit 0; else echo "Docker service NOT running"; exit 1; fi
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
#!/usr/bin/env bash
22
# Collect - SSH Port (from SSH Port Fetch.sh)
33

4-
# @name:Collect - SSH Port
5-
# @description: Fetches SHH Port from sshd_config
4+
# @name:Collect SSH Port
5+
# @description:Runs collect ssh port.
6+
# @Language:Bash
7+
# @OS:Linux
68

79
PORT=$(grep -oP '^Port\s+\K\d+' /etc/ssh/sshd_config || true); [ -z "$PORT" ] && PORT=22; echo "SSH Port: $PORT"; exit 0

nexterm/scripts/Docker-Cleanup-Interactive.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
#!/bin/bash
2+
3+
# @name:Docker Cleanup Interactive
4+
# @description:Docker cleanup: $CHOICE
5+
# @Language:Bash
6+
# @OS:Linux
7+
28
@NEXTERM:SELECT CHOICE "Select cleanup operation" "Prune stopped containers" "Remove unused images" "Remove dangling volumes" "Full cleanup (all)" "Cancel"
39

410
CHOICE=$NEXTERM_CHOICE

nexterm/scripts/Docker-Compose-Manager.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
#!/bin/bash
2+
3+
# @name:Docker Compose Manager
4+
# @description:Scanning for docker-compose projects
5+
# @Language:Bash
6+
# @OS:Linux
7+
28
@NEXTERM:STEP "Scanning for docker-compose projects"
39

410
SEARCH_DIRS=("/opt" "/var/docker" "$HOME/docker" "/srv")

nexterm/scripts/Docker-Health-Check.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
#!/bin/bash
2+
3+
# @name:Docker Health Check
4+
# @description:Running Docker health check
5+
# @Language:Bash
6+
# @OS:Linux
7+
28
@NEXTERM:STEP "Running Docker health check"
39

410
if ! command -v docker &> /dev/null; then

nexterm/scripts/Docker-Image-Updater.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
#!/bin/bash
2+
3+
# @name:Docker Image Updater
4+
# @description:Check for Docker image updates
5+
# @Language:Bash
6+
# @OS:Linux
7+
28
@NEXTERM:STEP "Check for Docker image updates"
39

410
if ! command -v docker &> /dev/null; then

nexterm/scripts/Network-Connection-Monitor.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
#!/bin/bash
2+
3+
# @name:Network Connection Monitor
4+
# @description:Starting connection monitor
5+
# @Language:Bash
6+
# @OS:Linux
7+
28
@NEXTERM:INPUT "Enter critical hosts to monitor (space-separated)" "8.8.8.8 1.1.1.1"
39
HOSTS=$NEXTERM_INPUT
410

nexterm/scripts/Network-Port-Scanner.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
#!/bin/bash
2+
3+
# @name:Network Port Scanner
4+
# @description:Scanning common ports on $TARGET
5+
# @Language:Bash
6+
# @OS:Linux
7+
28
@NEXTERM:INPUT "Enter target IP or hostname" "192.168.1.1"
39
TARGET=$NEXTERM_INPUT
410

nexterm/scripts/Network-Speed-Test.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
#!/bin/bash
2+
3+
# @name:Network Speed Test
4+
# @description:Check for speedtest tool
5+
# @Language:Bash
6+
# @OS:Linux
7+
28
@NEXTERM:STEP "Check for speedtest tool"
39

410
if ! command -v speedtest-cli &> /dev/null && ! command -v speedtest &> /dev/null; then

nexterm/scripts/Performance-Disk-IO-Check.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
#!/bin/bash
2+
3+
# @name:Performance Disk IO Check
4+
# @description:Analyzing disk I/O activity
5+
# @Language:Bash
6+
# @OS:Linux
7+
28
@NEXTERM:STEP "Analyzing disk I/O activity"
39

410
if ! command -v iotop &> /dev/null; then

0 commit comments

Comments
 (0)