Skip to content

Instantly share code, notes, and snippets.

View thinkhy's full-sized avatar
🐕
On vacation

thinkhy thinkhy

🐕
On vacation
View GitHub Profile
[2019-11-27T09:27:07.046872000Z TRACE mio::sys::unix::kqueue] registering; token=Token(18446744073709551615); interests=Readable
[2019-11-27T09:27:07.047121000Z TRACE mio::poll] registering with poller
[2019-11-27T09:27:07.047146000Z TRACE mio::sys::unix::kqueue] registering; token=Token(0); interests=Readable
[2019-11-27T09:27:07.075663000Z INFO http3_client] connecting to 127.0.0.1:4433 from 127.0.0.1:57689with scid 11f3609530bd0ba68ad74e4882855455005e13dd
[2019-11-27T09:27:07.075947000Z TRACE quiche::tls] 11f3609530bd0ba68ad74e4882855455005e13dd tls writemessage lvl=Initial len=512
[2019-11-27T09:27:07.076042000Z TRACE quiche] 11f3609530bd0ba68ad74e4882855455005e13dd tx pkt Initialversion=babababa dcid=688a56ec5134560e9813fb2f61e32c53 scid=11f3609530bd0ba68ad74e4882855455005e13dd len=1153 pn=0
[2019-11-27T09:27:07.076101000Z TRACE quiche] 11f3609530bd0ba68ad74e4882855455005e13dd tx frm CRYPTO off=0 len=512
[2019-11-27T09:27:07.076132000Z TRACE quiche] 11f3609530bd0ba68ad74e4882855455005e13dd tx frm PADDIN
@thinkhy
thinkhy / pystate_course.md
Last active May 24, 2017 04:40
PyStats_course
@thinkhy
thinkhy / sift.py
Created March 7, 2017 10:35
Using SIFT algo to automation Android APP
#!/usr/bin/python
# coding=utf-8
from __future__ import print_function
import cv2
import scipy as sp
import os
import subprocess
import time
globalStartupInfo = subprocess.STARTUPINFO()
@thinkhy
thinkhy / store_pcap.go
Last active April 12, 2022 02:14
Read pcap file generated by tcpdump and store ip packet info to InfluxDB
package main
/* file: readPcap.go
* brief: read pcap file with gopacket package
* date: 2017-02-20
* creator: thinkhy
* reference: http://www.devdungeon.com/content/packet-capture-injection-and-analysis-gopacket
* TODO:
* 2017-02-22 Extract URL from HTTP packet
*/
@thinkhy
thinkhy / ml_test_score.md
Last active February 12, 2017 06:25
[翻译]What's your ML Test Score? A rubric for ML production systems
@thinkhy
thinkhy / docker-compose-guide.md
Last active January 16, 2017 11:50
docker-compose的使用指南与常见问题总结

docker-compose的使用指南与常见问题总结

简介

compose是用来在docker中定义和运行复杂应用的常用工具,它通过在一个yml文件中定义多个容器的配置参数,只用一行命令就可以让容器环境运行就绪。 compose实际上就是以前的docker第三方工具fig,docke公司14年收购了fig团队之后并将其改名为docker-compose。

优势

@thinkhy
thinkhy / http-benchmark.md
Created January 6, 2017 11:45 — forked from denji/http-benchmark.md
HTTP(S) Benchmark Tools / Toolkit for testing/debugging HTTP(S) and restAPI (RESTful)

Tools

Located in alphabetical order (not prefer)

  • ab – slow and single threaded, written in C
  • apib – most of the features of ApacheBench (ab), also designed as a more modern replacement, written in C
  • baloo – Expressive end-to-end HTTP API testing made easy, written in Go (golang)
  • bombardier – Fast crossplatform HTTP benchmarking tool, written in Go (golang)
  • curl-loader – performance loading of various application services and traffic generation, written in C
  • fasthttploader – benchmark (kinda ab) with autoadjustment and charts based on fasthttp library, write in Go (golang)
@thinkhy
thinkhy / links.md
Created October 12, 2016 05:33 — forked from g0t4/links.md
Starting Point Files for Jenkins2 Getting Started course
@thinkhy
thinkhy / fork.go
Created October 12, 2016 04:49
fork.go
package main
import (
"syscall"
"os"
"time"
"fmt"
)
func daemon (nochdir, noclose int) int {
@thinkhy
thinkhy / replay.go
Created December 17, 2015 05:20
Replay MINIIST log
package main
import (
"fmt"
"time"
"log"
"os"
"os/exec"
"strings"
"bufio"