Skip to content

Instantly share code, notes, and snippets.

View isaax2's full-sized avatar

Isaac Cerda isaax2

View GitHub Profile
@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 / free-space.sh
Last active May 7, 2020 17:37
Free Space Intellij from ~/Library/Caches
#!/usr/bin/env bash
#Remove Intellij caches
rm -rvf ~/Library/Caches/IntelliJIdea201*
rm -rvf ~/Library/Caches/WebStorm201*
@isaax2
isaax2 / android-wifi-development.sh
Last active December 7, 2020 22:27 — forked from icerda/android-wifi-development.sh
Setup wifi for android development
#!/usr/bin/env bash
#Set Listener on the phone
adb tcpip 5555
DEVICE_IP=192.168.137.65
#Connect to the phone
#adb connect <IP address of your device>:5555
adb connect $DEVICE_IP:5555
@isaax2
isaax2 / free-space-xcode.sh
Last active June 9, 2024 19:25
Free Space Xcode Mac
#!/usr/bin/env bash
#Solid state drives are an awesome performance booster. But unfortunately, they are more expensive and naturally come in smaller capacities than hard disk drives. Check these directories Xcode uses and see if you can delete some stuff:
#~/Library/Developer/Xcode/DerivedData/ - It's totally safe to delete directories here. Especially for projects that you no longer need. When you rebuild your project, they will be created for you.
#~/Library/Developer/Xcode/iOS DeviceSupport/ - a folder for each combination of iOS (physical) device you have plugged in and the iOS version you were running on it. If you have been doing iOS developer for a while, you will have accrued quite a number of these folders that you can remove. They will be re-generated for you when you plug in a device if you accidentally delete a more recent folder.
#You can easily reclaim a couple of gigs to tens of gigs of space by cleaning up these 2 directories.
rm -rvf ~/Library/Developer/Xcode/DerivedData/
rm -rvf ~/Library/
@isaax2
isaax2 / upgrade-node-with-nvm.sh
Last active May 7, 2020 17:37 — forked from icerda/upgrade-node-with-nvm.sh
Upgrade node with nvm
#!/usr/bin/env bash
OLD_VERSION=10.15.3
NEW_VERSION=10.16.3
nvm install $NEW_VERSION --reinstall-packages-from=$OLD_VERSION
nvm alias default $NEW_VERSION
nvm uninstall $OLD_VERSION
@isaax2
isaax2 / mac-config.sh
Last active April 12, 2021 01:01
Semi auto-install development environment for a new Mac
#!/bin/bash
#Download manually Xcode https://developer.apple.com/download/more/
#Install oh-my-zsh
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
#Activate sintax highlighting plugin
#Clone this repository in oh-my-zsh's plugins directory:
@robhrt7
robhrt7 / MySQL_5-7_macOS.md
Last active February 28, 2024 03:48 — forked from nrollr/MySQL_macOS_Sierra.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.