Skip to content

Instantly share code, notes, and snippets.

@nicholas
nicholas / gistlog.yml
Created February 22, 2018 20:06 — forked from askilondz/gistlog.yml
Adaptive Streaming with MPEG-DASH and HLS using AWS

Adaptive Streaming has become the neccessity for streaming video and audio. Unfortantely, as of this post, there isn't a whole lot of tutorials that accumulate all of the steps to get this working. Hopefully this post achieves that. This post focuses on using Amazon Web Services (AWS) to transcode for HLS and DASH and be the Content Delivery Network (CDN) that delivers the stream to your web page. We'll be using Video.js for the HTML5 player as well as javascript support libaries to make Video.js work with HLS and DASH.

So Here's what you need:

Set up three S3 buckets

@nicholas
nicholas / gist:8877884
Created February 8, 2014 07:15
Autohotkey Autorun
*!Q::
If GetKeyState("w")
SendInput {Shift Up}{w Up}
else
SendInput {Shift Down}{w Down}
return
# AppDelegate.m
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent];
[[AuthenticationManager sharedInstance] setupWithWindow:self.window];
return YES;
}
@nicholas
nicholas / gist:6401107
Created August 31, 2013 22:41
Example Cheffile
# -*- mode: ruby -*-
# vi: set ft=ruby :
site 'http://community.opscode.com/api/v1'
cookbook 'apt'
cookbook 'build-essential'
cookbook 'git'
@nicholas
nicholas / gist:6401101
Created August 31, 2013 22:40
Example Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.require_plugin('vagrant-omnibus')
Vagrant.require_plugin('vagrant-librarian-chef')
Vagrant.configure("2") do |config|
config.omnibus.chef_version = :latest
config.vm.box = "precise64"
@nicholas
nicholas / gist:1665233
Created January 23, 2012 19:59
Installing Falcon's Ruby 1.9.3 Performance Patches
# Reference: https://gist.github.com/1658360
curl https://raw.github.com/gist/1658360/afd06eec533ad0140011bdaf652e6cd82eedf7ec/cumulative_performance.patch > $rvm_path/patches/ruby/1.9.3/p0/falcon.patch
rvm install 1.9.3 -n fast --patch falcon
rvm gemset copy 1.9.3-p0@global 1.9.3-p0-fast@global
rvm gemset copy 1.9.3-p0@plustrac 1.9.3-p0-fast@plustrac
bundle