Skip to content

Instantly share code, notes, and snippets.

View lloyd's full-sized avatar

Lloyd Hilaiel lloyd

View GitHub Profile
@lloyd
lloyd / gist:7006453
Created October 16, 2013 11:44
blue sky dreaming
{
"name": "Firefox Accounts",
"description": "Firefox Accounts for FirefoxOS",
"launch_path": "/ui.html",
"type": "certified",
"developer": {
"name": "The Cloud Services Team",
"url": "https://github.com/mozilla-b2g/gaia"
},
"permissions": {
var http = require('http');
function processRequest(res, num, startTime) {
if (!startTime) startTime = new Date();
if (num === undefined) {
return process.nextTick(function() {
processRequest(res, 0);
});
}
var x = navigator.mozId;
x.foo = "bar";
@lloyd
lloyd / gist:5614053
Last active December 17, 2015 12:59
There is no voice today, we shall have an actual voice every monday from here on out.
The main news from the identity team:
Supporting FirefoxOS - Did you know Persona is how you log into your FirefoxOS device? The Identity team is working with marketplace to land final fixes in support of the FirefoxOS launch.
Emphasizing Native Support - The identity team supporting Native integrations of persona into FirefoxOS, Desktop, and Mobile has grown. Expect faster progress in making Persona a first class Firefox feature.
Stay tuned next week to learn about the latest from the PiCL effort, and how you'll be typing in your LDAP password a whole lot less.
{
"basic_auth_realm": "Basic realm=\"Mozilla Corporation - LDAP Login\"",
"browserid_server": "https://login.persona.org",
"client_sessions": {
"cookie_name": "session_state",
"secret": "REDACTED",
"duration": 86400000
},
"default_lang": "en-US",
"debug_lang": "it-CH",
#!/usr/bin/env node
var httpProxy = require('http-proxy'),
path = require('path'),
fs = require('fs');
httpProxy.createServer(443, 'login.persona.org', {
https: {
key: fs.readFileSync(path.join(process.env['HOME'], 'key.pem'), 'utf8'),
cert: fs.readFileSync(path.join(process.env['HOME'], 'cert.pem'), 'utf8')
(a[d]));
b && b.length && (c = b.join("&"));
return c
}
function d(a, b) {
try {
a.readyState == 4 && (a.onreadystatechange = c, b && b(a.responseText, a.status))
} catch (d) {}
}
[lloyd@clover ~]$ dig -t a login.persona.org
;; ANSWER SECTION:
login.persona.org. 3433 IN CNAME persona.org.
persona.org. 30 IN A 63.245.217.134
[lloyd@clover ~]$ dig -t a static.login.persona.org
;; ANSWER SECTION:
static.login.persona.org. 2209 IN CNAME persona.org.
persona.org. 30 IN A 63.245.209.241
toobusy: https://travis-ci.org/mozilla/browserid/builds/4330324
legitimate: https://travis-ci.org/mozilla/browserid/jobs/4306703
toobusy: https://travis-ci.org/mozilla/browserid/builds/4306122
@lloyd
lloyd / gist:4657963
Last active December 11, 2015 20:48
LOADING BCRYPT:
lstat("/home/lloyd/dev/browserid/node_modules/bcrypt/build/Release/bcrypt_lib.node", {st_mode=S_IFREG|0755, st_size=40622, ...}) = 0
futex(0x7f07719680c8, FUTEX_WAKE_PRIVATE, 2147483647) = 0
open("/home/lloyd/dev/browserid/node_modules/bcrypt/build/Release/bcrypt_lib.node", O_RDONLY|O_CLOEXEC) = 7
read(7, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\260!\0\0\0\0\0\0"..., 832) = 832
fstat(7, {st_mode=S_IFREG|0755, st_size=40622, ...}) = 0
mmap(NULL, 2127256, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 7, 0) = 0x7f077035b000
mprotect(0x7f0770362000, 2097152, PROT_NONE) = 0
mmap(0x7f0770562000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 7, 0x7000) = 0x7f0770562000