Install Requirements Packages
opkg update && opkg install ca-certificates zsh curl git-http
Install oh-my-zsh
macOS Yosemite and above utilize AWDL (Apple Wireless Direct Link) to handle data transfers to other AWDL-enabled devices (Macs, Macbooks, iPhones, etc.) over the Wifi Radio, without the need for a common underlying Access Point.
However, whenever AWDL is active (Bonjour discovery and any Airdrop, Airplay, and GameKit links and transfers), it will lock the Wifi radio for small intervals. For Bonjour discovery specifically, this comes to an effective packet spooling time of about 50-100ms, once per second (active transfers will be higher).
Obviously, this will create unacceptable latency spikes for low-latency desktop streaming apps. To disable the AWDL interface, use the following command in Applications > Utilities > Terminal (this requires you to be logged in as an Administrator and enter your password):
sudo ifconfig awdl0 down
# 少し凝った zshrc | |
# License : MIT | |
# http://mollifier.mit-license.org/ | |
######################################## | |
# 環境変数 | |
export LANG=ja_JP.UTF-8 | |
# 色を使用出来るようにする |
#!/bin/bash | |
# | |
# Tailscale install script on GL.iNet devices | |
# Tested on BERYL (MT1300), should work on MANGO (GL-MT300N) | |
# and probably other mipsel devices, as long as external storage (microSD/USB) | |
# is available. | |
# | |
# Written by Thomas BOHL for Hemisphere-Project - 2022 | |
# Free to use - No warranty provided |
[user] | |
name = Hua-Ming Huang | |
email = huaming.huang.tw@gmai.com | |
[github] | |
user = huaminghuangtw | |
tokentype = ssh | |
[include] | |
path = ~/.git-sendemail |
[user] | |
name = Julien Bisconti | |
email = ****** | |
[core] | |
excludesfile = ~/.gitignore | |
pager = diff-so-fancy | less --tabs=1,5 -R | |
editor = /usr/bin/vim | |
[alias] | |
wow = log --all --graph --decorate --oneline --simplify-by-decoration |
#!/bin/bash | |
# | |
# Assumptions: | |
# - Clean working tree. | |
# - Tags are used exclusively to tag deploys | |
git checkout master | |
git branch -D staging # Delete staging branch locally. | |
git push origin :staging # Delete staging branch from GitHub. | |
git checkout -b staging `git describe --abbrev=0 --tags` # create staging from the latest deployed tag. |
This entire guide is based on an old version of Homebrew/Node and no longer applies. It was only ever intended to fix a specific error message which has since been fixed. I've kept it here for historical purposes, but it should no longer be used. Homebrew maintainers have fixed things and the options mentioned don't exist and won't work.
I still believe it is better to manually install npm separately since having a generic package manager maintain another package manager is a bad idea, but the instructions below don't explain how to do that.
Installing node through Homebrew can cause problems with npm for globally installed packages. To fix it quickly, use the solution below. An explanation is also included at the end of this document.