Skip to content

Instantly share code, notes, and snippets.

View clayrichardson's full-sized avatar

clay richardson clayrichardson

View GitHub Profile
#!/bin/bash
set -ex
# Swap file commands from:
# https://www.digitalocean.com/community/articles/how-to-add-swap-on-ubuntu-12-04
# Create swapfile
echo "Creating swap file..."
dd if=/dev/zero of=/swapfile bs=1024 count=4096k

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

#include <SD.h>
#include <Wire.h>
#include <Adafruit_Sensor.h>
#include <Adafruit_LSM303_U.h>
#include <Adafruit_BMP085_U.h>
#include <Adafruit_L3GD20_U.h>
#include <Adafruit_10DOF.h>
/* Assign a unique ID to the sensors */

Keybase proof

I hereby claim:

  • I am clayrichardson on github.
  • I am clayrichardson (https://keybase.io/clayrichardson) on keybase.
  • I have a public key ASBBbyOvYCDaAJyiGKcarUpGtGoz-Gngf51so0ln43ne2go

To claim this, I am signing this object: