Skip to content

Instantly share code, notes, and snippets.

View saadmir's full-sized avatar

Saad Mir saadmir

View GitHub Profile

Keybase proof

I hereby claim:

  • I am saadmir on github.
  • I am saadmir (https://keybase.io/saadmir) on keybase.
  • I have a public key ASC0P9O_ldQ_oI-a2vWvG9X8z7HRx2sSrTev9bj5k5WP3go

To claim this, I am signing this object:

@saadmir
saadmir / s3.sh
Last active August 29, 2015 14:20 — forked from chrismdp/s3.sh
# You don't need Fog in Ruby or some other library to upload to S3 -- shell works perfectly fine
# This is how I upload my new Sol Trader builds (http://soltrader.net)
# Based on a modified script from here: http://tmont.com/blargh/2014/1/uploading-to-s3-in-bash
S3KEY="my aws key"
S3SECRET="my aws secret" # pass these in
function putS3
{
path=$1