Archive for category My Code

AWS CloudFront invalidation

It is now possible to invalidate objects (files) inĀ AWS CloudFront distributions. Handy when someone, like me, occasionally publishes files with the wrong content type. Here is how I implement this invalidation in python.

Tags: , , , ,

Spring-StringTemplate is now in Maven Central

For Ivy:

<dependency org="com.watchitlater" name="spring-stringtemplate" rev="1.5.1" />

For Maven (yeech):

<dependency>
  <groupId>com.watchitlater</groupId>
  <artifactId>spring-stringtemplate</artifactId>
  <version>1.5.1</version>
</dependency>

Thank you Sonatype.

Tags: , , , , ,

S3DropBox is now on GitHub

I’ve released a new version of my S3DropBox on GitHub. I’ve moved the project to GitHub so that I can have all my current active projects in one place. Check it out in its new home at https://github.com/tomcz/s3dropbox.

This release uses the AWS java libraries. They are finally good enough for me to stop creating my own wheels and vulcanising my own rubber. As a bonus the S3DropBox creates URLs in virtual hosted format (eg. https://mybucket.s3.amazonaws.com/myobject) if the bucket name permits that, uses HTTPS by default and is able to perform multipart uploads so that large files get uploaded faster.

Tags: , , , , ,