Skip to content

Instantly share code, notes, and snippets.

View isaax2's full-sized avatar

Isaac Cerda isaax2

View GitHub Profile
@isaax2
isaax2 / MySQL_5-7_macOS.md
Last active March 1, 2021 21:01 — 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.
@isaax2
isaax2 / jhipster-tasks
Last active October 5, 2020 23:17
jhipster-tasks
#!/usr/bin/env bash
#Uninstall
yarn global remove generator-jhipster
npm uninstall -g generator-jhipster
#restart terminal
@isaax2
isaax2 / homebrew cheatsheet
Created May 27, 2020 19:37
homebrew cheatsheet
https://devhints.io/homebrew
@isaax2
isaax2 / idea.vmoptions
Created May 20, 2020 17:16
Custom Intellij Idea Options
# custom IntelliJ IDEA VM options
-Xms2048m
-Xmx4096m
-XX:MaxPermSize=1024m
-XX:ReservedCodeCacheSize=240m
-XX:+UseCompressedOops
-Dfile.encoding=UTF-8
-XX:+UseConcMarkSweepGC
-XX:SoftRefLRUPolicyMSPerMB=50
@isaax2
isaax2 / npm-cheat-seet.sh
Last active May 13, 2020 18:28
npm cheat sheet
#!/usr/bin/env bash
#List dependencies
npm list --depth=0
#List outdated dependencies
npm outdated
#Update dependencies
npm update
@isaax2
isaax2 / mac-ports-in-use.sh
Created May 7, 2020 17:05
Mac ports in use
#!/usr/bin/env bash
lsof -nP +c 15 | grep LISTEN
@isaax2
isaax2 / hosting-on-github.md
Created January 9, 2020 23:19 — forked from TylerFisher/hosting-on-github.md
Basic steps for hosting on Github

Hey there, apparently people are still using this Gist from 2013! It's out of date! Consult the Github docs.

Steps for Hosting a Website on GitHub

  1. Create a GitHub account on github.com.
  2. Download either [GitHub for Mac][1] or [GitHub for Windows][2], depending on your operating system. Open the app and log in using the account you just created.
  3. (On Mac): After you login, click advanced and make sure that your name and email are correct. Then, click "Install Command Line Tools", just in case you want to start using the command line later in life.
  4. Create a new repository in your GitHub application. Name it your-username.github.io. The name is very important. Note the folder that GitHub is saving the repository to. Make sure the "Push to GitHub?" box is checked.
  5. Move your website's files into the folder that GitHub just created when you made the repository. IMPORTANT: Your homepage HTML file must be called "index.html", and it must exist in the top-level
@isaax2
isaax2 / .vimrc
Created August 30, 2019 21:37
vim config
filetype plugin indent on
syntax on
@isaax2
isaax2 / mac-remove-old-jdk.sh
Last active October 29, 2019 17:33
Mac remove old java jdk
#!/usr/bin/env bash
sudo rm -rvf /Library/Java/JavaVirtualMachines/jdk1.6*.jdk
sudo rm -rvf /Library/Java/JavaVirtualMachines/jdk1.7*.jdk
#Plugins
sudo rm -rvf /Library/PreferencePanes/JavaControlPanel.prefPane
sudo rm -rvf /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin
sudo rm -rvf /Library/LaunchAgents/com.oracle.java.Java-Updater.plist
@isaax2
isaax2 / gist:48a0a3950e9368798caf993abde9ea1c
Created August 28, 2019 00:16 — forked from CristinaSolana/gist:1885435
Keeping a fork up to date

1. Clone your fork:

git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream