Skip to content

Instantly share code, notes, and snippets.

@tedder
Created February 7, 2016 20:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tedder/00a8856e5904969afd4e to your computer and use it in GitHub Desktop.
Save tedder/00a8856e5904969afd4e to your computer and use it in GitHub Desktop.
twtxt post_tweet_hook
here's what I'm using to push the file to my S3 bucket. The bucket has CloudFront with a SNI-based https cert.
post_tweet_hook = "AWS_PROFILE=pjnet aws s3 cp {twtfile} s3://tedder/twtxt.txt --acl public-read --storage-class REDUCED_REDUNDANCY --cache-control 'max-age=60,public'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment