sudo apt-get install gnupg curl
curl -fsSL https://pgp.mongodb.com/server-7.0.asc | \
#!/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 \ |