Skip to content

Instantly share code, notes, and snippets.

View wechain's full-sized avatar

Anthony Lai wechain

  • Kuala Lumpur, Malaysia
View GitHub Profile
@wechain
wechain / gist:c59766c6b7a67913c8f3d30728c1e532
Created August 12, 2018 08:29 — forked from mestizo/gist:9167834
Completely disable IPv6 on OSX
#To Get List of Hardware
sudo networksetup -listallhardwareports
#To Disable IPv6 on Wifi Adapter
sudo networksetup -setv6off wi-fi
#To Disable IPv6 on Built-in Ethernet Adapter
sudo networksetup -setv6off Ethernet
@wechain
wechain / brewfile
Created August 10, 2018 19:19 — forked from germanny/brewfile
brewfile
cask_args appdir: '/Applications'
#
# 1 taps
#
# homebrew dupes
tap 'homebrew/dupes'
# homebrew versions
#!/usr/bin/env bash
# Ask for the administrator password upfront
echo 'Please enter your password to grant sudo-rights:'
sudo -v
echo 'Empty the Trash on all mounted volumes and the main HDD...'
sudo rm -rfv /Volumes/*/.Trashes &>/dev/null
sudo rm -rfv ~/.Trash &>/dev/null
sudo du -gxd 5 / | awk '$1 >= 5{print}'
cd ~/Dev
du -d 1 -h
find . -name "node_modules" -print -exec rm -rf {} ";"
@wechain
wechain / 00_instructions.md
Created August 10, 2018 14:30 — forked from germanny/_instructions.md
Instructions for setting up OSX 10.X.X

Setup OSX 10.X with a Clean Install

About once a year, my machine gets pretty sluggish and it's time to start fresh. Here's the process I use to update it with everything I need.

  • Back up all photos, music, apps, iTunes library, keychains, etc.
  • Deauthorize iTunes and Photoshop.
  • Deactivate CleanMyMac 3 license.
  • 1Password, Dropbox, Evenote sync