发现centos7出现
Failed to execute operation: Too many levels of symbolic links
”`text root@influxdb system \( systemctl enable kapacitor Failed to execute operation: Too many levels of symbolic links root@influxdb system \) ll /etc/systemd/system/kapacitor.service lrwxrwxrwx 1 root root 41 Oc…
# set value
child_ctx = context.WithValue(parent_ctx, key, value)
# get value
value = ctx.Value(key)
# key and value are interface
most of code copy from official go/src/net/http/transport_test.go
”`golang package main
import (
"bytes"
"context"
"fmt"
"io/ioutil"
"log"
"net/http"
"net/http/httptrace"
"sync"
"time"
)
func main() {
req, err := http.NewRequest("HEAD", "https://www.google.com", nil)
if err != nil {...
sudo -u opscode-pgsql /opt/opscode/embedded/bin/psql opscode_chef
select username,hashed_password,salt,email from users;
#copy your known username's password and salt
update users set hashed_password = 'xxx',salt = 'xxx' where username = 'xxx';
Did some analysis on ocsp project, this is the knowledge that you might want to know.
”`text dig vassg142.ocsp.omniroot.com @8.8.8.8
; <<>> DiG 9.8.3-P1 <<>> vassg142.ocsp…
wget -N https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-64bit-static.tar.xz
tar xf ffmpeg-release-64bit-static.tar.xz
mv ffmpeg-4.0.1-64bit-static/ffmpeg /usr/local/bin/
”`bash
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
cd ~ yum install -y…
golang 1.5 在常用的net/http包里新增了Request.Cancel, 导致原来可以直接把request给json化的方式出现了json: unsupported type: <-chan struct {}. 在debug的时候看不到请求了.
解决方式也十分坑…
”`go type Req struc…