server {
listen 80;
listen [::]:80;
server_name localhost;
location / {
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 | |
| 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 \ |
To clear stucked unread Slack notifications, simply type:
Shift + Escape
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
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 | |
| 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 |
OlderNewer