一共 1614 本书,以下链接去重得到
参考链接:
一共 1614 本书,以下链接去重得到
参考链接:
//step1:初始一个counter, with help string | |
pushCounter = prometheus.NewCounter(prometheus.CounterOpts{ | |
Name: "repository_pushes", | |
Help: "Number of pushes to external repository.", | |
}) | |
//setp2: 注册容器 | |
err = prometheus.Register(pushCounter) | |
if err != nil { | |
fmt.Println("Push counter couldn't be registered AGAIN, no counting will happen:", err) |
package main | |
import ( | |
"flag" | |
"io" | |
"net" | |
"time" | |
log "github.com/sirupsen/logrus" | |
"golang.org/x/net/proxy" |
import ( | |
"context" | |
"crypto/tls" | |
"errors" | |
"fmt" | |
"github.com/abadojack/whatlanggo" | |
"io/ioutil" | |
"net/http" | |
"net/url" |
export KUBECONFIG=~/.kube/config.aws
import os | |
import errno | |
import time | |
""" | |
The linux pipe buffers are implemnted as circular buffers[1]. | |
A consequence of the circular buffer is that when it is full and a subsequent write is performed: | |
(a) then it starts overwriting the oldest data[2]. | |
(b) Alternatively, the routines that manage the buffer could prevent overwriting the data and return an error or raise an exception. |
package main
import (
"fmt"
"github.com/ThomasRooney/gexpect"
)
func main() {
# -*- coding: utf-8 -*- | |
import sys | |
reload(sys) | |
sys.setdefaultencoding('utf-8') | |
# unsplash 全站下载脚本 | |
# 请先安装 requests ,BeautifulSoup | |
# pip install requests beautifulsoup4 | |
# 运行 python unsplash.py | |
# 输入最小页数和最大页数 |