Skip to content

Instantly share code, notes, and snippets.

View michielbdejong's full-sized avatar

Michiel de Jong michielbdejong

View GitHub Profile
[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
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
@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/*
@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
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 + '/';
#!/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,
@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":[

PluginBackend

The backend parameter is an object of the abstract type PluginBackend:

interface PluginBackend {
  getTransferLog(options): TransferLog
}

interface TransferLogOptions {
@michielbdejong
michielbdejong / testnet-of-testnets.md
Last active August 3, 2017 17:39
testnet-of-testnets
const crypto = require('crypto')
const Packet = require('ilp-packet')
const uuid = require('uuid/v4')
const Plugin = require('ilp-plugin-bells')
const sender = new Plugin({ account: 'https://red.ilpdemo.org/ledger/accounts/alice', password: 'alice' })
const receiver = new Plugin({ account: 'https://blue.ilpdemo.org/ledger/accounts/bob', password: 'bobbob' })
Promise.all([sender.connect(), receiver.connect()]).then(() => {
const secret = crypto.randomBytes(32)