Skip to content

Instantly share code, notes, and snippets.

View zhuqling's full-sized avatar

zhuqling zhuqling

  • Guangzhou
View GitHub Profile
@zhuqling
zhuqling / druid.io-summary.md
Last active October 23, 2018 01:34
Druid.io 总结

Druid.io 总结

注意点

  • 基于文件batch ingestion支持压缩文件.gz格式
  • intervals 时间区间 x/y 前闭后开 x <= n < y
  • granularity设为week时,按周一~周日汇总,符合中国标准
  • 跳过中间无数据的时间点,两头没有数据的不会自动添加时间点
//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);
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)
@zhuqling
zhuqling / unwxapkg.py
Created January 2, 2018 06:38 — forked from thedreamwork/unwxapkg.py
unpack wxapkg
#!/usr/bin/python
# usage python unwxapkg.py filename
import sys,os
import struct
class WxapkgFile:
nameLen = 0
name = ""
@zhuqling
zhuqling / IPSecDemo.m
Created May 26, 2016 07:54 — forked from duoduoyi/IPSecDemo.m
Start IPSec programmatically in iOS 8
- (void)viewDidLoad
{
[super viewDidLoad];
// init VPN manager
self.vpnManager = [NEVPNManager sharedManager];
// load config from perference
[_vpnManager loadFromPreferencesWithCompletionHandler:^(NSError *error) {
@zhuqling
zhuqling / ovpn-writer.sh
Created May 26, 2016 07:38 — forked from renatolfc/ovpn-writer.sh
Script to generate an OpenVPN client configuration file in the unified format
#!/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"}
@zhuqling
zhuqling / ST3: 3083 and 3103
Created March 22, 2016 06:29
ST3: 3083 and 3103
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
@zhuqling
zhuqling / a_golang_job_queue.md
Created March 7, 2016 08:19 — forked from dryaf/a_golang_job_queue.md
Job queues in Golang
@zhuqling
zhuqling / golang_job_queue.md
Created March 7, 2016 08:19 — forked from harlow/golang_job_queue.md
Job queues in Golang
@zhuqling
zhuqling / tn-20160122.md
Created January 22, 2016 09:27
技术分享 - 2016-1-22

技术分享 - 2016-1-22