Skip to content

Instantly share code, notes, and snippets.

Lloyd Hilaiel lloyd

Block or report user

Report or block lloyd

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View proxy_server.js
#!/usr/bin/env node
var httpProxy = require('http-proxy'),
path = require('path'),
fs = require('fs');
httpProxy.createServer(443, '', {
https: {
key: fs.readFileSync(path.join(process.env['HOME'], 'key.pem'), 'utf8'),
cert: fs.readFileSync(path.join(process.env['HOME'], 'cert.pem'), 'utf8')
View ec-poc.js
This is a proof-of-concept to show that, despite being undocumented,
node can successfully sign and verify using Elliptic Curve keys and
SHA2 hashing.
I originally thought using sha2 with ecdsa in node wasn't possible
because node only accepts algorithms defined as an openssl message
digest algorithm, and even the latest version of openssl only lists

How to load test persona on EC2

build your environment

Let's create two virtual machines:

$ scripts/deploy.js create loader -t c1.xlarge
... (lots of output) ...
$ scripts/deploy.js create loadee -t c1.xlarge
... (lots of output) ...
lloyd /
Created Nov 3, 2011
BrowserID API doc sketch
View<callback>, [options])

Prompt the user for an email address that they would like to use to authenticate to the site. The email address will be passed to the supplied callback in the form of an identity assertion, which is a signed object that asserts that a specific email address is owned by a user who is willing to share it with a specific site, at a specific time. See identity assertions for more information.

  • callback - is a required callback that will be invoked with an assertion in the case of success, and with undefined on error (for example, if the user cancels or closes the dialog)
  • options - is an optional object who's properties change the behavior of the opened dialog. Allowed properties include:
    • requiredEmail - When provided contains an email that the user must use. This is useful when a site wishes to provide privileges only to a specific user.
    • silent - (boolean) - When true, an identity will be fetched without prompting the user. Suc
View gist:483204
= yajl_common
= yajl_gen
You can’t perform that action at this time.