Skip to content

Instantly share code, notes, and snippets.

<?xml version="1.0" encoding="utf-8"?>
<Client name="Chromecast">
<TranscodeTargets>
<VideoProfile protocol="http" container="mkv" codec="h264" audioCodec="ac3,eac3,mp3" context="streaming" />
<MusicProfile container="mkv" codec="opus" />
<PhotoProfile container="jpeg" />
<SubtitleProfile container="ass" codec="ass" />
</TranscodeTargets>
<DirectPlayProfiles>
<VideoProfile container="mp4" codec="Hevc,h265,mpeg1video,mpeg2video,h264,mpeg4" audioCodec="mp3,mp2,ac3,eac3" subtitleFormat="srt,ass"/>
### Keybase proof
I hereby claim:
* I am aaronburchfield on github.
* I am aaronb (https://keybase.io/aaronb) on keybase.
* I have a public key ASAvxeFUh3hZhSM1rdqcMVyTNpKYpaeJwgDxUJ1FkWUYjQo
To claim this, I am signing this object:
@AaronBurchfield
AaronBurchfield / test_cf.py
Created June 13, 2018 20:25
test middleware_cloudfront
#!/usr/bin/python
import sys
sys.path.append('/usr/local/munki')
import middleware_cloudfront
# Update this to your cloudfront distribution id
cfdistribution = 'aaabbbcccddd'
# if your munki repo is not served from the root, update the path
@AaronBurchfield
AaronBurchfield / lambda-basic-auth.js
Created March 8, 2018 22:54 — forked from lmakarov/lambda-basic-auth.js
Basic HTTP Authentication for CloudFront with Lambda@Edge
'use strict';
exports.handler = (event, context, callback) => {
// Get request and request headers
const request = event.Records[0].cf.request;
const headers = request.headers;
// Configure authentication
const authUser = 'user';
const authPass = 'pass';
@AaronBurchfield
AaronBurchfield / push_munki_repo.py
Last active October 18, 2016 18:30
From OS X, push a local munki repo to an s3 bucket with cache-age and storage class. Just wrapping awscli for now, should really move to boto module.
#!/usr/bin/python2.7
"""Push munki repo directories to s3 with cache and storage class metadata."""
import subprocess
import os
import sys
from Foundation import CFPreferencesCopyAppValue
def read_preference(key, bundle):
"""Read a preference key from a preference domain."""

Keybase proof

I hereby claim:

  • I am aaronburchfield on github.
  • I am aaronb (https://keybase.io/aaronb) on keybase.
  • I have a public key whose fingerprint is 9180 4C36 E1C0 398D C21A FC86 2016 EABF AEED 69A9

To claim this, I am signing this object: