python string prefix
def stringUnicode(): s1 = "去除首尾空格" s2 = … 继续阅读 python string prefix
def stringUnicode(): s1 = "去除首尾空格" s2 = … 继续阅读 python string prefix
def fileLine(file): with open(file, 'r')… 继续阅读 python strip()去除首尾空格
docker run docker run -d -p 9272:9272 -e VSPHERE_U… 继续阅读 docker run vmware_exporter
#!/bin/bash ETCDCTL_PATH='/usr/local/bin/etcd… 继续阅读 shell backup etcd
#!/bin/bash # name col2 col3 score cat 123.txt |wh… 继续阅读 shell 逐行处理字符串
#!/usr/bin/python3 import json import datetime imp… 继续阅读 python调用kubernetes api server
import ( "fmt" "os/user" "… 继续阅读 golang获取运行的当前用户信息
func fabonacci(ch chan int64, done chan struct{}) … 继续阅读 golang fabonacci use select channel
type User struct { Name string `json:"name&qu… 继续阅读 golang json mardshal忽略字段和默认零值
func IpContains(cidr string, ip string) bool { _, … 继续阅读 golang判断ip是否在cidr
show status; show session status; show global stat… 继续阅读 mysql服务器状态信息
apiVersion: batch/v1 kind: CronJob metadata: annot… 继续阅读 kubernetes cronjob备份mysql
func TestRandomFile(tt *testing.T) { dirname := &q… 继续阅读 golang get dir info
err: panic: runtime error: invalid memory address … 继续阅读 golang http.ResponseWriter panic
// MapKey 知道值 拿第一个key func MapKey(m map[string]str… 继续阅读 golang get key from value
func RandMapKey(m map[string]string) string { mapK… 继续阅读 golang map get random value
func HTTPGet(url string) []byte { method := "… 继续阅读 golang http get
func CMDBool(name string, arg []string) bool { cmd… 继续阅读 golang exec Command
func handleTencent(w http.ResponseWriter, r *http.… 继续阅读 golang http handle ignore /favicon.ico