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
set autoindent | |
set hlsearch | |
set background=dark | |
set backspace=indent,eol,start | |
set cin | |
set encoding=utf-8 | |
let &termencoding=&encoding | |
" 设置文字编码自动识别 | |
set fileencodings=ucs-bom,utf-8,gbk,big5 | |
set ambiwidth=double |
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
set autoindent | |
set hlsearch | |
set background=dark | |
set backspace=indent,eol,start | |
set cin | |
set encoding=utf-8 | |
let &termencoding=&encoding | |
" 设置文字编码自动识别 | |
set fileencodings=ucs-bom,utf-8,gbk,big5 | |
set ambiwidth=double |
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
# Generated by confd | |
include "bird_aggr.cfg"; | |
include "bird_ipam.cfg"; | |
router id {{getenv "IP"}}; | |
{{define "LOGGING"}} | |
{{$node_logging_key := printf "/host/%s/loglevel" (getenv "HOSTNAME")}}{{if exists $node_logging_key}}{{$logging := getv $node_logging_key}} | |
{{if eq $logging "debug"}} debug all;{{else if ne $logging "none"}} debug { states };{{end}} | |
{{else if exists "/global/loglevel"}}{{$logging := getv "/global/loglevel"}} |
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
# coding: utf-8 | |
import gevent | |
from gevent import monkey; monkey.patch_all() | |
import time | |
from requests import Session | |
ans = { | |
u'92和160哪个数大?(请填数值)':'160', \ | |
u'55和200哪个数大?(请填数值)':'200', \ | |
u'700和222哪个数大?(请填数值)':'700', \ |
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
worker_processes {{worker_processes}}; | |
error_log stderr info; | |
events { | |
worker_connections {{worker_connections}}; | |
} | |
daemon off; |
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
local redis_c = require "resty.redis" | |
local ok, new_tab = pcall(require, "table.new") | |
if not ok or type(new_tab) ~= "function" then | |
new_tab = function (narr, nrec) return {} end | |
end | |
local _M = new_tab(0, 155) |
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 <sys/stat.h> | |
#include <sys/types.h> | |
#include <sys/socket.h> | |
#include <sys/ioctl.h> | |
#include <net/if.h> | |
#include <netinet/in.h> | |
#include <netinet/ip.h> | |
#include <string.h> | |
#include <unistd.h> | |
#include <stdlib.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
package main | |
import ( | |
"fmt" | |
"time" | |
"github.com/open-falcon/agent/g" | |
"github.com/open-falcon/common/model" | |
) |
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
package main | |
import ( | |
"fmt" | |
"net" | |
"os" | |
"runtime" | |
"github.com/docker/libcontainer/netlink" | |
) |
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
package main | |
import ( | |
"fmt" | |
"net" | |
"os" | |
"syscall" | |
"github.com/docker/libcontainer/netlink" | |
"github.com/docker/libcontainer/system" |
NewerOlder