Skip to content

Instantly share code, notes, and snippets.

View diginfo's full-sized avatar

Pure Manufacturing diginfo

View GitHub Profile
@diginfo
diginfo / mymem.sh
Last active January 25, 2021 15:53
#!/bin/sh
## MYSQL Memory Usage Calculator
## bash <(curl -Ls https://gist.github.com/diginfo/b1536d6d61e73bfd6eca4ed99d42b422/raw/)
##
mysql -u root -p$1 -e "show variables; show status" | awk '
{
VAR[$1]=$2
}
END {
MAX_CONN = VAR["max_connections"]
git rm -r --cached node_modules
git commit -m 'Remove the now ignored directory node_modules'
git push origin master
#bash <(curl -s ufw-whitelist.sh)