Skip to content

Instantly share code, notes, and snippets.

<html>
<head>
<title>Airbnb Embed</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
</html>
import hashlib
import hmac
import six
def validate_hub_signature(app_secret, request_payload, hub_signature_header):
"""
@inputs:
app_secret: Secret Key for application
request_payload: request body
@bastiW
bastiW / js
Created August 27, 2016 11:15
opc_server.js
/* eslint no-process-exit: 0 */
"use strict";
//require("requirish")._(module);
Error.stackTraceLimit = Infinity;
var argv = require('yargs')
.wrap(132)
.string("alternateHostname")
.describe("alternateHostname")
/*global require,setInterval,console */
var opcua = require("node-opcua");
var Variant = opcua.Variant;
var DataType = opcua.DataType;
var DataValue = opcua.DataValue;
// Let's create an instance of OPCUAServer
var server = new opcua.OPCUAServer({