跳转到内容

SRE笔记

  • 密码
    • 短链
  • 服务器
  • 关于

5月 2022每月档案

判断gorm查询结果数据是否存在

func IsNewHot(hot string) bool { var Record BaiduH… 继续阅读 判断gorm查询结果数据是否存在

  • 发表于: 2022-05-30 2022-05-30
  • 作者: bfyt
  • 分类: SRE
  • 标签: gorm, https
  • 发表评论: 判断gorm查询结果数据是否存在

golang去掉字符串中的空格

func TrimSpace(str string) string { var strSlice [… 继续阅读 golang去掉字符串中的空格

  • 发表于: 2022-05-30 2022-05-30
  • 作者: bfyt
  • 分类: SRE
  • 标签: go, golang, https
  • 发表评论: golang去掉字符串中的空格

kubernetes部署polardbx v1.2.1

https://polardbx.com/document namespace: kubectl c… 继续阅读 kubernetes部署polardbx v1.2.1

  • 发表于: 2022-05-26 2022-05-26
  • 作者: bfyt
  • 分类: SRE
  • 标签: aliyun, bash, https, kubernetes
  • 发表评论: kubernetes部署polardbx v1.2.1

install helm-v3.9.0 via binary

wget https://get.helm.sh/helm-v3.9.0-linux-amd64.t… 继续阅读 install helm-v3.9.0 via binary

  • 发表于: 2022-05-25 2022-05-25
  • 作者: bfyt
  • 分类: SRE
  • 标签: bash, helm, https, Linux, tar
  • 发表评论: install helm-v3.9.0 via binary

golang build without options output

GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -ld… 继续阅读 golang build without options output

  • 发表于: 2022-05-24 2022-05-24
  • 作者: bfyt
  • 分类: SRE
  • 标签: bash, go, golang, Linux
  • 发表评论: golang build without options output

cgo: C compiler “gcc” not found: exec: “gcc”: executable file not found in %PATH%

https://sourceforge.net/projects/mingw-w64/files/m… 继续阅读 cgo: C compiler “gcc” not found: exec: “gcc”: executable file not found in %PATH%

  • 发表于: 2022-05-24 2022-05-24
  • 作者: bfyt
  • 分类: SRE
  • 标签: bash, gcc, https, mingw
  • 发表评论: cgo: C compiler “gcc” not found: exec: “gcc”: executable file not found in %PATH%

privoxy on aliyun kubernetes

Deployment privoxy apiVersion: apps/v1 kind: Deplo… 继续阅读 privoxy on aliyun kubernetes

  • 发表于: 2022-05-24 2022-05-24
  • 作者: bfyt
  • 分类: SRE
  • 标签: aliyun, kubernetes, privoxy, yaml
  • 发表评论: privoxy on aliyun kubernetes

FFmpeg常用命令

##查看 FFmpeg 支持的容器 ffmpeg -formats ##查看 FFmpeg 支持的编… 继续阅读 FFmpeg常用命令

  • 发表于: 2022-05-23 2022-05-23
  • 作者: bfyt
  • 分类: SRE
  • 标签: bash, ffmpeg
  • 发表评论: FFmpeg常用命令

golang any转换为其他类型

func SUM(nums …any) any { switch nums[0].(type) … 继续阅读 golang any转换为其他类型

  • 发表于: 2022-05-23 2022-05-23
  • 作者: bfyt
  • 分类: SRE
  • 标签: go, golang
  • 发表评论: golang any转换为其他类型

monitor network use microsoft ethr

go install github.com/microsoft/ethr@latest ethr -… 继续阅读 monitor network use microsoft ethr

  • 发表于: 2022-05-23 2022-05-23
  • 作者: bfyt
  • 分类: SRE
  • 标签: bash
  • 发表评论: monitor network use microsoft ethr

deepcopy for golang

func DeepCopy(dst, src any) error { var buf bytes.… 继续阅读 deepcopy for golang

  • 发表于: 2022-05-23 2022-05-23
  • 作者: bfyt
  • 分类: SRE
  • 标签: go, golang
  • 发表评论: deepcopy for golang

vue.config.js配置跨域

devServer: { host: '0.0.0.0', port: port… 继续阅读 vue.config.js配置跨域

  • 发表于: 2022-05-23 2022-06-06
  • 作者: bfyt
  • 分类: SRE
  • 标签: http, https, js, proxy, vue
  • 发表评论: vue.config.js配置跨域

heic批量转jpg工具

https://liuziangexit.com/HEIF-Utility/EN/

  • 发表于: 2022-05-19 2022-05-19
  • 作者: bfyt
  • 分类: SRE
  • 标签: https
  • 发表评论: heic批量转jpg工具

fatal: unable to access ‘https://github.com/xxx.git/’: Peer’s Certificate has expired.

use git git clone https://github.com/xxx.git

  • 发表于: 2022-05-19 2022-05-19
  • 作者: bfyt
  • 分类: SRE
  • 标签: bash, git, https
  • 发表评论: fatal: unable to access ‘https://github.com/xxx.git/’: Peer’s Certificate has expired.

nginx识别带下划线的header

默认不识别,需要在nginx.conf打开 underscores_in_headers on; #… 继续阅读 nginx识别带下划线的header

  • 发表于: 2022-05-19 2022-05-19
  • 作者: bfyt
  • 分类: SRE
  • 标签: nginx
  • 发表评论: nginx识别带下划线的header

nginx return json

location / { default_type application/json; return… 继续阅读 nginx return json

  • 发表于: 2022-05-19 2022-05-19
  • 作者: bfyt
  • 分类: SRE
  • 标签: code, https, json, nginx
  • 发表评论: nginx return json

docker run ubuntu desktop with xrdp

# https://hub.docker.com/r/danielguerra/ubuntu-xrd… 继续阅读 docker run ubuntu desktop with xrdp

  • 发表于: 2022-05-19 2022-05-19
  • 作者: bfyt
  • 分类: SRE
  • 标签: bash, Docker, https, ubuntu
  • 发表评论: docker run ubuntu desktop with xrdp

idea 修改 第三方 jar包

直接在自己包并排创建一个目标jar的同名包名 复制目标class到此处修改

  • 发表于: 2022-05-17 2022-05-17
  • 作者: bfyt
  • 分类: SRE
  • 标签: idea
  • 发表评论: idea 修改 第三方 jar包

若依 timeout 10000ms exceeded

全局配置request.js: // 创建axios实例 const service = axios… 继续阅读 若依 timeout 10000ms exceeded

  • 发表于: 2022-05-17 2022-05-17
  • 作者: bfyt
  • 分类: SRE
  • 标签: js
  • 发表评论: 若依 timeout 10000ms exceeded

rsync断点续传 网络闪断

#!/bin/bash PASSWORD='/home/nova/Desktop/rsyn… 继续阅读 rsync断点续传 网络闪断

  • 发表于: 2022-05-17 2022-05-17
  • 作者: qqlv
  • 分类: SRE
  • 标签: bash
  • 发表评论: rsync断点续传 网络闪断

分页

页码: 1 页码: 2 页码: 3 下一页

搜索

搜索:

近期评论

  • test发表在《gin不转义html标签》
  • 路过发表在《msg=”getting status of runtime: rpc error: code = Unimplemented desc = unknown service runtime.v1alpha2.RuntimeService”》
  • 禁止chrome浏览器http自动转成https – SRE笔记发表在《nginx安全配置 XSS攻击 Header头设置》
  • springboot lifecycle timeout-per-shutdown-phase优雅退出 – SRE笔记发表在《terminationGracePeriodSeconds优雅终止pod时间》
  • kubernetes Deployment快速部署rocketmq 4.9.2 dledger集群 3-broker – SRE笔记发表在《kubernetes Deployment快速部署rocketmq 4.9.2 dledger集群 1-镜像》

标签

aws (15) azure (12) Blockchain (28) centos (28) Docker (105) elasticsearch (26) eth (34) fil (39) go (129) golang (120) Grafana (13) hpc (15) http (299) ingress (14) java (75) jenkins (13) JVM (20) kubernetes (309) Linux (439) lotus (30) mongoDB (41) MySQL (184) nginx (112) Oracle (13) php (25) python (148) redis (34) s3 (75) shell (20) springboot (32) tomcat (15) ubuntu (31) vue (18) windows (42) wordpress (14) zabbix (37) zookeeper (13) 夏小胖 (31) 安全 (55) 工具 (451) 折腾 (24) 推荐 (15) 硬件 (61) 网络 (246) 资源 (49)

归档

  • 2022年12月
  • 2022年11月
  • 2022年10月
  • 2022年9月
  • 2022年8月
  • 2022年7月
  • 2022年6月
  • 2022年5月
  • 2022年4月
  • 2022年3月
  • 2022年2月
  • 2022年1月
  • 2021年12月
  • 2021年11月
  • 2021年10月
  • 2021年9月
  • 2021年8月
  • 2021年7月
  • 2021年6月
  • 2021年5月
  • 2021年4月
  • 2021年3月
  • 2021年2月
  • 2021年1月
  • 2020年12月
  • 2020年11月
  • 2020年10月
  • 2020年9月
  • 2020年8月
  • 2020年7月
  • 2020年6月
  • 2020年5月
  • 2020年4月
  • 2020年3月
  • 2020年2月
  • 2020年1月
  • 2019年12月
  • 2019年11月
  • 2019年10月
  • 2019年9月
  • 2019年8月
  • 2019年7月
  • 2019年6月
  • 2019年5月
  • 2019年4月
  • 2019年3月
  • 2019年2月
  • 2019年1月
  • 2018年12月
  • 2018年11月
  • 2018年10月
  • 2018年9月
  • 2018年8月
  • 2018年7月
  • 2018年6月
  • 2018年5月
  • 2018年4月
  • 2018年3月
  • 2018年2月
  • 2018年1月
  • 2017年12月
  • 2017年11月
  • 2017年10月
  • 2017年8月
  • 2017年7月
  • 2017年6月
  • 2017年5月
  • 2017年4月
  • 2017年3月
  • 2017年2月
  • 2017年1月
  • 2016年12月
  • 2016年11月
  • 2016年10月
  • 2016年9月
  • 2016年8月
  • 2016年7月
  • 2016年6月
  • 2016年5月
  • 2016年4月
  • 2016年3月
  • 2016年2月
  • 2016年1月
  • 2015年12月
  • 2015年10月
  • 2015年9月
  • 2015年8月
  • 2015年7月
  • 2015年6月
  • 2015年5月
  • 2015年4月
  • 2015年3月
  • 2015年2月
  • 2015年1月
  • 2014年12月
  • 2014年11月
  • 2014年10月
  • 2014年9月
  • 2014年8月
  • 2014年7月
  • 2014年6月
  • 2014年5月
  • 2014年2月