Skip to content

Instantly share code, notes, and snippets.

View fredkelly's full-sized avatar

Freddy Kelly fredkelly

View GitHub Profile
### Keybase proof
I hereby claim:
* I am fredkelly on github.
* I am fredkelly (https://keybase.io/fredkelly) on keybase.
* I have a public key whose fingerprint is C136 6714 3B16 C5A5 2AB8 7CB6 3F46 C1D7 7087 503A
To claim this, I am signing this object:
@fredkelly
fredkelly / s3cmd-delete.sh
Created August 15, 2014 04:18
Delete all contents of s3 bucked using s3cmd
s3cmd sync --delete-removed /dev/null s3://my-bucket
// ..snip
// Setup date formatter
NSDateFormatter *dateFormatter = [NSDateFormatter new];
[dateFormatter setDateFormat:@"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"];
dateFormatter.timeZone = [NSTimeZone timeZoneWithAbbreviation:@"UTC"];
entityMapping.preferredDateFormatter = dateFormatter;
// snip..