Skip to content

Instantly share code, notes, and snippets.

View galanteh's full-sized avatar

Hernan Galante galanteh

  • Cloudera
  • Mexico City
View GitHub Profile
@galanteh
galanteh / install.sh
Last active April 2, 2023 18:13
Install Megatools on CentOS 7. Megatools are the commands to be used on linux
#!/bin/bash
yum -y install gcc make glib2-devel libcurl-devel openssl-devel gmp-devel tar automake autoconf libtool wget asciidoc
wget https://megatools.megous.com/builds/megatools-1.10.0-rc1.tar.gz
tar -xzvf megatools*.tar.gz
cd megatools*
./configure
make
make install
# megadl 'https://mega.nz/#xxxxxxxxxxx!'
@galanteh
galanteh / install.sh
Created March 22, 2020 23:09
Splunk installation on Linux
yum -y update
wget -O splunk-8.0.2.1-f002026bad55-linux-2.6-x86_64.rpm 'https://www.splunk.com/bin/splunk/DownloadActivityServlet?architecture=x86_64&platform=linux&version=8.0.2.1&product=splunk&filename=splunk-8.0.2.1-f002026bad55-linux-2.6-x86_64.rpm&wget=true'
chmod 744 splunk-8.0.2.1-f002026bad55-linux-2.6-x86_64.rpm
rpm -i splunk-8.0.2.1-f002026bad55-linux-2.6-x86_64.rpm
rpm -i --prefix=/opt/splunk splunk-8.0.2.1-f002026bad55-linux-2.6-x86_64.rpm
export SPLUNK_HOME=/opt/splunk
chown -R splunk:splunk $SPLUNK_HOME
$SPLUNK_HOME/bin/splunk start --accept-license --answer-yes
@galanteh
galanteh / install_fake_Apache_log_generator.sh
Created March 22, 2020 23:44
Fake Apache Log Generator from NiFi
mkdir -p /opt/nifi
cd /opt/nifi/
yum -y install git epel-release python-pip
git clone https://github.com/kiritbasu/Fake-Apache-Log-Generator
cd /opt/nifi/Fake-Apache-Log-Generator
pip install --upgrade pip
pip install -r requirements.txt
chown -R nifi:nifi /opt/nifi/
@galanteh
galanteh / install.sh
Created April 2, 2020 14:31
AWS Disk Extension on Linux
# After extending the disk on the AWS console. You should check in Linux the disk.
# Check
lsblk
# Output will somthing like this
#
# NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
# xvda 202:0 0 20G 0 disk
# └─xvda1 202:1 0 8G 0 part /