- Site Reliability Engineering: How Google Runs Production Systems
- Operating Systems
- Operating Systems: Three Easy Pieces
- How Linux Works, 2nd Edition
- Continuous Delivery: Reliable Software Releases through Build, Test, and Deployment Automation
- [Systems Performance: Enterprise and the Cloud](https://www.amazon.com/gp/product/0133390098?ie=UTF8&tag=deirdrestraug-20&linkCode=as2&camp=1789&creative=390957&creativ
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # get name of currently logged in user | |
| currentUser=$( /usr/bin/stat -f "%Su" /dev/console ) echo "Current user is $currentUser." | |
| # get current user's home folder | |
| homeFolder=$( /usr/bin/dscl . read "/Users/$currentUser" NFSHomeDirectory | /usr/bin/awk -F ": " '{ print $2 }' ) | |
| # remove account by description name from Accounts sqlite database | |
| /usr/bin/sqlite3 "$homeFolder/Library/Accounts/Accounts4.sqlite" 'DELETE FROM ZACCOUNT WHERE ZACCOUNTDESCRIPTION = "Exchange"' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| │ File: .zsh/includes/cleanup.sh | |
| ───────┼───────────────────────────────────────────────────────────────────────────────────────────────────────── | |
| 1 │ cleanup () { | |
| 2 │ find ~/src -name 'node_modules' -type d -prune -exec rm -rf '{}' + | |
| 3 │ find ~/src -name '.next' -type d -prune -exec rm -rf '{}' + | |
| 4 │ cargo sweep -r -t 30 ~/src | |
| 5 │ brew cleanup | |
| 6 │ is_bin_in_path docker && docker system prune -a -f --volumes || echo "skipping docker" | |
| 7 │ } | |
| 8 │ # https://stackoverflow.com/questions/6569478/detect-if-executable-file-is-on-users-path |
OlderNewer