This example is part of this article.
This is an example for an HLS delivery with basic security. Nginx compiled with nginx-rtmp-module & secure-link is used as media server. Features:
- Domain filtering
- Referrer filtering
- Embed buster
This example is part of this article.
This is an example for an HLS delivery with basic security. Nginx compiled with nginx-rtmp-module & secure-link is used as media server. Features:
I wanted to build an LDAP server that queries a MySQL server to fetch users and check their passwords. It is mainly used for old software that does not work with custom OAuth2 providers. Redmine is an example of this.
Instructions:
insert.sql
var request = require('request'); | |
var fs = require('fs'); | |
var sox = require('sox'); | |
var spawn = require('child_process').spawn; | |
var WATSON_USER = ''; | |
var WATSON_PASS = ''; | |
var url = 'https://stream.watsonplatform.net/speech-to-text/api/v1/recognize'; | |
Custom recipe to get full Node.js Cloud Environment in DigitalOcean Dokku droplet running from scratch. Yes. Your own Heroku for $5 per month.
I use this gist to keep track of the important configuration steps required to have a functioning system after fresh install.
When you have executed that's all step by step you will get a new working and stable system which is ready to host & serve your Node.js application and databases.
# This patch detects {index_columns} that match something like | |
# the example below, then strips the surrounding double quotes. | |
# | |
# "(settings->'example')" | |
# | |
# The resulting CREATE INDEX sql looks something like: | |
# | |
# CREATE INDEX "idx_users_on_settings_example" ON "users" USING gin ((settings->>'example')) | |
# | |
# Your {add_index} call should looks something like: |
App = Ember.Application.create({}); | |
var get = Ember.get, set = Ember.set, View = Ember.View; | |
App.FooBarComponent = Ember.Component.extend({ | |
test: 'I am from the component!', | |
layout: Ember.Handlebars.compile("{{yield}}"), | |
_yield: function(context, options) { | |
var view = options.data.view, | |
parentView = this._parentView, | |
template = get(this, 'template'); |
# You need some sort of indication that an Ajax transaction exists. jQuery.active doesn't seem to do the | |
# trick, so we use the following JS (well, we use CoffeeScript, but whatever) that gets inserted into | |
# our application. | |
# | |
#$(function() { | |
# var body, doc; | |
# body = $('body'); | |
# doc = $(document); | |
# doc.ajaxStart(function() { | |
# return body.addClass('ajax-in-progress').removeClass('ajax-quiet'); |
Data Down / Actions Up
Plain JSBin's
Ember Version Base JSBin's
// Extend Ember.Route to add support for sensible | |
// document.title integration. | |
Ember.Route.reopen({ | |
// `titleToken` can either be a static string or a function | |
// that accepts a model object and returns a string (or array | |
// of strings if there are multiple tokens). | |
titleToken: null, |
batch = store.createRecord('batch') | |
foo1 = store.createRecord 'foo', | |
title: 'I am a foo' | |
foo2 = store.createRecord 'foo', | |
title: 'I am another foo' | |
promise1 = batch.saveRecord(foo1).then (foo) -> | |
console.log(foo) |