Install the two dependencies, ImageMagick and Ghostscript.
$ brew install imagemagick
$ brew install ghostscript| aws s3 sync s3://source-bucket s3://destination-bucket --acl=bucket-owner-full-control --source-region <region> --region <destination-region> |
| var geometry = {}; | |
| geometry.scrollTop = function(win, doc) { | |
| if (win.pageYOffset !== undefined) { | |
| return win.pageYOffset; | |
| } else { | |
| return Math.max(doc.documentElement.scrollTop, doc.body.scrollTop); | |
| } | |
| }; |
| USERNAME="your-username" | |
| BUCKETNAME="my-awesome-bucket-name" | |
| aws iam put-user-policy --user-name $USERNAME --policy-name AmazonS3FullAccess-$USERNAME --policy-document '{ | |
| "Version": "2012-10-17", | |
| "Statement": [ | |
| { | |
| "Effect": "Allow", | |
| "Action": [ | |
| "s3:ListBucket", |
| # Builds a Exiv2 framework for the iPhone and the iPhone Simulator. | |
| # Creates a set of universal libraries that can be used on an iPhone and in the | |
| # iPhone simulator. Then creates a pseudo-framework to make using libexiv2 in Xcode | |
| # less painful. | |
| # | |
| # To configure the script, define: | |
| # IPHONE_SDKVERSION: iPhone SDK version (e.g. 8.1) | |
| # | |
| # Then go get the source tar.bz of the libexiv2 you want to build, shove it in the | |
| # same directory as this script, and run "./libexiv2.sh". Grab a cuppa. And voila. |
| # Builds a ZThread framework for the iPhone and the iPhone Simulator. | |
| # Creates a set of universal libraries that can be used on an iPhone and in the | |
| # iPhone simulator. Then creates a pseudo-framework to make using libzthread in Xcode | |
| # less painful. | |
| # | |
| # To configure the script, define: | |
| # IPHONE_SDKVERSION: iPhone SDK version (e.g. 8.1) | |
| # | |
| # Then go get the source tar.bz of the libzthread you want to build, shove it in the | |
| # same directory as this script, and run "./libzthread.sh". Grab a cuppa. And voila. |
| # Builds a ZLib framework for the iPhone and the iPhone Simulator. | |
| # Creates a set of universal libraries that can be used on an iPhone and in the | |
| # iPhone simulator. Then creates a pseudo-framework to make using libz in Xcode | |
| # less painful. | |
| # | |
| # To configure the script, define: | |
| # IPHONE_SDKVERSION: iPhone SDK version (e.g. 8.1) | |
| # | |
| # Then go get the source tar.bz of the libz you want to build, shove it in the | |
| # same directory as this script, and run "./libz.sh". Grab a cuppa. And voila. |
| # Builds a Libtiff framework for the iPhone and the iPhone Simulator. | |
| # Creates a set of universal libraries that can be used on an iPhone and in the | |
| # iPhone simulator. Then creates a pseudo-framework to make using libtiff in Xcode | |
| # less painful. | |
| # | |
| # To configure the script, define: | |
| # IPHONE_SDKVERSION: iPhone SDK version (e.g. 8.1) | |
| # | |
| # Then go get the source tar.bz of the libtiff you want to build, shove it in the | |
| # same directory as this script, and run "./libtiff.sh". Grab a cuppa. And voila. |
| # Builds a Libjpeg framework for the iPhone and the iPhone Simulator. | |
| # Creates a set of universal libraries that can be used on an iPhone and in the | |
| # iPhone simulator. Then creates a pseudo-framework to make using libjpeg in Xcode | |
| # less painful. | |
| # | |
| # To configure the script, define: | |
| # IPHONE_SDKVERSION: iPhone SDK version (e.g. 8.1) | |
| # | |
| # Then go get the source tar.bz of the libjpeg you want to build, shove it in the | |
| # same directory as this script, and run "./libjpeg.sh". Grab a cuppa. And voila. |
| # Builds a Libpng framework for the iPhone and the iPhone Simulator. | |
| # Creates a set of universal libraries that can be used on an iPhone and in the | |
| # iPhone simulator. Then creates a pseudo-framework to make using libpng in Xcode | |
| # less painful. | |
| # | |
| # To configure the script, define: | |
| # IPHONE_SDKVERSION: iPhone SDK version (e.g. 8.1) | |
| # | |
| # Then go get the source tar.bz of the libpng you want to build, shove it in the | |
| # same directory as this script, and run "./libpng.sh". Grab a cuppa. And voila. |