Skip to content

Instantly share code, notes, and snippets.

import os
import sys
import base64
import requests
import json
# config host address
HOST = "http://localhost:10000"
def main():
#!/bin/python
import qiniu
import requests
AK='xxx'
SK='xxx'
API_HOST = 'argus.atlab.ai'
package main
import (
"fmt"
)
type Inter interface {
Func(string)
}
@quxiao
quxiao / mmsysmond.ini
Last active November 27, 2015 02:31
mmsysmond.ini
[server]
;host变量设置为内网可以访问的跳板机域名或者IP
host = 127.0.0.1
port = 13301
[reg_server]
;host变量设置为内网可以访问的跳板机域名或者IP
host = 127.0.0.1
port = 13300
@quxiao
quxiao / haproxy.cfg
Last active November 27, 2015 02:33
haproxy.cfg
global
log 127.0.0.1 local0
# log 127.0.0.1 local1
maxconn 40000
# ulimit-n 8000
uid 0
gid 0
daemon
pidfile /etc/haproxy/haproxy.pid
int count(const std::vector<std::string>& str_vec, const size_t threshold)
{
int size = 0;
std::vector<std::string>::const_iterator it;
for (it = str_vec.begin(); it != str_vec.end(); ++ it) {
if (it->length() < threshold) {
++ size;
}
}
return size;