Beginning of macOS and Linux dotfiles separation and quality improvements

This commit is contained in:
2024-01-30 17:04:26 +00:00
parent a4b1677cb2
commit 6f8394aabe
20 changed files with 107 additions and 49 deletions

61
MacOS/README.md Normal file
View File

@@ -0,0 +1,61 @@
## MacOS Commands (built-in)
**Password-protected Zip:**
```sh
zip -e protected.zip /file/to/protect/
```
**Remove dotfiles:**
```sh
dot_clean .
```
**Show all files in finder:**
```sh
defaults write com.apple.Finder AppleShowAllFiles 1
```
**Search using Spotlight:**
```sh
mdfind "file name”
```
**Rebuild Spotlight index:**
```sh
mdutil -E
```
**Turn off Spotlight indexing:**
```sh
dutil -i off
```
**Repair Disk permissions:**
```sh
sudo /usr/libexec/repair_packages --repair --standard-pkgs --volume /
```
**Generate SHA-1 digest of a file:**
```sh
/usr/bin/openssl sha1 download.dmg
```
**Disable sleep temporarily:**
```sh
caffeinate
```
**Open multiple instances of a program:**
```sh
open multiple instances open -n /Applications/Safari.app/
```
**Check network speed:**
```sh
networkQuality
```
**Convert files (txt, html, rtf, rtfd, doc, docx):**
```sh
textutil -convert html journal.doc
```