Category Bash

Self-Hosting GitLab on AWS

Over the last year or so I had been looking at migrating our current single-node Gitlab server to a more de-coupled/distributed architecture. The primary purpose was to ensure that a single component would not bring down the entire platform. By…

Custom Logger in Bash

While writing scripts in Bash, adding some nice, reusable functions for logging. #!/bin/bash # Colors for output GREEN=’\033[0;32m’ BLUE=’\033[0;34m’ RED=’\033[0;31m’ YELLOW=’\033[1;33m’ NC=’\033[0m’ # Error handling handle_error() { echo -e “${RED}Error: $1${NC}” >&2 cleanup exit 1 } # Logging function log()…