Skip to content

Instantly share code, notes, and snippets.

@jankeromnes
jankeromnes / gist:3100087
Created July 12, 2012 18:46 — forked from paulirish/gist:3098860
Open Conference Expectations

Open Conference Expectations

For conferences, it's extremely important that attendees get top-quality content from industry experts. As a highly compelling format of educating others based on experience and research, conferences stand to be one of the best sources of refined knowledge available. Still, it's important for a successful event to have a few guidelines to ensure quality content from the best and most appropriate speakers. Below is a set of guidelines for conference organizers that ensure quality content for attendees and the community.

What We, As Speakers, Expect from Conferences

  1. Video recordings: Organizers should prioritize recording all talks and sessions. A conference that only teaches the ~300 people in the room has constrained value and is not worthwhile to a speaker who wants to benefit the community. When recorded, video will be available online under a permissive license (CC-BY-*) within six months of the event.

  2. Travel reimbursement: Conferences will reimburse trav

for(i=0;++i<5;)for(j=2;++j<22;)eval('a=patch_'+i+'_'+j).parentNode.appendChild(a)
for(i=0;++i<5;)for(j=2;++j<22;)eval('a=patch_'+i+'_'+j).parentNode.appendChild(a)
@jankeromnes
jankeromnes / fxosdevices.js
Last active October 11, 2019 01:14
List of Firefox OS devices and their properties
// This list has moved to https://github.com/jankeromnes/devices/
// It's also hosted on a CDN: https://code.cdn.mozilla.net/devices/devices.json
var devices = {
"TYPES": [ "phones", "tablets", "laptops", "televisions", "consoles", "watches" ],
"phones": [
{
"name": "Firefox OS Flame",
"width": 320,
"height": 570,
"pixelRatio": 1.5,
@jankeromnes
jankeromnes / devices.js
Last active December 3, 2021 09:40
List of common devices and their properties
// This list of common devices was put together from various online sources by me, Jan Keromnes.
//
// The device features are:
// - name: The device brand and model(s).
// - width: The viewport width.
// - height: The viewport height.
// - pixelRatio: The screen's pixel ratio (e.g. HiDPI > 1).
// - userAgent: The device's UserAgent string on the web.
// - touch: Whether the device's screen is touch-enabled.
//
(function(a){a[Math.floor(Math.random()*a.length)](document.body)})([
function(b){b.style.fontFamily='cursive'},
function(b){b.style.color='#f06'},
function(b){b.style.cursor='cell'},
function(b){b.style.cursor='crosshair'},
function(b){b.style.cursor='help'},
function(b){b.style.cursor='move'},
function(b){b.style.cursor='none'},
function(b){b.style.cursor='not-allowed'},
function(b){b.style.cursor='pointer'},
@jankeromnes
jankeromnes / benchmark-pem-vs-rsacompat-vs-openssl.js
Created July 17, 2017 12:09
Benchmarking RSA certificate generation speed (PEM vs RSA Compat vs OpenSSL)
let exec = require('child_process').exec;
let forge = require('node-forge');
let rsa = require('rsa-compat').RSA;
let pem = require('pem');
function generateWithOpenSSL (callback) {
let start = Date.now();
exec('openssl genrsa 4096', (error, stdout, stderr) => {
@jankeromnes
jankeromnes / firefox-cloud9-config-examples.js
Created July 17, 2017 12:13
Configuring Cloud9 IDE for Firefox (brain dump with examples)
/*
└─ your.plugin
├─ builders // https://cloud9-sdk.readme.io/v0.1/docs/builders
| └─ firefox.build {
"cmd": ["./mach", "build", "$file", "$args"],
"env": {},
"selector": "source.ext"
}
├─ runners // https://cloud9-sdk.readme.io/v0.1/docs/runners
| └─ haskell.run {
@jankeromnes
jankeromnes / db.json
Created March 26, 2018 13:44
A redacted db.json file for https://janitor.technology with a project, admin user, 2 machines and 3 hosts.
{
"hostname": "janitor.technology",
"letsencrypt": {
"email": "admin@example.com",
"key": "-----BEGIN RSA PRIVATE KEY-----\r\n[REDACTED]\r\n-----END RSA PRIVATE KEY-----\r\n"
},
"https": {
"ca": [
"-----BEGIN CERTIFICATE-----\r\n[REDACTED]\r\n-----END CERTIFICATE-----\r\n"
],
@jankeromnes
jankeromnes / ephemeral.diff
Created January 7, 2019 14:13
Some old work-in-progress diff about janitor.technology
Commits:
- redirect when code=&state= URL parameters have been used
- save access token creation date and redirect tokens
- expire access tokens after 30 days
- save machine spawn time
- delete any container from admin page
- delete container/token after a timeout (but remember across server restarts)
- after spawn, redirect to specific container ID in Containers page
commit e30a726f79b24fe71257b27babf82ee644c8e4bb