shell 逐行处理字符串
#!/bin/bash # name col2 col3 score cat 123.txt |wh… 继续阅读 shell 逐行处理字符串
#!/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
func TestGetFileInfo(tt *testing.T) { info, err :=… 继续阅读 golang os.Stat get file info
func GetRealIP(r *http.Request) (string, error) { … 继续阅读 golang获取请求ip
export IP=123.123.123.123 export PORT=30002 curl -… 继续阅读 zadig quick install
编辑/etc/sysctl.conf追加: #表示同一用户同时可以添加的watch数目(watch一… 继续阅读 tail: inotify cannot be used, reverting to polling: Too many open files
centos挂webdav出现这个问题 df -h看不到挂载点 mount -l可以看到 能读写成功