====== macOS ======
[[https://apple.com/macos/]]
===== praktische Kommandos =====
* Schnelleres Verschwinden/Erscheinen des Docks:
defaults write com.apple.dock autohide-delay -float 0
defaults write com.apple.dock autohide-time-modifier -float 0.25
killall Dock
* Sudo mit Touch ID (Fingerabdruck): Folgendes über die 2. Zeile der Datei ''/etc/pam.d/sudo'' hinzufügen: ''auth sufficient pam_tid.so''
# sudo: auth account password session
auth sufficient pam_tid.so
auth sufficient pam_smartcard.so
auth required pam_opendirectory.so
account required pam_permit.so
password required pam_deny.so
session required pam_permit.so
==== Bootable Linux-USB erstellen (Partitionieren und Formatieren) ====
* mit ''mount'' sieht man die aktuell gemounteten Volumes und deren Pfad
* ''FAT32'': das Dateisystem (verfügbare kann man sich mit ''diskutil listFilesystems'' anzeigen lassen)
* ''label'': das Label für den USB-Stick
* ''GPT'': das Format für die Partitionstabelle: ''GPT''/''MBR''/''APM'' (mehr infos unter ''diskutil eraseDisk -h'')
* ''/dev/disk3'': die Disk/das Gerät auf dem alle Volumes gespeichert werden (eine komplette Disk wie ''/dev/disk3'' muss ausgewählt werden, keine Partition wie ''/dev/disk3s2'')
* ''debian.iso'': das ISO-Image das auf den USB-Stick geschrieben werden soll
* ''/Volumes/LABEL'': der Pfad zum gemounteten Volume (Mount-Point)
* ''bs=4K'': die Standardeinstellung von 512 in dd ist sehr langsam, alles zwischen 4K und 4M sollte deutlich schneller sein
mount
diskutil unmountDisk /dev/disk3
diskutil eraseDisk fat32 label gpt /dev/disk3
diskutil mountDisk /dev/disk3
mount
bsdtar -xf debian.iso -C /Volumes/LABEL
diskutil eject /dev/disk3
mount
**//ODER//**
mount
diskutil eraseDisk FAT32 label GPT /dev/disk3
diskutil unmountDisk /dev/disk3
sudo dd if=debian.iso of=/dev/disk3 bs=4K status=progress
diskutil mountDisk /dev/disk3
mount
diskutil eject /dev/disk3
mount
===== Software =====
siehe [[https://brew.sh/|Homebrew]]
==== App Store ====
* [[https://apps.apple.com/app/xcode/id497799835|Xcode]]
* [[https://apps.apple.com/app/bitwarden/id1352778147|Bitwarden]]
==== Homebrew ====
* **formula(e)**: CLI App(s)
* **cask(s)**: GUI App(s)
* Update Homebrew und veraltete formulae/casks: ''%%brew update && brew upgrade%%''
* Suchen von Apps: ''%%brew search APP%%''
* Installation (formula): ''%%brew install APP%%''
* Installation (cask): ''%%brew install --cask APP%%''
* Deinstallation: ''%%brew uninstall APP%%'' oder ''%%brew rm APP%%''
* Auflisten installierter Apps: ''%%brew list%%'' oder ''%%brew ls -1%%'' (eine App pro Zeile mit vollständigem Namen)
* Auflisten installierter formulae: ''%%brew ls -1 --full-name --formula%%''
* Auflisten installierter casks: ''%%brew ls -1 --full-name --cask%%''
* Informationen über eine App: ''%%brew info APP%%''
* Hilfe: ''%%brew help%%'' oder ''%%brew COMMAND -h%%''
=== Nützliche Apps ===
brew install autossh bash bash-completion@2 binutils byobu ca-certificates coreutils curl diffutils docker-completion dos2unix findutils gawk git gnu-sed gnu-tar gnu-time gnu-units grep gzip htop imagemagick iproute2mac jq less midnight-commander ncurses neovim nmap openssh openssl@3 pip-completion python@3.12 readline ripgrep screen shellcheck tmux tree-sitter vim xq xz yq zsh zsh-completions zstd
brew install --cask aldente android-file-transfer betterdisplay chromium coteditor docker finicky firefox gimp git-credential-manager iterm2 karabiner-elements keka libreoffice maccy meld minecraft obs powershell rectangle spotify thunderbird visual-studio-code vlc grishka/grishka/neardrop homebrew/cask-fonts/font-fira-code homebrew/cask-fonts/font-fira-code-nerd-font