Skip to content

Instantly share code, notes, and snippets.

View jdrydn's full-sized avatar

jdrydn jdrydn

View GitHub Profile
@g-wilson
g-wilson / lambda.js
Last active September 27, 2017 17:09
Lambda@Edge function for Cloudfront which adds web security headers to static sites hosted with S3 + Cloudfront
/**
* This script is to be deployed as a Lambda@Edge function for AWS Cloudfront which
* adds necessary web security headers to static sites hosted with S3 + Cloudfront.
* This behaviour is not currently (2017-09-27) supported as a configuration option in S3 or Cloudfront.
*
* Lambda trigger event name: "CloudFront Viewer Response"
* Installation instructions: http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/lambda-create-functions.html
*
* Extras not currently included:
*
@tdq132
tdq132 / .rclone.conf
Last active May 13, 2019 10:28
systemd service for mounting an rclone remote
[gd-tq]
type = drive
client_id =
client_secret =
scope = drive
root_folder_id =
service_account_file =
token = redacted
[gd-tq-cache]