Skip to content

Instantly share code, notes, and snippets.

Fernando Aleman fernandoaleman

  • Dallas, TX
Block or report user

Report or block fernandoaleman

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View mysql-master-slave-replication-centos-7.md

MySQL Master-Slave Replication on CentOS 7

Install and configure MySQL with master-slave replication. The benefits of this include high availability, backups, disaster recovery and reporting.

Enable MySQL Repository

Select a MySQL repository version to enable

MySQL 8.0

@fernandoaleman
fernandoaleman / mysql-5.7-master-slave-replication-centos-7.md
Last active Jun 4, 2019
MySQL 5.7 Master-Slave Replication on CentOS 7
View mysql-5.7-master-slave-replication-centos-7.md

MySQL 5.7 Master-Slave Replication on CentOS 7

Install and configure MySQL 5.7 with master-slave replication. The benefits of this include high availability, backups, disaster recovery and reporting.

Install MySQL 5.7

Enable MySQL repository

yum localinstall -y https://dev.mysql.com/get/mysql57-community-release-el7-9.noarch.rpm
@fernandoaleman
fernandoaleman / reduce-lvm-partition-centos-7.md
Last active Jun 4, 2019
Reduce an LVM partition on CentOS 7
View reduce-lvm-partition-centos-7.md

Reduce LVM Partition on CentOS 7

Sometimes when creating a new CentOS 7 server, the drive is partioned with the root, boot and swap, and then all the rest of the space is given to the home directory.

Here, we are going to reduce the size of the /home partition and allocate the remaining space back to the root partition.

List Block Devices

List the current block devices

@fernandoaleman
fernandoaleman / install-rabbitmq-centos-7.md
Last active Dec 12, 2019
Install RabbitMQ on CentOS 7
View install-rabbitmq-centos-7.md

Install RabbitMQ on CentOS 7

sudo yum -y install epel-release
sudo yum -y update

Install Erlang

Download repository

@fernandoaleman
fernandoaleman / .travis.yml
Last active Nov 9, 2018
Sample chef cookbook .travis.yml file
View .travis.yml
sudo: required
dist: trusty
addons:
apt:
sources:
- chef-current-trusty
packages:
- chefdk
@fernandoaleman
fernandoaleman / mysql2-mojave.md
Created Oct 2, 2018
Install mysql2 on MacOS Mojave
View mysql2-mojave.md

Problem

Installing mysql2 gem errors on MacOS Mojave.

Solution

Make sure openssl is installed on Mac via Homebrew.

brew install openssl
View updating-chef-node.md

Problem

An existing chef node node-1 needs to be renamed node-01.

Solution

  1. knife node edit node-1
    • Change the node_name to node-01.
  2. knife node delete node-1
  3. knife client delete node-1
@fernandoaleman
fernandoaleman / chef-error-running-exception-handlers.md
Created Oct 1, 2018
Solving Chef ERROR: Running exception handlers - 403 Forbidden
View chef-error-running-exception-handlers.md

Error

Running handlers:
[2018-10-01T11:07:45-05:00] ERROR: Running exception handlers
Running handlers complete
[2018-10-01T11:07:45-05:00] ERROR: Exception handlers complete
Chef Client failed. 33 resources updated in 01 minutes 06 seconds
[2018-10-01T11:07:45-05:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
[2018-10-01T11:07:45-05:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
@fernandoaleman
fernandoaleman / apache-503-proxy.md
Last active Oct 1, 2018
Solving Apache 503 “Service temporarily unavailable” proxy timed out
View apache-503-proxy.md

Error

[Tue Jun 03 22:05:51 2014] [error] (110)Connection timed out: proxy: HTTP: attempt to connect to 127.0.0.1:3000 (127.0.0.1) failed
[Tue Jun 03 22:05:51 2014] [error] ap_proxy_connect_backend disabling worker for (127.0.0.1)
[Tue Jun 03 22:05:52 2014] [error] proxy: HTTP: disabled connection for (127.0.0.1)
[...]

The problem is that the Apache proxy module, recognising that the service was unavailable, stopped redirecting requests to it for one minute.

@fernandoaleman
fernandoaleman / install-rabbitmq-ubuntu1604.md
Last active Nov 29, 2019
Install RabbitMQ on Ubuntu 16.06
View install-rabbitmq-ubuntu1604.md

Install RabbitMQ on Ubuntu 16.04

Install Erlang

wget https://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb
sudo dpkg -i erlang-solutions_1.0_all.deb
sudo apt-get update -y
sudo apt-get install -y erlang erlang-nox
You can’t perform that action at this time.