Skip to content

Instantly share code, notes, and snippets.

@agusmakmun
Last active October 21, 2021 04:14
Show Gist options
  • Save agusmakmun/e48dbeec471591cf62ff5111cb81b9a3 to your computer and use it in GitHub Desktop.
Save agusmakmun/e48dbeec471591cf62ff5111cb81b9a3 to your computer and use it in GitHub Desktop.

Revisions

  1. agusmakmun revised this gist Oct 21, 2021. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion mac-cheat-sheet.md
    Original file line number Diff line number Diff line change
    @@ -9,7 +9,8 @@
    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: <kbd>shift</kbd> + <kbd>⌘ cmd</kbd> + <kbd>G</kbd> (makesure you on Finder window)
    11. Others: https://github.com/secfigo/dotfiles
    11. Iterm2 disable automatically copied when text selected: https://apple.stackexchange.com/a/328443
    12. Others: https://github.com/secfigo/dotfiles

    -------

  2. agusmakmun revised this gist Oct 6, 2021. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion mac-cheat-sheet.md
    Original file line number Diff line number Diff line change
    @@ -8,7 +8,7 @@
    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: <kbd>shift</kbd> + <kbd>⌘ cmd</kbd> + <kbd>G</kbd>
    10. Go to specific folder: <kbd>shift</kbd> + <kbd>⌘ cmd</kbd> + <kbd>G</kbd> (makesure you on Finder window)
    11. Others: https://github.com/secfigo/dotfiles

    -------
  3. agusmakmun revised this gist Oct 6, 2021. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions mac-cheat-sheet.md
    Original file line number Diff line number Diff line change
    @@ -8,6 +8,7 @@
    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: <kbd>shift</kbd> + <kbd>⌘ cmd</kbd> + <kbd>G</kbd>
    11. Others: https://github.com/secfigo/dotfiles

    -------
  4. agusmakmun revised this gist Oct 6, 2021. 1 changed file with 9 additions and 0 deletions.
    9 changes: 9 additions & 0 deletions mac-cheat-sheet.md
    Original file line number Diff line number Diff line change
    @@ -54,3 +54,12 @@ https://gist.github.com/fzrhrs/01cc8cb5f34bfd91e8a7a09dba5be3fe
    > 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)


    ------

    Rectangle tips;

    - Full screen: <kbd>Ctrl</kbd> + <kbd>Alt Opt</kbd> + <kbd>Enter</kbd>
    - Left side: <kbd>Ctrl</kbd> + <kbd>Alt Opt</kbd> + <kbd>Left</kbd>
    - Right side: <kbd>Ctrl</kbd> + <kbd>Alt Opt</kbd> + <kbd>Right</kbd>
  5. agusmakmun revised this gist Oct 6, 2021. 1 changed file with 8 additions and 1 deletion.
    9 changes: 8 additions & 1 deletion mac-cheat-sheet.md
    Original file line number Diff line number Diff line change
    @@ -46,4 +46,11 @@ source ~/.bash_profile
    - 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
    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)
  6. agusmakmun revised this gist Oct 5, 2021. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion mac-cheat-sheet.md
    Original file line number Diff line number Diff line change
    @@ -7,7 +7,8 @@
    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
    10. Others: https://github.com/secfigo/dotfiles
    `defaults write com.apple.dock autohide-time-modifier -float 0.5;killall Dock`
    11. Others: https://github.com/secfigo/dotfiles

    -------

  7. agusmakmun revised this gist Oct 5, 2021. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion mac-cheat-sheet.md
    Original file line number Diff line number Diff line change
    @@ -6,7 +6,8 @@
    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. Others: https://github.com/secfigo/dotfiles
    9. make auto-hide/show for the dock faster - https://apple.stackexchange.com/a/46222
    10. Others: https://github.com/secfigo/dotfiles

    -------

  8. agusmakmun revised this gist Oct 5, 2021. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions mac-cheat-sheet.md
    Original file line number Diff line number Diff line change
    @@ -6,6 +6,7 @@
    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. Others: https://github.com/secfigo/dotfiles

    -------

  9. agusmakmun revised this gist Oct 5, 2021. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions mac-cheat-sheet.md
    Original file line number Diff line number Diff line change
    @@ -7,6 +7,8 @@
    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

    -------

    - `~/.bash_profile`

    ```bash
  10. agusmakmun revised this gist Oct 5, 2021. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions mac-cheat-sheet.md
    Original file line number Diff line number Diff line change
    @@ -5,6 +5,7 @@
    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

    - `~/.bash_profile`

  11. agusmakmun revised this gist Oct 4, 2021. 1 changed file with 6 additions and 5 deletions.
    11 changes: 6 additions & 5 deletions mac-cheat-sheet.md
    Original file line number Diff line number Diff line change
    @@ -1,9 +1,10 @@
    1. Minimize app in dock: <kbd>Opt</kbd> + <kbd>Click</kbd> the icon app (https://apple.stackexchange.com/a/38201)
    2. Screenshot: <kbd>⌘ cmd</kbd> + <kbd>Shift</kbd> + <kbd>3/4/5</kbd>
    3. Set primary display: https://www.addictivetips.com/mac-os/set-the-primary-display-on-macos/
    4. GIF Screen Recorder: ???
    5. Set default editor to `nano`: https://unix.stackexchange.com/a/501863
    6. Resize window: https://www.theverge.com/2020/3/6/21168153/macos-catalina-windows-size-rearrange-how-to
    2. Screenshot: <kbd>⌘ cmd</kbd> + <kbd>Shift</kbd> + <kbd>3/4</kbd>
    3. Record Screen: <kbd>⌘ cmd</kbd> + <kbd>Shift</kbd> + <kbd>5</kbd> - 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

    - `~/.bash_profile`

  12. agusmakmun revised this gist Oct 4, 2021. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion mac-cheat-sheet.md
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,7 @@
    1. Minimize app in dock: <kbd>Opt</kbd> + <kbd>Click</kbd> the icon app (https://apple.stackexchange.com/a/38201)
    2. Screenshot: <kbd>⌘ cmd</kbd> + <kbd>Shift</kbd> + <kbd>3/4/5</kbd>
    3. Set primary display: https://www.addictivetips.com/mac-os/set-the-primary-display-on-macos/
    4. GIF Screen Recorder: https://getkap.co/download - https://github.com/wulkano/kap
    4. GIF Screen Recorder: ???
    5. Set default editor to `nano`: https://unix.stackexchange.com/a/501863
    6. Resize window: https://www.theverge.com/2020/3/6/21168153/macos-catalina-windows-size-rearrange-how-to

  13. agusmakmun revised this gist Oct 4, 2021. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion mac-cheat-sheet.md
    Original file line number Diff line number Diff line change
    @@ -3,7 +3,7 @@
    3. Set primary display: https://www.addictivetips.com/mac-os/set-the-primary-display-on-macos/
    4. GIF Screen Recorder: https://getkap.co/download - https://github.com/wulkano/kap
    5. Set default editor to `nano`: https://unix.stackexchange.com/a/501863
    6. Resize window: https://www.dummies.com/computers/macs/how-to-resize-a-window-on-a-mac/
    6. Resize window: https://www.theverge.com/2020/3/6/21168153/macos-catalina-windows-size-rearrange-how-to

    - `~/.bash_profile`

  14. agusmakmun revised this gist Oct 4, 2021. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion mac-cheat-sheet.md
    Original file line number Diff line number Diff line change
    @@ -3,7 +3,7 @@
    3. Set primary display: https://www.addictivetips.com/mac-os/set-the-primary-display-on-macos/
    4. GIF Screen Recorder: https://getkap.co/download - https://github.com/wulkano/kap
    5. Set default editor to `nano`: https://unix.stackexchange.com/a/501863

    6. Resize window: https://www.dummies.com/computers/macs/how-to-resize-a-window-on-a-mac/

    - `~/.bash_profile`

  15. agusmakmun revised this gist Oct 4, 2021. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion mac-cheat-sheet.md
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,7 @@
    1. Minimize app in dock: <kbd>Opt</kbd> + <kbd>Click</kbd> the icon app (https://apple.stackexchange.com/a/38201)
    2. Screenshot: <kbd>⌘ cmd</kbd> + <kbd>Shift</kbd> + <kbd>3/4/5</kbd>
    3. Set primary display: https://www.addictivetips.com/mac-os/set-the-primary-display-on-macos/
    4. GIF Screen Recorder: https://github.com/wulkano/kap
    4. GIF Screen Recorder: https://getkap.co/download - https://github.com/wulkano/kap
    5. Set default editor to `nano`: https://unix.stackexchange.com/a/501863


  16. agusmakmun revised this gist Oct 4, 2021. 1 changed file with 28 additions and 0 deletions.
    28 changes: 28 additions & 0 deletions mac-cheat-sheet.md
    Original file line number Diff line number Diff line change
    @@ -5,6 +5,34 @@
    5. Set default editor to `nano`: https://unix.stackexchange.com/a/501863


    - `~/.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
  17. agusmakmun revised this gist Oct 4, 2021. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions mac-cheat-sheet.md
    Original file line number Diff line number Diff line change
    @@ -2,6 +2,7 @@
    2. Screenshot: <kbd>⌘ cmd</kbd> + <kbd>Shift</kbd> + <kbd>3/4/5</kbd>
    3. Set primary display: https://www.addictivetips.com/mac-os/set-the-primary-display-on-macos/
    4. GIF Screen Recorder: https://github.com/wulkano/kap
    5. Set default editor to `nano`: https://unix.stackexchange.com/a/501863


    -----
  18. agusmakmun revised this gist Oct 4, 2021. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions mac-cheat-sheet.md
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,7 @@
    1. Minimize app in dock: <kbd>Opt</kbd> + <kbd>Click</kbd> the icon app (https://apple.stackexchange.com/a/38201)
    2. Screenshot: <kbd>⌘ cmd</kbd> + <kbd>Shift</kbd> + <kbd>3/4/5</kbd>
    3. Set primary display: https://www.addictivetips.com/mac-os/set-the-primary-display-on-macos/
    4. GIF Screen Recorder: https://github.com/wulkano/kap


    -----
  19. agusmakmun revised this gist Oct 4, 2021. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions mac-cheat-sheet.md
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,6 @@
    1. Minimize app in dock: <kbd>Opt</kbd> + <kbd>Click</kbd> the icon app (https://apple.stackexchange.com/a/38201)
    2. Screenshot: <kbd>⌘ cmd</kbd> + <kbd>Shift</kbd> + <kbd>3/4/5</kbd>
    3. Set primary display: https://www.addictivetips.com/mac-os/set-the-primary-display-on-macos/


    -----
  20. agusmakmun revised this gist Oct 3, 2021. 1 changed file with 10 additions and 1 deletion.
    11 changes: 10 additions & 1 deletion mac-cheat-sheet.md
    Original file line number Diff line number Diff line change
    @@ -1,2 +1,11 @@
    1. Minimize app in dock: <kbd>Opt</kbd> + <kbd>Click</kbd> the icon app (https://apple.stackexchange.com/a/38201)
    2. Screenshot: <kbd>⌘ cmd</kbd> + <kbd>Shift</kbd> + <kbd>3/4/5</kbd>
    2. Screenshot: <kbd>⌘ cmd</kbd> + <kbd>Shift</kbd> + <kbd>3/4/5</kbd>


    -----

    - 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
  21. agusmakmun revised this gist Oct 3, 2021. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion mac-cheat-sheet.md
    Original file line number Diff line number Diff line change
    @@ -1 +1,2 @@
    1. Minimize app in dock: <kbd>Opt</kbd> + <kbd>Click</kbd> the icon app (https://apple.stackexchange.com/a/38201)
    1. Minimize app in dock: <kbd>Opt</kbd> + <kbd>Click</kbd> the icon app (https://apple.stackexchange.com/a/38201)
    2. Screenshot: <kbd>⌘ cmd</kbd> + <kbd>Shift</kbd> + <kbd>3/4/5</kbd>
  22. agusmakmun revised this gist Oct 3, 2021. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion mac-cheat-sheet.md
    Original file line number Diff line number Diff line change
    @@ -1 +1 @@
    1. Minimize app in dock: <kbd>Opt</kbd> + <kbd>Click</kbd> the icon app.
    1. Minimize app in dock: <kbd>Opt</kbd> + <kbd>Click</kbd> the icon app (https://apple.stackexchange.com/a/38201)
  23. agusmakmun revised this gist Oct 3, 2021. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion mac-cheat-sheet.md
    Original file line number Diff line number Diff line change
    @@ -1 +1 @@
    1. Minimize app in dock: <kbd>Opt</kbd> + <kbd>Click</kbd>
    1. Minimize app in dock: <kbd>Opt</kbd> + <kbd>Click</kbd> the icon app.
  24. agusmakmun created this gist Oct 3, 2021.
    1 change: 1 addition & 0 deletions mac-cheat-sheet.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    1. Minimize app in dock: <kbd>Opt</kbd> + <kbd>Click</kbd>