This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Jan 1 07:59:59 hostname kernel: Clock: inserting leap second 23:59:60 UTC |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(* $ ocaml str.cma template.ml *) | |
module H = struct | |
module P = Pervasives | |
let split s : string list = Str.split (Str.regexp " +") s | |
let seq len = Array.make len 0 |> Array.to_list | |
let rint () : int = P.read_int () |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as HTTP from 'http'; | |
import * as URL from 'url'; | |
import * as NET from 'net'; | |
import * as ProxyAgent from 'proxy-agent'; | |
export function createProxy(proxyURL: string): HTTP.Server { | |
const agent: HTTP.Agent = new ProxyAgent(proxyURL); | |
const proxyURLObj = URL.parse(proxyURL); | |
const proxyServer = new HTTP.Server(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// http://www.typescriptlang.org/play/?ssl=1&ssc=1&pln=64&pc=1#code/PTAEjgVQjdMCldF-FQHU0Fxyho+QFAlIN0VBrcoTu1AWaoBD-8gI36DCcoM+BgL2aCwmoELmgIW6DLfoCHmgkP+D6coPRmgAHKDsFg0DKCYDAXdGEDyyoA3lQIAMgMATJgGH-ATdEMuoAEIB7AB4AeAEYBDAM4BTAHyhAMSoadu4wFd9lwFcqgKjlAskZr9OgPpGzMVs9AItQbz9QhUBGHS4pIK09R2dQSUAEI1AfbX8TUxiueSCAWhKgwAG5QAk5QGvlTNyFQEAY0ABLADtjABdDFoBjU1BALE162NrAjEALCMAG50QFQFLjQDZTEb6GQAZ1QE7TBUB75UBTuUBrDVBk4tKMCkA4uVAAa012gBtW0EBpOUBvHwZK5pbgTQd2oO2mQAgVBAMZCABW1AKbmwkAx5EKQBDyvA3qB5ApACvxgD21QA8CqBPu1QPFDkVUKh2gBPAAOfVCoAAvPt2gAnVoAc1AAB9QC0HABbfSmWmE0l9ZJUmn0loMgkYQCf2qi0VJQN1NEUAG6GeldXp8slyzQ5MxCgAUAEoqZZQhq+vLfILqYbjfsnOKwBLYfItS06YYlSqmmrTGbXe6dX1rQATQydABcdv0RsplnZ12ufvlbtphktTn1oYjixjcYcCaC3VyACYk5oU2nQsXM2HDJHkrnFmWK+n9NWQ7XI6FGwcgq1Paqer7iZrWoHfAANGvZ7u200jvpj5KT6d1qM9+14gnJjqgABmAEZIxaKdbGwAGVA77F74vH7VW0A22OgADkr+35d37VMHSPWsDIVbyvL9sR-Do7wAx9D1ADAABV+TfE9clfZpjDZK5QBMYwmgZFpDH0a4+naTRQAXJCHycD8txAtobwAZnvFtTyfLM1wbW140Ta99wAFiYgNHz1Niu1yRsuM-OiyN-dpGP9VNAOpPdeNo78ZP4+S02g+jYLABDNVfZMA1CVCmnQlp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function logJSON(r) { | |
const v = r.variables | |
return JSON.stringify({ | |
time: v.time_iso8601, | |
id: v.request_id, | |
latency: Number(v.request_time), | |
remote: r.remoteAddress, | |
request: { | |
http_version: r.httpVersion, | |
protocol: v.scheme, |
OlderNewer