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
var log = (function () { | |
"use strict"; | |
var format = require('util').format; | |
// Customize levels, but do not name any level: "log" "getLevel" "setLevel" | |
var levels = { ERROR: 10, WARN: 20, INFO: 30, DEBUG: 40, TRACE: 50 }; | |
var currentLevel = 'INFO'; | |
function doGetLevel() { return currentLevel; } | |
function doSetLevel(level) { |
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
var secretKey = 'foo'; | |
setInterval(function () { | |
secretKey = secretKey + 'bar'; | |
console.log('My secret key is ' + secretKey); | |
}, 1000); |
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
#!/usr/bin/env bash | |
# Based on https://github.com/needforspeed/Nodejs-ARM-builder/blob/master/cross-compiler.sh | |
# but updated to use the cross-compiling tools that Raspberry Pi recommends for the kernel. | |
# Only works for ARMv6. | |
# AJJ: Released into the public domain. | |
set -e |
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 () { | |
var oldSetTimeout = GLOBAL.setTimeout; | |
GLOBAL.setTimeout = function () { | |
var e = new Error('Just for stack trace'); | |
console.log('New timeout registered from %s', e.stack); | |
return oldSetTimeout.apply(this, arguments); | |
}; | |
var oldSetInterval = GLOBAL.setInterval; | |
GLOBAL.setInterval = function () { | |
var e = new Error('Just for stack trace'); |
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
var fs = require('fs'); | |
var reqSize = process.env.REQSIZE || ('' + 1024*1024*1024); | |
reqSize = parseInt(reqSize); | |
var genericBlob = (new Array(10240 + 1)).join('0123456789'); | |
//Client part. | |
function runClient() { |
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
var https = require('https'); | |
var cluster = require('cluster'); | |
var fs = require('fs'); | |
var url = require('url'); | |
var core2Dir = process.env.CORE2DIR || '/build/cayman/andrew/lrs_release/core2'; | |
var port = process.env.PORT || 443; | |
var numCPUs = process.env.NUMCPUS || ('' + (require('os').cpus().length - 1)); | |
numCPUs = parseInt(numCPUs); | |
var reqSize = process.env.REQSIZE || ('' + 1024*1024*1024); |
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
#include <stdio.h> | |
#include <strings.h> | |
#include <assert.h> | |
#include <unistd.h> | |
#include <errno.h> | |
#include <fcntl.h> | |
#include <sys/types.h> | |
#include <sys/event.h> | |
#include <sys/time.h> | |
#include <sys/socket.h> |
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
# Portions Copyright 2016 The Kubernetes Authors All rights reserved. | |
# Portions Copyright 2018 AspenMesh | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software |
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
apiVersion: config.istio.io/v1alpha2 | |
kind: EgressRule | |
metadata: | |
name: aws-dynamo-us-west-2-egress | |
namespace: default | |
spec: | |
destination: | |
service: dynamodb.us-west-2.amazonaws.com | |
ports: | |
- port: 443 |
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
outbound|9080||details.default.svc.cluster.local::default_priority::max_connections::1024 | |
outbound|9080||details.default.svc.cluster.local::default_priority::max_pending_requests::1024 | |
outbound|9080||details.default.svc.cluster.local::default_priority::max_requests::1024 | |
outbound|9080||details.default.svc.cluster.local::default_priority::max_retries::3 | |
outbound|9080||details.default.svc.cluster.local::high_priority::max_connections::1024 | |
outbound|9080||details.default.svc.cluster.local::high_priority::max_pending_requests::1024 | |
outbound|9080||details.default.svc.cluster.local::high_priority::max_requests::1024 | |
outbound|9080||details.default.svc.cluster.local::high_priority::max_retries::3 | |
outbound|9080||details.default.svc.cluster.local::added_via_api::true |
OlderNewer