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"
| window.console.object = function (obj, options) { | |
| var defaultOptions = { | |
| 'label': 'obj', | |
| 'consoleFunction': 'log', | |
| 'showArguments': true, | |
| 'exclude': [], | |
| 'meterTime': false | |
| }; |
| #!/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 blessed = require('blessed'); | |
| const {execFile} = require('child_process'); | |
| const screen = blessed.screen({ | |
| smartCSR: true | |
| }); | |
| screen.title = 'my window title'; | |
| var box = blessed.box({ |
| 'use strict'; | |
| var React = require('react'), | |
| _ = require('lodash'), | |
| styler = require('react-styler'); | |
| var ChartLegend2 = React.createClass({ | |
| displayName: 'ChartLegend2', |
To put JSON to Gun
gun.putJSON(json);To get JSON from Gun
gun.open(() => {| 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