{"id":13616995,"url":"https://github.com/louisdh/cmd-almanac","last_synced_at":"2025-04-24T02:46:54.656Z","repository":{"id":87067029,"uuid":"84370182","full_name":"louisdh/cmd-almanac","owner":"louisdh","description":"A list of commands I frequently use","archived":false,"fork":false,"pushed_at":"2017-11-10T16:02:01.000Z","size":3,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-30T06:11:24.361Z","etag":null,"topics":["cli","cmd","git","ios","java","lldb","swift","tvos","xcode"],"latest_commit_sha":null,"homepage":null,"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/louisdh.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":"2017-03-08T21:59:23.000Z","updated_at":"2023-03-10T21:45:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"c0a4fb3b-36c2-4084-9d1e-46a9de0c5290","html_url":"https://github.com/louisdh/cmd-almanac","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/louisdh%2Fcmd-almanac","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/louisdh%2Fcmd-almanac/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/louisdh%2Fcmd-almanac/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/louisdh%2Fcmd-almanac/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/louisdh","download_url":"https://codeload.github.com/louisdh/cmd-almanac/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248815629,"owners_count":21165957,"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","cmd","git","ios","java","lldb","swift","tvos","xcode"],"created_at":"2024-08-01T20:01:35.707Z","updated_at":"2025-04-24T02:46:54.650Z","avatar_url":"https://github.com/louisdh.png","language":null,"funding_links":[],"categories":["HarmonyOS"],"sub_categories":["Windows Manager"],"readme":"# Command almanac\n\nThis is a list of commands I frequently use. Most of them have to do with development for Apple platforms, although not all! \n\n## 📓 Almanac\n### [Git] Remove all cached files to ensure there are no files from .gitignore being tracked\n```git rm --cached -r .```\n\n### Swiftlint\n```swiftlint autocorrect```\n\n### Line count (for Obj-C/Swift/C++ project)\n```find . \"(\" -name \"*.m\" -or -name \"*.mm\" -or -name \"*.cpp\" -or -name \"*.swift\" \")\" -print0 | xargs -0 wc -l```\n\n### Swift version (handy when reporting bugs)\n```swift -version```\n\n### Updating cocoapod\n```\npod spec lint {{name}}.podspec\npod trunk push {{name}}.podspec\n```\n\n### Number of commits for git repo\n```git rev-list --all --count```\n\n### Delete unavailable iOS/watchOS/tvOS simulators\n```xcrun simctl delete unavailable```\n\n### Compile .java to .class and inspect bytecode\n```\njavac File.java\njavap -c File.class\n```\n\n### LLDB debugging for tvOS (Swift)\n```swift \npo self.view!.performSelector(Selector(\"_whyIsThisViewNotFocusable\"))\n```\n\n### LLDB debugging for tvOS with view address (Obj-C)\n```objc\npo [((UIView *)0x{{address}}) performSelector:@selector(_whyIsThisViewNotFocusable)]\n```\n\n### Open Diagnostic Reports folder in Finder\n```open ~/Library/Logs/DiagnosticReports```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flouisdh%2Fcmd-almanac","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flouisdh%2Fcmd-almanac","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flouisdh%2Fcmd-almanac/lists"}