A running example of the code from:
- http://marcio.io/2015/07/handling-1-million-requests-per-minute-with-golang
- http://nesv.github.io/golang/2014/02/25/worker-queues-in-go.html
Small refactorings made to original code:
A running example of the code from:
Small refactorings made to original code:
A running example of the code from:
http://marcio.io/2015/07/handling-1-million-requests-per-minute-with-golang http://nesv.github.io/golang/2014/02/25/worker-queues-in-go.html
I made a few adjustments to the code:
Use non-exported private methods Remove global variables
| 3103: | |
| —– BEGIN LICENSE —– | |
| Michael Barnes | |
| Single User License | |
| EA7E-821385 | |
| 8A353C41 872A0D5C DF9B2950 AFF6F667 | |
| C458EA6D 8EA3C286 98D1D650 131A97AB | |
| AA919AEC EF20E143 B361B1E7 4C8B7F04 | |
| B085E65E 2F5F5360 8489D422 FB8FC1AA | |
| 93F6323C FD7F7544 3F39C318 D95E6480 |
| #!/bin/sh | |
| ## | |
| ## Usage: ./ovpn-writer.sh SERVER CA_CERT CLIENT_CERT CLIENT_KEY SHARED_SECRET > client.ovpn | |
| ## | |
| server=${1?"The server address is required"} | |
| cacert=${2?"The path to the ca certificate file is required"} | |
| client_cert=${3?"The path to the client certificate file is required"} | |
| client_key=${4?"The path to the client private key file is required"} |
| - (void)viewDidLoad | |
| { | |
| [super viewDidLoad]; | |
| // init VPN manager | |
| self.vpnManager = [NEVPNManager sharedManager]; | |
| // load config from perference | |
| [_vpnManager loadFromPreferencesWithCompletionHandler:^(NSError *error) { |
| #!/usr/bin/python | |
| # usage python unwxapkg.py filename | |
| import sys,os | |
| import struct | |
| class WxapkgFile: | |
| nameLen = 0 | |
| name = "" |
| var CryptoJS = require('crypto-js') | |
| var request = require('request-promise') | |
| /* | |
| * npm install crypto-js request-promise | |
| * node wx_t1t_hack.js | |
| */ | |
| // export function testEncription(msg, fullKey) { | |
| // var fullKey = fullKey.slice(0, 16) |
| //jweixin-1.0.0.js | |
| ! function(g, initFunc) { | |
| 'function' == typeof define && (define.amd || define.cmd) ? define(function() { | |
| return initFunc(g) | |
| }) : initFunc(g, true) | |
| }(this, | |
| function(glob, setGlobal) { | |
| function invokeCmd(cmd, param, callbackObj) { | |
| glob.WeixinJSBridge ? WeixinJSBridge.invoke(cmd, normParameter(param), function(res) { | |
| completeBridgeInteraction(cmd, res, callbackObj); |
| { | |
| "dataSources" : { | |
| "test1" : { | |
| "spec" : { | |
| "dataSchema" : { | |
| "dataSource" : "test1", | |
| "parser" : { | |
| "type" : "string", | |
| "parseSpec" : { | |
| "timestampSpec" : { "column" : "timestamp", "format" : "auto" }, |