<commit_before>[TOC]

# Overview

Mac OS

# Tuning Mac

- https://github.com/nikitavoloboev/my-mac-os
- https://github.com/serhii-londar/open-source-mac-os-apps
- https://github.com/iCHAIT/awesome-macOS
- https://github.com/jaywcjlove/awesome-mac

# Application and Work flows

## Graphical Apps

- emacs org-mode: todo list and task management
- Google Calendar
- Google Keep
- Dictionary (built-in)
- PDF Expert + PDF Foxit reader
- Chess (built in)
- OpenEmu: NES, SNES, etc. (Mario, <NAME>, etc.)
- keka: file archiver

## Command-line tools

- speedtest-cli
- fkill: an alternative for kill, can search, interactive UI
    + Install: `npm install --global fkill-cli`
- JavaScript
    - nodejs: nodeJS
    - npm: nodejs package manager
    - yarn: nodejs package manager
- Search tools
    + fzf: command-line fuzzy finder
    + ripgrep (rg): search text for patterns
    + the_silver_searcher (ag): search tool similar ripgrep
    + fd: a simple alternative for find
- bat: an alternative for cat, less
- diskutil: built-in macOS command line (similar lsblk)
- pbcopy, pbpaste: built-in macOS command line (copy and paste to
  Clipboard)
- p7zip: file archiver



# Java

- https://stackoverflow.com/questions/26252591/mac-os-x-and-multiple-java-versions
- brew install java: current java version
- brew install java11

# Mail.App

## Shortcuts

- Preferences: `cmd + ,`
- New Message: `cmd + n`
- Undo: `cmd + u`
- Redo: `shift + cmd + u`
- Select all: `cmd + a`
- Paste as quotation: `shift + cmd + v`
- Get all new mails: `shift + cmd + n`
- Reply: `cmd + r`
- Reply all: `shift + cmd + r`
- Flag as read: `shift + cmd + l`
- Archive: `ctrl + cmd + a`
- Search mailbox: `alt + cmd + f`
- Search inside a mail: `cmd + f`

# Tips and Tricks

## Xprotect is not recent

- https://community.jamf.com/t5/jamf-pro/force-xprotect-to-update/m-p/225543
- Go to Software Update and check
    + `Check for updates`
    + `Download new updates when available`
    + `Install system data files and security updates`
- Run `softwareupdate --background --include-config`

## Record System/Internal Audio with Mic Audio

- Install Blackhole using brew
    + https://github.com/ExistentialAudio/BlackHole
- Add a multi-ouput device
    + https://github.com/ExistentialAudio/BlackHole/wiki/Multi-Output-Device
    + Open MIDI
    + Output: blackhole + external headphones
    + Master: headphones
    + Drift correction: blackhole
    + Right-click and select: `Use this device for sound OUTPUT`
- Add an aggregate device
    + Open MIDI
    + Input: blackhole + mic
    + Output: blackhole
    + Clock source: mic
    + Drift correction: blackhole<commit_msg>Resolve software update hanging<commit_after>[TOC]

# Overview

Mac OS

# Tuning Mac

- https://github.com/nikitavoloboev/my-mac-os
- https://github.com/serhii-londar/open-source-mac-os-apps
- https://github.com/iCHAIT/awesome-macOS
- https://github.com/jaywcjlove/awesome-mac

# Application and Work flows

## Graphical Apps

- emacs org-mode: todo list and task management
- Google Calendar
- Google Keep
- Dictionary (built-in)
- PDF Expert + PDF Foxit reader
- Chess (built in)
- OpenEmu: NES, SNES, etc. (Mario, B<NAME>ar, etc.)
- keka: file archiver

## Command-line tools

- speedtest-cli
- fkill: an alternative for kill, can search, interactive UI
    + Install: `npm install --global fkill-cli`
- JavaScript
    - nodejs: nodeJS
    - npm: nodejs package manager
    - yarn: nodejs package manager
- Search tools
    + fzf: command-line fuzzy finder
    + ripgrep (rg): search text for patterns
    + the_silver_searcher (ag): search tool similar ripgrep
    + fd: a simple alternative for find
- bat: an alternative for cat, less
- diskutil: built-in macOS command line (similar lsblk)
- pbcopy, pbpaste: built-in macOS command line (copy and paste to
  Clipboard)
- p7zip: file archiver



# Java

- https://stackoverflow.com/questions/26252591/mac-os-x-and-multiple-java-versions
- brew install java: current java version
- brew install java11

# Mail.App

## Shortcuts

- Preferences: `cmd + ,`
- New Message: `cmd + n`
- Undo: `cmd + u`
- Redo: `shift + cmd + u`
- Select all: `cmd + a`
- Paste as quotation: `shift + cmd + v`
- Get all new mails: `shift + cmd + n`
- Reply: `cmd + r`
- Reply all: `shift + cmd + r`
- Flag as read: `shift + cmd + l`
- Archive: `ctrl + cmd + a`
- Search mailbox: `alt + cmd + f`
- Search inside a mail: `cmd + f`

# Tips and Tricks

## If the Software Update hanging (keep checking)

- Run this command: `sudo /bin/launchctl kickstart -k system/com.apple.softwareupdated`

## Xprotect is not recent

- https://community.jamf.com/t5/jamf-pro/force-xprotect-to-update/m-p/225543
- Go to Software Update and check
    + `Check for updates`
    + `Download new updates when available`
    + `Install system data files and security updates`
- Run `softwareupdate --background --include-config`

## Record System/Internal Audio with Mic Audio

- Install Blackhole using brew
    + https://github.com/ExistentialAudio/BlackHole
- Add a multi-ouput device
    + https://github.com/ExistentialAudio/BlackHole/wiki/Multi-Output-Device
    + Open MIDI
    + Output: blackhole + external headphones
    + Master: headphones
    + Drift correction: blackhole
    + Right-click and select: `Use this device for sound OUTPUT`
- Add an aggregate device
    + Open MIDI
    + Input: blackhole + mic
    + Output: blackhole
    + Clock source: mic
    + Drift correction: blackhole
{'fraction_non_alphanumeric': 0.11536348654092657, 'fraction_numerical': 0.00659219923091009, 'mean_word_length': 3.2145061728395063, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 16, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '86004', 'n_tokens_mistral': 1869, 'n_tokens_neox': 1782, 'n_words': 585}