Skip to content

Instantly share code, notes, and snippets.

View mansurali901's full-sized avatar

Mansur Ul Hasan mansurali901

View GitHub Profile
@mansurali901
mansurali901 / setup_apachecentOS.sh
Last active September 5, 2017 08:00
Script to compile Apache from source code on CentOS
#!/bin/bash
# This script is tested on CentOS for Installing Apache from Source Code
# Author Mansur UlHasan
# Sr, Network & Sys Admin
# GFK Etilize Pak
# To install C/C++ Compilers, AutoConf and AutoMake
yum install gcc gcc-c++ autoconf automake -y
# Install Perl Compatible Regular Expressions Libraries (PCRE)
@mansurali901
mansurali901 / replication-monitor.sh
Last active December 4, 2020 05:11
MySql Replication Script
#!/bin/bash
# Script is setup for Mysql Replication Monitoring
# Author Mansur UlHasan
# Mail [email protected]
# Mail Function
# Variables
HOME="/usr/local/cron"
Err1=`mysql -pv1t@m1nC -e 'show slave status \G;' |grep Last_Errno:`