Skip to content

Instantly share code, notes, and snippets.

View isaax2's full-sized avatar

Isaac Cerda isaax2

View GitHub Profile
@isaax2
isaax2 / CountryCodes.json
Last active May 7, 2020 17:36 — forked from Goles/CountryCodes.json
Country Codes
[{"name":"Israel","dial_code":"+972","code":"IL"},{"name":"Afghanistan","dial_code":"+93","code":"AF"},{"name":"Albania","dial_code":"+355","code":"AL"},{"name":"Algeria","dial_code":"+213","code":"DZ"},{"name":"AmericanSamoa","dial_code":"+1 684","code":"AS"},{"name":"Andorra","dial_code":"+376","code":"AD"},{"name":"Angola","dial_code":"+244","code":"AO"},{"name":"Anguilla","dial_code":"+1 264","code":"AI"},{"name":"Antigua and Barbuda","dial_code":"+1268","code":"AG"},{"name":"Argentina","dial_code":"+54","code":"AR"},{"name":"Armenia","dial_code":"+374","code":"AM"},{"name":"Aruba","dial_code":"+297","code":"AW"},{"name":"Australia","dial_code":"+61","code":"AU"},{"name":"Austria","dial_code":"+43","code":"AT"},{"name":"Azerbaijan","dial_code":"+994","code":"AZ"},{"name":"Bahamas","dial_code":"+1 242","code":"BS"},{"name":"Bahrain","dial_code":"+973","code":"BH"},{"name":"Bangladesh","dial_code":"+880","code":"BD"},{"name":"Barbados","dial_code":"+1 246","code":"BB"},{"name":"Belarus","dial_code":"+375","
@isaax2
isaax2 / linux-static-ip.sh
Last active May 7, 2020 17:36 — forked from fernandoaleman/Linux Static IP
Linux Statip IP
## Configure eth0
#
# vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE="eth0"
NM_CONTROLLED="yes"
ONBOOT=yes
HWADDR=A4:BA:DB:37:F1:04
TYPE=Ethernet
BOOTPROTO=static
@isaax2
isaax2 / .gitignore
Last active August 29, 2015 14:27 — forked from chhh/.gitignore
.gitignore file for IDEA, Eclipse, NetBeans
#
# Project specific excludes
#
tomcat
#
# Default excludes
#
@isaax2
isaax2 / .npmrc
Created February 8, 2016 23:05 — forked from ikaruce/.npmrc
.npmrc( proxy and strict-ssl setting )
proxy http://{proxy_server}:{proxy_port}
https-proxy http://{proxy_server}:{proxy_port}
strict-ssl=false
@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:
@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 / 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 / Legacy Build System
Created June 11, 2019 02:59
Legacy Build System Xcode
Legacy Build System
Open Xcode --> Select File -->Select Workspace Settings
@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.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*