https://github.com/louisdh/cmd-almanac
A list of commands I frequently use
https://github.com/louisdh/cmd-almanac
cli cmd git ios java lldb swift tvos xcode
Last synced: 11 months ago
JSON representation
A list of commands I frequently use
- Host: GitHub
- URL: https://github.com/louisdh/cmd-almanac
- Owner: louisdh
- Created: 2017-03-08T21:59:23.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-11-10T16:02:01.000Z (over 8 years ago)
- Last Synced: 2025-03-30T06:11:24.361Z (12 months ago)
- Topics: cli, cmd, git, ios, java, lldb, swift, tvos, xcode
- Size: 2.93 KB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Command almanac
This is a list of commands I frequently use. Most of them have to do with development for Apple platforms, although not all!
## 📓 Almanac
### [Git] Remove all cached files to ensure there are no files from .gitignore being tracked
```git rm --cached -r .```
### Swiftlint
```swiftlint autocorrect```
### Line count (for Obj-C/Swift/C++ project)
```find . "(" -name "*.m" -or -name "*.mm" -or -name "*.cpp" -or -name "*.swift" ")" -print0 | xargs -0 wc -l```
### Swift version (handy when reporting bugs)
```swift -version```
### Updating cocoapod
```
pod spec lint {{name}}.podspec
pod trunk push {{name}}.podspec
```
### Number of commits for git repo
```git rev-list --all --count```
### Delete unavailable iOS/watchOS/tvOS simulators
```xcrun simctl delete unavailable```
### Compile .java to .class and inspect bytecode
```
javac File.java
javap -c File.class
```
### LLDB debugging for tvOS (Swift)
```swift
po self.view!.performSelector(Selector("_whyIsThisViewNotFocusable"))
```
### LLDB debugging for tvOS with view address (Obj-C)
```objc
po [((UIView *)0x{{address}}) performSelector:@selector(_whyIsThisViewNotFocusable)]
```
### Open Diagnostic Reports folder in Finder
```open ~/Library/Logs/DiagnosticReports```