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_mysql5.7_source.sh
Last active September 22, 2020 00:04
Setup Mysql 5.7 from Source Code
#!/bin/bash
# This script used to install Mysql 5.7
# from source Code
# Author Mansur Ul Hasan
# [email protected]
# Environment Function
PrepBuildEnvFunc () {
#!/bin/bash
# This script Mysql 5.7 from RPM Builder
# Author Mansur Ul Hasan
# [email protected]
Prepass () {
echo "Preparing Environement ....."
yum groupinstall "Development Tools"
yum install ncurses-dev libaio perl-DBI
@mansurali901
mansurali901 / notifier
Created January 1, 2018 07:33
LDAP Notifier
#
@mansurali901
mansurali901 / setup_neo4_precompiled.sh
Last active November 30, 2017 09:28
Setting up versions for Neo4j graph database
# This script install Apache Maven 3.5.2 in Ubuntu 16.04
# Author Mansur Ul Hasan
# [email protected]
DownloadVersion () {
case $1 in
setup_2-3-11)
wget -O neo4j-community-2.3.11-unix.tar.gz https://www.dropbox.com/s/uz2kb0kz1b4vwz6/neo4j-community-2.3.11-unix.tar.gz?dl=0
mv `pwd`/neo4j-community-2.3.11-unix.tar.gz /usr/local/
@mansurali901
mansurali901 / setup_mongo3.4Precompiled.sh
Last active January 3, 2018 07:12
Setting up Mongo 3.4 precompiled binaries
#!/bin/bash
# This script install Redis 4 in RHEL7 / Ubuntu
# This installation is done from source code.
# Author : Mansur Ul Hasan
# Email : [email protected]
#
apt-get update -y
apt-get install libssl1.0.0 libssl-dev -y
mkdir -p /usr/local/mongo/
@mansurali901
mansurali901 / setup_redis4-sourceCompile.sh
Last active June 29, 2018 06:56
This script will install Redis on Ubuntu or CentOS or RHEL7
#!/bin/bash
# This script install Redis 4 in RHEL7 / Ubuntu
# This installation is done from source code.
# Author : Mansur Ul Hasan
# Email : [email protected]
# Main Function
InstallR () {
cd /usr/local/redis
make distclean
@mansurali901
mansurali901 / setup_apachemavenUbuntu16.sh
Last active October 22, 2018 15:47
Setup Apache Maven on Ubuntu 16.04 LTS
# This script install Apache Maven 3.5.2 in Ubuntu 16.04
# Author Mansur Ul Hasan
# [email protected]
CleanUp () {
# Removing Source Code
rm -f apache-maven-3.5.2-bin.tar.gz
}
@mansurali901
mansurali901 / GetSwapUsage.sh
Created November 3, 2017 05:11
Get Swap Usage Information in Linux
#!/bin/bash
# Get current swap usage for all running processes
# Courtesy By : Erik Ljungstrom 27/05/2011
# Midified By : Mansur Ul Hasan
# Email : [email protected], [email protected]
SUM=0
OVERALL=0
for DIR in `find /proc/ -maxdepth 1 -type d | egrep "^/proc/[0-9]"` ; do
PID=`echo $DIR | cut -d / -f 3`
@mansurali901
mansurali901 / setup_tomcat8_centos6x.sh
Last active November 3, 2017 04:59
Setup Tomcat 8 in CentOS 6.x
#!/bin/bash
# this script build tomcat8 on CentOS 6.x and 7.x
# with Java OpenJDK 8
# Author : Mansur Ul Hasan
# Servers Planets Inc.
# Email : [email protected], [email protected]
# Gist : https://gist.github.com/mansurali901
UpdateRepo () {
# This script install Mongo 3.4 in Ubuntu 16.04
# Author Mansur Ul Hasan
# [email protected]
SetupMongo3_4 () {
# Adding gpg key
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 0C49F3730359A14518585931BC711F9BA15703C6
# Adding MongoDB repository
echo "deb [ arch=amd64,arm64 ] http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.4.list