I hereby claim:
- I am maxkaplan on github.
- I am maxkaplan (https://keybase.io/maxkaplan) on keybase.
- I have a public key whose fingerprint is 3FEC C2B0 A7E1 DD72 E5F4 850C 0F7F D605 0DE9 1FAE
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
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
#!/bin/bash | |
set -eo pipefail | |
TARGETFMT='/opt/vagrant/embedded/gems/gems/vagrant-%s/plugins/providers/virtualbox/driver/meta.rb' | |
die() { echo >&2 "$@"; exit 1; } | |
[[ $EUID -eq 0 ]] || die "sudo required" |
require 'open-uri' | |
require 'rubygems' | |
require 'rmagick' | |
include Magick | |
TOP_N = 10 # Number of swatches | |
# Create a 1-row image that has a column for every color in the quantized | |
# image. The columns are sorted decreasing frequency of appearance in the | |
# quantized image. |