sudo apt install zsh-autosuggestions zsh-syntax-highlighting zsh
#!/bin/sh | |
#kill bluetoothd to reset bluetooth wonkiness in macOS | |
#catalina, big sur, monterey | |
#fixes continuity, magic keyboard mismapping of function keys, magic mouse scrolling | |
current_userid=$(id -u) | |
if [ $current_userid -ne 0 ]; then | |
echo "$(basename "$0") requires superuser privileges to run" >&2 | |
echo "try: \033[1;36msudo $(basename "$0")" >&2 |
# backup | |
docker exec -it container mysqldump -u**** -p*** --all-databases > mysql_dump_yyyy_mm_dd.sql | |
# restore | |
cat backup.sql | docker exec -it container mysql -u**** -p**** --all-databases |