Skip to content

Instantly share code, notes, and snippets.

@agusmakmun
Last active October 21, 2021 04:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save agusmakmun/e48dbeec471591cf62ff5111cb81b9a3 to your computer and use it in GitHub Desktop.
Save agusmakmun/e48dbeec471591cf62ff5111cb81b9a3 to your computer and use it in GitHub Desktop.
Mac Cheat Sheet
  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
  10. Go to specific folder: shift + ⌘ cmd + G (makesure you on Finder window)
  11. Iterm2 disable automatically copied when text selected: https://apple.stackexchange.com/a/328443
  12. Others: https://github.com/secfigo/dotfiles

  • ~/.bash_profile
# 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
# 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

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


Rectangle tips;

  • Full screen: Ctrl + Alt Opt + Enter
  • Left side: Ctrl + Alt Opt + Left
  • Right side: Ctrl + Alt Opt + Right
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment