Skip to content

Instantly share code, notes, and snippets.

View healthy-tree's full-sized avatar
😂
I may be slow to respond.

Kevin Lee healthy-tree

😂
I may be slow to respond.
View GitHub Profile
@n1snt
n1snt / Oh my ZSH with zsh-autosuggestions zsh-syntax-highlighting zsh-fast-syntax-highlighting and zsh-autocomplete.md
Last active November 15, 2024 15:36
Oh my ZSH with zsh-autosuggestions zsh-syntax-highlighting zsh-fast-syntax-highlighting and zsh-autocomplete.md

Oh my zsh.

Oh My Zsh

Install ZSH.

sudo apt install zsh-autosuggestions zsh-syntax-highlighting zsh

Install Oh my ZSH.

@healthy-tree
healthy-tree / some-docker-restore-backup-mysql.sh
Last active July 12, 2023 02:52
Docker Dump and restore MySQL All Databases
# 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
@breiter
breiter / bluetoohtd-restart.sh
Last active July 7, 2022 17:56
Restart bluetoothd in macOS
#!/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