1. Minimize app in dock: Opt + Click the icon app (https://apple.stackexchange.com/a/38201) 2. Screenshot: ⌘ cmd + Shift + 3/4 3. Record Screen: ⌘ cmd + Shift + 5 - https://support.apple.com/en-us/HT208721 4. Set primary display: https://www.addictivetips.com/mac-os/set-the-primary-display-on-macos/ 5. GIF Screen Recorder: ??? 6. Set default editor to `nano`: https://unix.stackexchange.com/a/501863 7. Resize window: https://www.theverge.com/2020/3/6/21168153/macos-catalina-windows-size-rearrange-how-to 8. See all opened windows: System Preferences > Mission Control > Keyboard & Mouse Shortcuts => Mission Control : Left Option - https://support.apple.com/guide/mac-help/open-windows-spaces-mission-control-mh35798/mac 9. make auto-hide/show for the dock faster - https://apple.stackexchange.com/a/46222 `defaults write com.apple.dock autohide-time-modifier -float 0.5;killall Dock` 11. Others: https://github.com/secfigo/dotfiles ------- - `~/.bash_profile` ```bash # Setup Python Virtualenv export VIRTUALENVWRAPPER_PYTHON=/usr/bin/python3 export WORKON_HOME=$HOME/.virtualenvs export VIRTUALENVWRAPPER_VIRTUALENV=/Users/{user_name}/Library/Python/3.8/bin/virtualenv source /Users/{user_name}/Library/Python/3.8/bin/virtualenvwrapper.sh alias virtualenv="/Users/{user_name}/Library/Python/3.8/bin/virtualenv" # Setup Default Editor to Nano export EDITOR=nano export VISUAL="$EDITOR" ``` - `~/.zshrc` ```bash # Custom Aliases alias cloudegg="cd /Users/{user_name}/envs/env-cloud-egg/ && source bin/activate && cd cloud-egg/" # https://github.com/zsh-users/zsh-syntax-highlighting source /Users/{user_name}/.oh-my-zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh # Acticate the custom profile setup source ~/.bash_profile ``` ----- - Mac keyboard shortcut: https://support.apple.com/en-us/HT201236 - Atom editor cheat sheet: http://sweetme.at/2014/03/10/atom-editor-cheat-sheet/ - Atom editor cheat sheet: http://blog.bugsnag.com/atom-editor-cheat-sheet https://gist.github.com/fzrhrs/01cc8cb5f34bfd91e8a7a09dba5be3fe ----- > Getting slow when loading the local django webpage that using docker? > You can uncheck some unnecessary settings, such as "send usage statistics", "show weekly tips", etc. ![image](https://user-images.githubusercontent.com/7134451/136127869-bafa6154-afe1-40da-adec-fbf6a6b0d0e3.png)