- You just installed MySQL (I'm worked with 5.70) on linux machine. You want to chagne root password and want to use password to login instead of login via sudo.
- Login to mysql as root
sudo mysql -u root
- Execute:
| ssh-keygen -t rsa -b 4096 -m PEM -f jwtRS256.key | |
| # Don't add passphrase | |
| openssl rsa -in jwtRS256.key -pubout -outform PEM -out jwtRS256.key.pub | |
| cat jwtRS256.key | |
| cat jwtRS256.key.pub |
| ``` | |
| apt-get update | |
| apt-get install prometheus-node-exporter | |
| ``` | |
| Note: Full prometheus install guide: | |
| https://linuxhint.com/install-prometheus-ubuntu-18-04/ |
| Debugging workflow: | |
| - Open top and do first analysis | |
| - Open grafana and ask yourself question while you see the graphs: | |
| - Are disks free enough? | |
| - When do events happen? | |
| - Is there a cascading effect? | |
| - Is there a wall to see?? | |
| - Verify systems and disks in AWS | |
| - Log in to nodes in iterm parallel sessions and run the same commands on all of them from the same state. | |
| - df -h |
| # Set up go project with private dependency | |
| Goal: | |
| - Set up project with private dependency using go module. | |
| ## Using access token | |
| Override access token to your git config, so it would include username and access key, so that you would be able to use go get your private repo | |
| ``` | |
| git config --global url."https://${username}:${access_token}@gitlab.com".insteadOf "https://gitlab.com" | |
| ``` |
I hereby claim:
To claim this, I am signing this object:
| Very useful link: https://elweb.co/making-iterm-2-work-with-normal-mac-osx-keyboard-shortcuts/ |