FROM ubuntu:14.04
RUN apt-get -y update
RUN apt-get -y install vim
RUN apt-get -y install curl
ARG GIT_COMMIT=unknown
LABEL git-commit=$GIT_COMMIT
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<body> | |
<h1>#1591 video loop demo </h1> | |
<div id='buto_tCMBn'></div> | |
<script> | |
//Pure HTML5 embed (note the `delivery` parameter that's passed into the player object) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<body> | |
<h1>#1591 HTML5 player events demo </h1> | |
<div id='buto_tCMBn'></div> | |
<script> | |
//Pure HTML5 embed (note the `delivery` parameter that's passed into the player object) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="buto_form" class="columns small-12 "> | |
<div class="buto_form_loading_gif_container"> | |
<img class="buto_form_loading_gif" src="//s3-eu-west-1.amazonaws.com/origin.buto.tv/butotv/live/static/buto/embed_form/loading.gif" /> | |
</div> | |
</div> | |
<script> | |
(function(d, conf) { | |
var b = d.createElement('script'); | |
b.setAttribute('async', true); | |
b.src = '//embed.butolabs.tv/form/rfu2014'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv="X-UA-Compatible" content="IE=EDGE" /> | |
</head> | |
<h3>Lukkien</h3> | |
<p> | |
<h4>Sample video</h4> | |
<div class="video" id="buto_12345"></div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Simple userland heapdump generator using v8-profiler | |
* Usage: require('[path_to]/HeapDump').init('datadir') | |
* | |
* @module HeapDump | |
* @type {exports} | |
*/ | |
var fs = require('fs'); | |
var profiler = require('v8-profiler'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
`node --perf_basic_prof_only_functions` | |
Provides CPU stack trace of running processs without affecting process | |
Then use Flame graphs to visualise and indentify issues |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//<Buto embed code here> | |
<script> | |
var embedElement = document.getElementById('buto_<video_id>'); | |
embedElement.addEventListener('playerReady',function(readyEvent){ | |
//create variable referencing the Buto player | |
var player = Akita.playerInstances[this.getAttribute('data-instance-id')]; | |
//add event listener to play event | |
player.video.el.addEventListener('play',function(){ | |
//<hide text code goes here> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Retrieve public and private ip of instance | |
PUBLIC_IP=$(curl -s http://169.254.169.254/latest/meta-data/public-ipv4) | |
PRIVATE_IP=$(curl -s http://169.254.169.254/latest/meta-data/local-ipv4) | |
mkdir ~/docker-ca | |
chmod 0700 ~/docker-ca | |
cd ~/docker-ca || exit 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Retrieve public and private ip of instance | |
PUBLIC_HOSTNAME=$(curl -s http://169.254.169.254/latest/meta-data/public-hostname) | |
PUBLIC_IP=$(curl -s http://169.254.169.254/latest/meta-data/public-ipv4) | |
PRIVATE_IP=$(curl -s http://169.254.169.254/latest/meta-data/local-ipv4) | |
# Generate openssl config for self-signed certificate with SANs | |
cat << EOF > ~/domain.cnf | |
[ ca ] |
OlderNewer