Skip to content

Instantly share code, notes, and snippets.

View martinbrambati's full-sized avatar

Martin Brambati martinbrambati

  • Eventbrite
  • Argentina
View GitHub Profile
@nicdoye
nicdoye / mysqlbackup.sh
Created February 2, 2013 13:07
Backup your OpenShift MySQL database. My DB is only small so I didn't bother to compress it through a pipe. sftp it back from your local machine afterwards This is basically a quick hack from running "type mysql" on the OpenShift gear - hint: it's a bash function/alias
mkdir ~/app-root/data/tmp
mysqldump -h $OPENSHIFT_MYSQL_DB_HOST -P ${OPENSHIFT_MYSQL_DB_PORT:-3306} -u ${OPENSHIFT_MYSQL_DB_USERNAME:-'admin'} --password="$OPENSHIFT_MYSQL_DB_PASSWORD" --all-databases > ~/app-root/data/tmp//all.sql
@blaix
blaix / settings.py
Created April 3, 2012 19:32
Stubbing django settings with Mock
SOME_SETTING = 'some value'