This is a hands-on way to pull down a set of MySQL dumps from Amazon S3 and restore your database with it
Sister Document - Backup MySQL to Amazon S3 - read that first
# Set our variables
export mysqlpass="ROOTPASSWORD"
| #!/bin/bash | |
| # | |
| # description: DevShelf service | |
| # processname: node | |
| # pidfile: /var/run/devshelf.pid | |
| # logfile: /var/log/devshelf.log | |
| # | |
| # Based on https://gist.github.com/jinze/3748766 | |
| # | |
| # To use it as service on Ubuntu: |
This is a hands-on way to pull down a set of MySQL dumps from Amazon S3 and restore your database with it
Sister Document - Backup MySQL to Amazon S3 - read that first
# Set our variables
export mysqlpass="ROOTPASSWORD"
This is a simple way to backup your MySQL tables to Amazon S3 for a nightly backup - this is all to be done on your server :-)
Sister Document - Restore MySQL from Amazon S3 - read that next
this is for Centos 5.6, see http://s3tools.org/repositories for other systems like ubuntu etc
| const state = { | |
| added: false, | |
| interval: false, | |
| inFrame: false, | |
| callbacks: [] | |
| } | |
| export default function onWindowFocus(cb) { | |
| state.callbacks.push(cb) | |
| start() |
All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.
Generally, all APIs that synchronously provide layout metrics will trigger forced reflow / layout. Read on for additional cases and details.
elem.offsetLeft, elem.offsetTop, elem.offsetWidth, elem.offsetHeight, elem.offsetParent