SSHd now uses socket-based activation Ubuntu 22.10 or later. Below are 2 options to change the default SSH port.
- Disable socket-based and enable service-based SSH
systemctl disable --now ssh.socket systemctl enable --now ssh.service
| #!/bin/bash | |
| set -e | |
| # $1 - arg1, swap size in G (e.g 1G) | |
| if [ -z $1 ]; then | |
| echo "Error! Please provide swap size in G as argument." | |
| echo "Example: create-swap-ubuntu.sh 1G" | |
| exit 1 | |
| else |
To check the health of a plugin, run:
:checkhealth <plugin_name>
Example, to check telescope plugin's health and see any missing deps:
:checkhealth telscope
To clear stucked unread Slack notifications, simply type:
Shift + Escape
| #!/bin/bash | |
| SRC_DB_URI='mongodb+srv://username:password@src_host/' | |
| SRC_DB_NAME=src_db_name | |
| DEST_DB_URI='mongodb+srv://username:password@dest_host/' | |
| #not probably needed as well as the `--db` under `mongorestore` | |
| DEST_DB_NAME=dest_db_name | |
| mongodump \ |