Skip to content

Instantly share code, notes, and snippets.

View joshbrown's full-sized avatar
💭
Tea. Code. Repeat.

Josh Brown joshbrown

💭
Tea. Code. Repeat.
View GitHub Profile
@sawyer
sawyer / all_shipments.php
Last active August 29, 2015 14:24
Paging through all EasyPost Shipments in PHP
<?php
require_once("../lib/easypost.php");
\EasyPost\EasyPost::setApiKey('cueqNZUb3ldeWTNX7MU3Mel8UXtaAMUi');
$base_params = array(
"start_datetime" => "2015-07-01",
"end_datetime" => "2015-08-01",
"purchased" => false, // actually means only_purchased?
"page_size" => 10
@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