Skip to content

Instantly share code, notes, and snippets.

View rquast's full-sized avatar
🤖

Roland Quast rquast

🤖
View GitHub Profile
<!-- Video element (live stream) -->
<label>Video Stream</label>
<video autoplay id="video" width="640" height="480"></video>
<!-- Canvas element (screenshot) -->
<label>Screenshot (base 64 dataURL)</label>
<canvas id="canvas" width="640" height="480"></canvas>
<!-- Capture button -->
<button id="capture-btn">Capture!</button>
@rquast
rquast / install-comodo-ssl-cert-for-nginx.rst
Created February 6, 2017 01:11 — forked from bradmontgomery/install-comodo-ssl-cert-for-nginx.rst
Steps to install a Comodo PositiveSSL certificate with Nginx.

Setting up a SSL Cert from Comodo

I use Namecheap.com as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.

These are the steps I went through to set up an SSL cert.

Purchase the cert

<template>
<label>
<input type="checkbox" ref="showHeader" checked="false">
Show Header?
</label>
<h1 if.bind="showHeader.checked" ref="theHeader">${message}</h1>
The header is: ${theHeader}
</template>
/*eslint-disable no-var*/
var path = require('path');
var HtmlWebpackPlugin = require('html-webpack-plugin');
var AureliaWebpackPlugin = require('aurelia-webpack-plugin');
var ProvidePlugin = require('webpack/lib/ProvidePlugin');
var FaviconsWebpackPlugin = require('favicons-webpack-plugin');
var pkg = require('./package.json');
var outputFileTemplateSuffix = '-' + pkg.version;
/*eslint-disable no-var*/
var path = require('path');
var webpack = require('webpack');
var AureliaWebpackPlugin = require('aurelia-webpack-plugin');
var ProvidePlugin = require('webpack/lib/ProvidePlugin');
module.exports = {
context: __dirname,
devServer: {
    var cache = [];
    console.log(JSON.parse(JSON.stringify(this, function(key, value) {
      if (typeof value === 'object' && value !== null) {
        if (cache.indexOf(value) !== -1) {
          return;
        }
        cache.push(value);
      }
 return value;