Skip to content

Instantly share code, notes, and snippets.

@dankow
dankow / Deploying_MySQL_in_Production_References.md
Last active May 31, 2020 16:30
References for Deploying MySQL in Production
PGID=$(pgrep -f ${CONFIG:-backup_driver.py} | xargs ps -opgid --no-headers | tail -1 | tr -d '[[:space:]]') && ps -ww -opid,ppid,pgid,state,time,cmd --forest -g $PGID | sed 's^/usr/local/percona-backup/bin/^^g' && read -r -p "Are you sure? [y/N] " response; if [[ $response =~ ^(yes|y)$ ]]; then sudo kill -9 -- -${PGID}; fi
for PGID in $(pgrep -f ${CONFIG:-backup_driver.py} | xargs ps -opgid --no-headers | sort | uniq | tr -d '[ ]'); do ps -ww -opid,ppid,pgid,state,time,cmd --forest -g $PGID | sed 's^/usr/local/percona-backup/bin/^^g'; done
@dankow
dankow / keybase.md
Last active December 6, 2016 16:38

Keybase proof

I hereby claim:

  • I am dankow on github.
  • I am dankow (https://keybase.io/dankow) on keybase.
  • I have a public key whose fingerprint is 2C01 74D8 C55D 33D1 4A73 2982 7616 D1D9 4C84 472F

To claim this, I am signing this object: