Skip to content

Instantly share code, notes, and snippets.

View michielbdejong's full-sized avatar

Michiel de Jong michielbdejong

View GitHub Profile
@michielbdejong
michielbdejong / plugin-virtual's REST API
Last active June 2, 2017 09:10
plugin-virtual's REST API
# WebFinger for peering:
1. GET https://red.ilpdemo.org/.well-known/webfinger?resource=https://red.ilpdemo.org
{
"subject":"https://red.ilpdemo.org",
"properties":{
"https://interledger.org/rel/publicKey":"0ZwLzlPLd2UWJPwYSz6RhOh3S-N-cdAhVqG62iqb6xI",
"https://interledger.org/rel/protocolVersion":"Compatible: ilp-kit v2.0.2"},
"links":[
#!/usr/bin/env node
'use strict';
var http = require('http');
var https = require('https');
var fs = require('fs');
var qr = require('qr-image');
var boxHost = 'foxbox.local';
var ports = {
qr: 12345,
var http = require('http');
var qr = require('qr-image');
var drRandom = require('drossel-random');
var ipaddress = '10.246.34.43';
var ports = {
qr: 12345,
api: 12346
};
var appOrigin = 'https://local-secure.5apps.com';
var appUrl = appOrigin + '/';
@michielbdejong
michielbdejong / gist:75fc0f5022fe5e26b42e
Created August 25, 2015 10:03
gaia build flags investigation
Adding GAIA_KEYBOARD_ENABLE_USER_DICT := 0 to my local.mk, the resulting build_stage/keyboad/ differs in the following way:
Michiels-MacBook-Pro:gaia Michiel$ diff -r keyboard-default/ build_stage/keyboard/
diff -r keyboard-default/index.html build_stage/keyboard/index.html
55c55
< <meta name="availableLanguages" content="en-US:201507251157, qps-ploc:201507251157, qps-plocm:201507251157">
---
> <meta name="availableLanguages" content="en-US:201507251201, qps-ploc:201507251201, qps-plocm:201507251201">
diff -r keyboard-default/settings.html build_stage/keyboard/settings.html
16c16
@michielbdejong
michielbdejong / Dockerfile
Last active August 29, 2015 14:11
Dockerfile that tries to build mozilla/fxa-content-server
FROM ubuntu
RUN apt-get update \
&& apt-get install -yq \
curl \
g++ \
git \
libgmp3-dev \
make \
python \
&& rm -rf /var/lib/apt/lists/*
FROM michielbdejong/devbox
RUN apt-get update
RUN apt-get install -y python python-pip python-dev software-properties-common
RUN pip install fabric fabtools
RUN wget https://raw.githubusercontent.com/cozy/cozy-setup/master/fabfile.py
RUN apt-get install -y openssh-server
RUN fab -H root@localhost -f /fabfile.py install
[8] 17 Jun 10:38:55 # Warning: no config file specified, using the default config. In order to specify a config file use 'redis-server /path/to/redis.conf'
[8] 17 Jun 10:38:55 * Server started, Redis version 2.2.12
[8] 17 Jun 10:38:55 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
[8] 17 Jun 10:38:55 * The server is now ready to accept connections on port 6379
[8] 17 Jun 10:38:55 - 0 clients connected (0 slaves), 790592 bytes in use
[8] 17 Jun 10:38:55 - Accepted 127.0.0.1:42836
[8] 17 Jun 10:38:55 - Accepted 127.0.0.1:42837
[^[[0m^[[36mINFO ^[[0m - 2014-06-17T10:38:55.174Z] [sockethub] redis check successful (version 2.2.12)
[8] 17 Jun 10:38:55 - Accepted 127.0.0.1:42838
[8] 17 Jun 10:38:55 - Accepted 127.0.0.1:42839
@michielbdejong
michielbdejong / gist:8911687
Last active August 29, 2015 13:56
free network foundation glossary
blt-37 - ? search only gave me the #37 tram in Basel or bacon-lettuce-tomato reference. ;)
but it seems blt-28 is a high-altitude balloon
cnw - Charles N. Wyble
d-q - abbreviation of delta-q
delta-q - The basic theory of OpenLibernet is that any distributed computing system (Internet is just
a supercomputer) introduces loss and delay between given points in spacetime
w/r/t translocation of information. Loss and delay are fungible, and can be
@michielbdejong
michielbdejong / gist:7707267
Created November 29, 2013 15:25
changelog
## 0.8.4 (November 2013)
* support for draft-dejong-remotestorage-02.txt
* Fix multiple overlapping requests on first pageload
* Fix requests going to non-ready cache before initial sync finished
* Better error messages in widget
* Label change events from initial sync as 'local' if they come from local
* add JSHint checks
* add in-memory storage for when neither IndexedDB nor localStorage are availabl
e
@michielbdejong
michielbdejong / gist:7603534
Created November 22, 2013 17:16
public key from my build server
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDf6Yz+vpmlcWLEha9/HxJ2AqQrRAiNJ4PtgBSDXuz+DTq3N6JvLhm0wAHEaZAq+EJLv1CZxPPpQfQMcJKwNdjXO+zd5Z2rTx/InwoPDZsQvyOoNz9SYoZHfSoeG7A4tBs9W/51NUQ5qpUFJZ90scp/gpQNdAPQpVDRu26+OCZx+XQaQjVsRhCaib5AhRWAIDD61M/Ig4cdaTBMF/G6QSic/deTt0mHGMC73CRzJQnBGrjEk68IBWLHkj/r7pxMmzYtE999YfVBRJsg6c2PHiPQKX46CkfkuNeYJRvv9oHZ7Q4APOdbj8dUe9lXGYHrrS2QVdzui8r6tnxpu6aXm8fz michiel@build-stuff