{"id":22331084,"url":"https://github.com/rodrigobdz/macos-cheatsheet","last_synced_at":"2025-03-26T07:11:01.329Z","repository":{"id":119408265,"uuid":"365112011","full_name":"rodrigobdz/macos-cheatsheet","owner":"rodrigobdz","description":"Collection of useful macOS commands","archived":false,"fork":false,"pushed_at":"2023-04-21T21:18:31.000Z","size":6,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-01-31T08:35:08.066Z","etag":null,"topics":["cli","command-line","howto","linux-shell","mac"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rodrigobdz.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-05-07T04:18:13.000Z","updated_at":"2023-05-19T10:20:55.000Z","dependencies_parsed_at":null,"dependency_job_id":"939f0cab-ce4c-4afb-a408-ada8476bc17e","html_url":"https://github.com/rodrigobdz/macos-cheatsheet","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rodrigobdz%2Fmacos-cheatsheet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rodrigobdz%2Fmacos-cheatsheet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rodrigobdz%2Fmacos-cheatsheet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rodrigobdz%2Fmacos-cheatsheet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rodrigobdz","download_url":"https://codeload.github.com/rodrigobdz/macos-cheatsheet/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245605730,"owners_count":20643030,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","command-line","howto","linux-shell","mac"],"created_at":"2024-12-04T04:09:37.445Z","updated_at":"2025-03-26T07:11:01.314Z","avatar_url":"https://github.com/rodrigobdz.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# macOS Cheatsheet\n\n**Highly recommended:** [tldr-pages/tldr](https://github.com/tldr-pages/tldr)\n([website](https://tldr.sh))\n\n\u003e collection of community-maintained help pages for command-line tools, that\n\u003e aims to be a simpler, more approachable complement to traditional man pages.\n\n---\n\n- [macOS Cheatsheet](#macos-cheatsheet)\n  - [Shell](#shell)\n  - [PDF](#pdf)\n  - [Plist](#plist)\n  - [Preview](#preview)\n  - [Related Projects](#related-projects)\n\n## Shell\n\n- Fix `zsh`'s `compinit` error when initializing a new shell\n\n  \u003e zsh compinit: insecure directories, run compaudit for list.\n  \u003e Ignore insecure directories and continue [y] or abort compinit [n]?\n\n  ```sh\n  # Run the following command to fix the error above\n  compaudit | xargs chmod g-w\n  ```\n\n  [Source](https://github.com/zsh-users/zsh-completions/issues/680#issuecomment-612960481)\n\n## PDF\n\n- Merge PDFs\n\n  ```sh\n  gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=merged.pdf *.pdf\n  ```\n  \n  [Source](https://apple.stackexchange.com/a/293198)\n\n  ```sh\n  # Requires 'python' binary\n  #\n  # Alternative \n  # Merge multiple pdfs in current directory with prefix foo, e.g.\n  # foo1.pdf foo2.pdf and foo3.pdf and create new PDF called merged.pdf\n  \\ls -larth foo*.pdf | xargs \"/System/Library/Automator/Combine PDF Pages.action/Contents/Resources/join.py\" -o merged.pdf {}\n  ```\n\n  [Source](https://apple.stackexchange.com/a/230447)\n\n  ```sh\n  # Requires 'python' binary\n  #\n  # Alternative\n  # Merge all pdfs in current directory into merged.pdf\n  \"/System/Library/Automator/Combine PDF Pages.action/Contents/Resources/join.py\" -o merged.pdf *.pdf\n  ```\n\n## Plist\n\n- View and edit .plist files\n\n  ```sh\n  # Print file in human-readable format\n  plutil -p foo.plist\n  ```\n\n  ```sh\n  # Print file as XML\n  /usr/libexec/PlistBuddy -x -c \"Print\" foo.plist\n  ```\n \n- View list of bypassed invalid SSL certificate warnings in Safari\n\n  ```sh\n  plutil -p ~/Library/Containers/com.apple.Safari/Data/Library/Safari/BypassedInvalidCertificateWarning.plist\n  ```\n\n## Preview\n\n- Exact string matching in search\n\n  Quote string, as in Google search bar, e.g.\n\n  \u003e \"my sentence in preview\"\n\n  [Source](https://apple.stackexchange.com/a/155411)\n  \n\n- **[rodrigobdz/linux-cheatsheet](https://github.com/rodrigobdz/linux-cheatsheet)**\n- [rodrigobdz/minimal-readme](https://github.com/rodrigobdz/minimal-readme)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frodrigobdz%2Fmacos-cheatsheet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frodrigobdz%2Fmacos-cheatsheet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frodrigobdz%2Fmacos-cheatsheet/lists"}