This is a command in the Docker Quickstart Terminal
$ This is a command run inside the docker host or inside a container (linux etc, eg after docker-machine ssh default
or docker run -it ubuntu bash
)
- start docker quick-start terminal
'use strict'; | |
// Licensed under a CC0 1.0 Universal (CC0 1.0) Public Domain Dedication | |
// http://creativecommons.org/publicdomain/zero/1.0/ | |
(function() { | |
// Update 'version' if you need to refresh the cache | |
var staticCacheName = 'static'; | |
var version = 'v1::'; |
asyncTest().then(()=>console.log('done')); | |
async function asyncTest(){ | |
let asyncTest = await test(); | |
} | |
async function test(){ | |
var t = new Array(10); |
body { | |
font-family: sans-serif; | |
} | |
section { | |
margin-bottom: 40px; | |
} | |
h1 { | |
font-size: 20px; |
System Configuration: Joyent i86pc | |
Memory size: 131037 Megabytes | |
System Peripherals (Software Nodes): | |
i86pc | |
scsi_vhci, instance #0 | |
ramdisk, instance #0 | |
pci, instance #0 | |
pci15d9,702 (pciex8086,e00) [Intel Corporation Xeon E7 v2/Xeon E5 v2/Core i7 DMI2] (driver not attached) | |
pci8086,e02 (pciex8086,e02) [Intel Corporation Xeon E7 v2/Xeon E5 v2/Core i7 PCI Express Root Port 1a] (driver not attached) |
The MIT-except-Apple License (MIT-EA) | |
Copyright (c) <year> <copyright holders> | |
Permission is hereby granted, free of charge, to any person (except | |
anybody associated with Apple Inc.) obtaining a copy of this software | |
and associated documentation files (the "Software"), to deal in the | |
Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is |
# References: | |
# http://blog.mixu.net/2011/08/13/nginx-websockets-ssl-and-socket-io-deployment/ | |
# http://blog.exceliance.fr/2012/09/10/how-to-get-ssl-with-haproxy-getting-rid-of-stunnel-stud-nginx-or-pound/ | |
# | |
global | |
nbproc 2 | |
maxconn 16384 | |
defaults |
Provided that you already have a file or stream segmenter generating your .m3u8 playlist and .ts segment files (such as the ffmpeg 'hls' muxer), this little node server will serve up those files to an HLS compatible client (e.g. Safari). If you're using node for your streaming app already, this obviates the need to serve the HLS stream from a separate web server.
loosely based on https://gist.github.com/bnerd/2011232
// loosely based on https://gist.github.com/bnerd/2011232
// requires node.js >= v0.10.0
// assumes that HLS segmenter filename base is 'out'
// and that the HLS playlist and .ts files are in the current directory
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Cross-browser kerning-pairs & ligatures</title> | |
<style> | |
body { font-family: sans-serif; background: #f4f3f3; color: rgba(40, 30, 0, 1); width: 500px; margin: 80px auto; padding: 0px; } | |
a { color: rgba(15, 10, 0, 0.8); text-decoration: none; border-bottom: 1px solid; padding: 1px 1px 0px; -webkit-transition: background 1s ease; } | |
a:hover { background: rgba(0, 220, 220, 0.2); } | |
p, li { line-height: 1.5; padding: 0em 1em 0em 0em; margin: 0em 0em 0.5em; } |