Skip to content

Instantly share code, notes, and snippets.

👨‍💻
Coding

Alberto Coletta boh717

👨‍💻
Coding
Block or report user

Report or block boh717

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@boh717
boh717 / mysqldump.sh
Last active Oct 18, 2018 — forked from jakeasmith/mysqldump.sh
A quick snippet for doing a compressed mysql dump with a pv to monitor progress
View mysqldump.sh
# Add -h <host> -u <user> -p if needed
mysqldump --single-transaction --skip-lock-tables database [table1 table2 table3] | pv -W | gzip -c > [filename].sql.gz
@boh717
boh717 / update_ghost.sh
Last active Mar 2, 2017
Script to update self-hosted Ghost blog to its latest version (https://runningcodes.net/automatically-update-ghost-version/)
View update_ghost.sh
#!/bin/bash
KillNode() {
NODE_PID=`ps aux | grep [n]ode | awk '{print $2}'`
kill $NODE_PID 2>/dev/null
}
if [ -z $1 ]; then
echo "I need ghost version number as parameter."
You can’t perform that action at this time.