I hereby claim:
- I am mmcc on github.
- I am mmcc (https://keybase.io/mmcc) on keybase.
- I have a public key whose fingerprint is C593 0B26 13C5 134C A904 2CF0 EC2F 9549 C5B6 236A
To claim this, I am signing this object:
{ | |
"input": "s3://zencodertesting/tobias.mp4", | |
"output": [ | |
{ | |
"audio_bitrate": 64, | |
"audio_sample_rate": 22050, | |
"base_url": "s3://zencodertesting/tobias-encrypted/", | |
"filename": "file-64k.m3u8", | |
"format": "aac", | |
"public": 1, |
I hereby claim:
To claim this, I am signing this object:
function initEventSource(route) { | |
var source = new EventSource(route); | |
source.onopen = connectionEstablished; | |
source.onmessage = messageReceived; | |
source.onerror = connectionError; | |
return source; | |
} |
#!/bin/sh | |
# Fix NTP/Time | |
# https://github.com/boot2docker/boot2docker/issues/290 | |
boot2docker ssh -- sudo killall -9 ntpd | |
boot2docker ssh -- sudo ntpclient -s -h pool.ntp.org | |
boot2docker ssh -- sudo ntpd -p pool.ntp.org |
var path = require('path'); | |
var zencoder = require('zencoder')(); | |
var AWS = require('aws-sdk'); | |
var _ = require('lodash'); | |
// I need to use this on my personal machine to load the correct credentials from my AWS config | |
// This isn't necessary if you're doing something like setting ENV variables | |
var credentials = new AWS.SharedIniFileCredentials({profile: 'some-aws-credentials'}); | |
AWS.config.credentials = credentials; |
<audio id="audio_example" class="video-js vjs-default-skin" controls preload="auto" | |
width="600" height="600" poster="/img/awesome-album-art.png" data-setup='{}'> | |
<source src="/audio/awesome-music.mp3" type='audio/mp3'/> | |
</audio> |
var $selects = $('.user_map_selector select'); | |
var throwAwayEmail = function(index) { | |
return 'oldsupportacct+'+ getRandomInt(2500, 99999) +'@zencoder.com'; | |
} | |
function getRandomInt(min, max) { | |
return Math.floor(Math.random() * (max - min)) + min; | |
} | |
var count = 0; |
var Suite = {}; | |
function getRandomInt(min, max) { | |
return Math.floor(Math.random() * (max - min)) + min; | |
} | |
Suite.tests = [ | |
{ | |
name: 'Test Delivery', | |
address: 'http://www.example.com/accounts/'+ getRandomInt(100, 999) +'/subscriptions', |
var blah = { foo: "bar", neat: "true", something: "{\"cool\": \"not\"}"} | |
// { foo: 'bar', | |
// neat: 'true', | |
// something: '{"cool": "not"}' } | |
// So far, so good. | |
var stringified = JSON.stringify(blah) | |
// '{"foo":"bar","neat":"true","something":"{\\"cool\\": \\"not\\"}"}' | |
// Not what we wanted, but this is reasonable and expected. |
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Awesome Boilerplate</title> | |
<link rel="stylesheet" href="css/main.css"> | |
</head> |