Skip to content

Instantly share code, notes, and snippets.

@swarad07
swarad07 / layout-debug.js
Last active May 6, 2020 17:30
Layout highlighter
/**
* Open browser console and add paste the below line.
* Outline will be added to all the elements.
*
* Credit for original idea: https://github.com/saki007ster
*/
$$('*').map(A=>A.style.outline=`1px solid hsl(${(A+A).length*9},99%,50%`);
@oodavid
oodavid / README.md
Created March 26, 2012 17:05
Backup MySQL to Amazon S3

Backup MySQL to Amazon S3

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

1 - Install s3cmd

this is for Centos 5.6, see http://s3tools.org/repositories for other systems like ubuntu etc