I hereby claim:
- I am jharlap on github.
- I am jharlap (https://keybase.io/jharlap) on keybase.
- I have a public key ASBAYti-CKqmj4mWc4ZiNhgUSzCv54FX6301Wj_7rC5n3wo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
See the section in each example labelled as MAGIC for how to get the route pattern which matched the url path for each router.
FROM alpine:3.3 | |
RUN apk update && apk upgrade && apk add bash iptables inotify-tools | |
ADD /start.sh / | |
CMD ["/start.sh"] |
package main | |
import ( | |
"log" | |
"os" | |
"fmt" | |
"bufio" | |
"flag" |
package ch.prodema.misc | |
class PhpSerializedParser { | |
private enum ObjectType { | |
ARRAY('a'), STRING('s'), INTEGER('i') | |
ObjectType(String typeChar) { this.typeChar = typeChar } | |
private final String typeChar | |
private static final Map<String,ObjectType> lookup | |
static { |
### | |
This is chopped down from a multi-kloc app, which explains why Connect is involved | |
and why I would even care to do a riak.get and ignore its result. The issue here is | |
that if RUN_TEST is 1, doing the riak.get frequently causes the file upload to stall, | |
while when RUN_TEST is 0 and riak.get is skipped, the file upload works reliably. | |
### | |
connect = require 'connect' | |
fs = require 'fs' | |
riak = require('riak-js').getClient() |