View https-cutoms-dns-lookup.js
'use strict';
var https = require('https');
var http = require('http');
var urllib = require('urllib');
var httpsAgent = new https.Agent({ keepAlive: true });
var agent = new http.Agent({ keepAlive: true });
// cnodejs.org => 123.59.77.142
var url = 'https://123.59.77.142';
View enclose-error.log
This file has been truncated, but you can view the full file.
npm_config_registry=https://registry.npm.taobao.org enclose-io-compiler node-v6.8.0 npminstall 2.7.0 npminstall
$ cd /var/folders/5h/x4h0t8rs6w300g_wnzbx47km0000gn/T/enclose-io-compiler/npminstall-2.7.0
$ npm install
npm WARN npminstall-2.7.0 No description
npm WARN npminstall-2.7.0 No repository field.
npm WARN npminstall-2.7.0 No license field.
$ cd /private/tmp/npminstall
Detected binaries: {"npminstall"=>"bin/install.js", "npmuninstall"=>"bin/uninstall.js", "npmupdate"=>"bin/update.js"}
Using npminstall at bin/install.js
View https-cutoms-dns-lookup.js
'use strict';
const https = require('https');
const dns = require('dns');
var req = https.request({
protocol: 'https:',
host: 'r.cnpmjs.org',
lookup: function foo(host, dnsopts, callback) {
setTimeout(function() {
View get-header.js
'use strict';
const Benchmark = require('benchmark');
const benchmarks = require('beautify-benchmark');
const suite = new Benchmark.Suite();
suite
.add('get header all lower case', function() {
const res = {};
res['x-frame-options1'] = 'X-Frame-Options1 value';
View set-header.js
'use strict';
const OutgoingMessage = require('http').OutgoingMessage;
'use strict';
const Benchmark = require('benchmark');
const benchmarks = require('beautify-benchmark');
const suite = new Benchmark.Suite();
View set-header.js
'use strict';
const OutgoingMessage = require('http').OutgoingMessage;
'use strict';
const Benchmark = require('benchmark');
const benchmarks = require('beautify-benchmark');
const suite = new Benchmark.Suite();
View map-benchmark.js
/**
* Copyright(c) node-modules and other contributors.
* MIT Licensed
*
* Authors:
* fengmk2 <fengmk2@gmail.com> (http://fengmk2.com)
*/
'use strict';
View optimized-test.js
'use strict';
// http://dev.zm1v1.com/2015/08/19/javascript-optimization-killers/?spm=0.0.0.0.Rxyzi2
function testFn(a, b) {
const c = (a || 0) + (b || 1);
return c;
}
function printStatus(fn) {
View README.md

This script enables you stop and start Symantec Endpoint Protection on OS X

Installation

sudo curl https://gist.githubusercontent.com/steve-jansen/61a189b6ab961a517f68/raw/sep -o /usr/local/bin/sep
sudo chmod 755 /usr/local/bin/sep
sudo chown root:staff /usr/local/bin/sep
View tcp.txt
# sysctl -a|grep tcp
net.ipv4.tcp_abort_on_overflow = 0
net.ipv4.tcp_adv_win_scale = 1
net.ipv4.tcp_allowed_congestion_control = cubic reno
net.ipv4.tcp_app_win = 31
net.ipv4.tcp_available_congestion_control = cubic reno
net.ipv4.tcp_base_mss = 512
net.ipv4.tcp_challenge_ack_limit = 100
net.ipv4.tcp_congestion_control = cubic
net.ipv4.tcp_dsack = 1