This blog illustrates some notes on using my Mac (model was released in mid 2015, OS is Catalina 10.15).
# Clean Unused Homebrew Dependencies
apt-get autoremove in Ubuntu, I have too many unused homebrew dependencies and want to clean them.
brew bundle dump && brew bundle --force cleanup
# Accented Chars vs. Key Repeat
Mac enables users to hold down a letter key and show accented or special chars.
To enable pop-up and disable key repeat, could set
defaults write -g ApplePressAndHoldEnabled -bool true
To disable pop-up and enable key repeat, could set
defaults write -g ApplePressAndHoldEnabled -bool false
# German Key Combs
Happy ending? Not yet! I recently started learning German and had to find some workaround to type chars and symbols such as
These are the ways to type them on my mac:
and the lower and upper quotes:
Option Shift w
Option Shift [
Note that I actually searched online and saw other key combs, but don't work.
# Add Input Source
Another way to guarantee typing the correct German chars, or any language's chars is to use the corresponding input source. This could be done on Mac by:
Please see this article for more details on keyboard viewer, quotes, ellipsis, and IA writer.
# Terminal Proxy w/ Socks5
It's fairly easy to use a socks5 proxy in browser, but how to use it in terminal, especially when downloading from GitHub is super slow in China? From this article I made the following terminal proxy settings.
In sock5 proxy app set:
- Local Socks5 Listen Address
- Local Socks5 Port
- Connection Timeout
sh config file (
# set/unset proxy in terminal alias setproxy="export ALL_PROXY=socks5://127.0.0.1:1086" alias unsetproxy="set -e ALL_PROXY" # set/unset proxy just for Git alias agent="git config --global http.proxy socks5://127.0.0.1:1086;git config --global https.proxy socks5://127.0.0.1:1086;git config --global http.sslVerify false" alias unagent="git config --global --unset http.proxy;git config --global --unset https.proxy"