To install a root CA, do
$ sudo apt-get install -y ca-certificates
$ sudo cp local-ca.crt /usr/local/share/ca-certificates
$ sudo update-ca-certificates
/etc/ssl/certs/ca-certificates.crt
- single file (PEM bundle)
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 \ |
#!/bin/bash | |
# Source: https://serverfault.com/a/887402/169782 | |
# Usage: | |
# krsync -av --progress --stats src-dir/ pod<@namespace>:/dest-dir | |
if [ -z "$KRSYNC_STARTED" ]; then | |
export KRSYNC_STARTED=true | |
exec rsync --blocking-io --rsh "$0" $@ |