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
# Reference: https://superuser.com/questions/513159/how-to-remove-systemd-services | |
systemctl stop [servicename] | |
systemctl disable [servicename] | |
rm /etc/systemd/system/[servicename] | |
rm /etc/systemd/system/[servicename] # and symlinks that might be related | |
rm /usr/lib/systemd/system/[servicename] | |
rm /usr/lib/systemd/system/[servicename] # and symlinks that might be related | |
systemctl daemon-reload | |
systemctl reset-failed |
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
# Get the latest version of pushgateway from prometheus.io, then download and extract: | |
$ wget https://github.com/prometheus/pushgateway/releases/download/v0.8.0/pushgateway-0.8.0.linux-amd64.tar.gz | |
$ tar -xvf pushgateway-0.8.0.linux-amd64.tar.gz | |
# Create the pushgateway user: | |
$ useradd --no-create-home --shell /bin/false pushgateway | |
# Move the binary in place and update the permissions to the user that we created: | |
$ cp pushgateway-0.8.0.linux-amd64/pushgateway /usr/local/bin/pushgateway | |
$ chown pushgateway:pushgateway /usr/local/bin/pushgateway |
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
If the Spotlight is indexing data on your Mac, the mds and mds_stores will cost a relatively high CPU at that duration | |
1. Turning off indexing on all drives: `sudo mdutil -a -i off` | |
2. Stop `mds` service: `sudo launchctl stop /System/Library/LaunchDaemons/com.apple.metadata.mds.plist` | |
## Additional steps: | |
- Use [Raycast](https://www.raycast.com/) | |
- Disable Spotlight hotkey: System Preferences > Keyboard > Keyboard Shortcuts… > Spotlight > Uncheck “Show Spotlight search” |
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
## Syscalls | |
``` | |
sudo syscallbypid.d | |
``` | |
## FS Usage | |
``` | |
sudo fs_usage | |
``` |
OlderNewer