Skip to content

Instantly share code, notes, and snippets.

View detailyang's full-sized avatar
💭
copy magic from Github

detailyang detailyang

💭
copy magic from Github
View GitHub Profile
Don’t worry, be happy.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@detailyang
detailyang / server.go
Created March 18, 2020 11:26
go http2 orphan handler
package main
import (
"crypto/tls"
"fmt"
"net"
"net/http"
"time"
"golang.org/x/net/http2"
@detailyang
detailyang / undefined
Last active October 29, 2020 14:30
📊 Weekly development breakdown
💪 Opened PR #115 in suharev7/clickhouse-rs
🗣 Commented on #114 in suharev7/clickhouse-rs
💪 Opened PR #15407 in ClickHouse/ClickHouse
🗣 Commented on #11 in detailyang/pre-commit-shell
🎉 Merged PR #11 in detailyang/pre-commit-shell
@detailyang
detailyang / gist:9b71e4a16a244d7475d9a0e7e833231b
Last active June 6, 2020 00:20
📊 Weekly development breakdown
We couldn’t find that file to show.
@detailyang
detailyang / main.go
Last active June 24, 2019 05:45
tcp keepalive ETIMEDOUT
package main
import (
"bytes"
"fmt"
"io"
"net"
"os"
"os/exec"
"syscall"
@detailyang
detailyang / cilium.md
Last active January 7, 2019 07:48
Getting Started Using Minikube
  1. uname -a
╭─detailyang at detailyangdeMacBook-Pro in /Users/detailyang
╰─λ uname -a                                                                                                                                                               0 < 15:32:41
Darwin detailyangdeMacBook-Pro.local 17.7.0 Darwin Kernel Version 17.7.0: Thu Jun 21 22:53:14 PDT 2018; root:xnu-4570.71.2~1/RELEASE_X86_64 x86_64
  1. minikube start --network-plugin=cni --extra-config=kubelet.network-plugin=cni
╭─detailyang at detailyangdeMacBook-Pro in /Users/detailyang
@detailyang
detailyang / json
Created November 14, 2018 15:33
mosn test config
{
"servers": [
{
"default_log_path": "stdout",
"listeners": [
{
"name": "serverListener",
"address": "127.0.0.1:2046",
"bind_port": true,
"log_path": "stdout",
@detailyang
detailyang / findtypeassert.go
Created September 11, 2018 13:19
check type assertion
package main
import (
"flag"
"fmt"
"go/ast"
"go/parser"
"go/token"
"os"
"path/filepath"
@detailyang
detailyang / finderr.go
Last active September 10, 2018 08:35
copernicus find error
package main
import (
"flag"
"fmt"
"go/ast"
"go/parser"
"go/token"
"os"
"path/filepath"