Skip to content

Instantly share code, notes, and snippets.

View aneudysamparo's full-sized avatar
🎯
Focusing

Aneudys Amparo aneudysamparo

🎯
Focusing
View GitHub Profile
@aneudysamparo
aneudysamparo / how-to-setup-mac-elasticsearch.md
Created November 17, 2019 21:49 — forked from jpalala/how-to-setup-mac-elasticsearch.md
setting up elasticsearch on your mac with brew

Install va homebrew

If you don't have homebrew installed - get homebrew here

Then run: brew install elasticsearch

Configuration

Update the elasticsearch configuration file in /usr/local/etc/elasticsearch/elasticsearch.yml.

@aneudysamparo
aneudysamparo / MySQL_5-7_macOS.md
Created September 24, 2019 15:51 — forked from robhrt7/MySQL_5-7_macOS.md
Install MySQL 5.7 on macOS using Homebrew

This is a fork of original gist https://gist.github.com/nrollr/3f57fc15ded7dddddcc4e82fe137b58e, with slight changes on pointing to 5.7 version branch, instead of 8 (latest default of MySQL in Hombrew).

Install MySQL 5.7 on macOS

This procedure explains how to install MySQL using Homebrew on macOS (Sierra 10.12 and up)

Install Homebrew

  • Installing Homebrew is effortless, open Terminal and enter :
    $ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  • Note: Homebrew will download and install Command Line Tools for Xcode 8.0 as part of the installation process.
@aneudysamparo
aneudysamparo / 0000_00_00_000000_create_user_table.php
Created September 18, 2019 15:37 — forked from safoorsafdar/0000_00_00_000000_create_user_table.php
Multiple Tenancy (with separate database) Migration Management for Laravel 5.*
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateUsersTable extends Migration
{
/**
* Migration type to syncronized with multiple/single database connection
*/