This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package bench | |
| import ( | |
| "encoding/hex" | |
| "encoding/json" | |
| ) | |
| type SpanID [8]byte | |
| func (s *SpanID) UnmarshalJSON(data []byte) error { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| func (o *OTEL) DecodeSIMD(data []byte, pj *simdjson.ParsedJson) (*simdjson.ParsedJson, error) { | |
| pj, err := simdjson.Parse(data, pj, simdjson.WithCopyStrings(false)) | |
| if err != nil { | |
| return nil, err | |
| } | |
| var decodeErr error | |
| if err := pj.ForEach(func(i simdjson.Iter) error { | |
| if i.Type() != simdjson.TypeObject { | |
| return errors.Errorf("expected object, got %v", i.Type()) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "context" | |
| "os" | |
| "path/filepath" | |
| "time" | |
| "github.com/dustin/go-humanize" | |
| "github.com/go-faster/errors" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Command: /src/faster/oteldb/internal/ytlocal/.venv/bin/yt_local start --proxy-port 8080 --master-config /tmp/ytlocal-python-3075677362/resolver.yson --node-config /tmp/ytlocal-python-3075677362/resolver.yson --scheduler-config /tmp/ytlocal-python-3075677362/resolver.yson --controller-agent-config /tmp/ytlocal-python-3075677362/resolver.yson --rpc-proxy-config /tmp/ytlocal-python-3075677362/resolver.yson --local-cypress-dir /tmp/ytlocal-python-3075677362/resolver.yson --fqdn localhost --ytserver-all-path /usr/local/bin/ytserver-all --sync | |
| 2023-07-24 12:12:27,758 INFO Start preparing cluster instance as follows: | |
| 2023-07-24 12:12:27,758 INFO masters 1 (0 nonvoting) (version: 23.2.0-local-os~16ff06a256729d98+distbuild) | |
| 2023-07-24 12:12:27,758 INFO nodes 1 (0 chaos) (version: 23.2.0-local-os~16ff06a256729d98+distbuild) | |
| 2023-07-24 12:12:27,758 INFO schedulers 1 (version: 23.2.0-local-os~16ff06a256729d98+distbuild) | |
| 2023-07-24 12:12:27,758 INFO controlle |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {"level":"info","ts":1679740371.865786,"logger":"client.conn.mtproto.rpc","caller":"rpc/engine.go:42","msg":"Initialized","v":"v0.79.0","conn_id":0,"dc_id":2,"retry_interval":5,"max_retries":5} | |
| {"level":"info","ts":1679740371.8658545,"logger":"client","caller":"telegram/connect.go:114","msg":"Starting","v":"v0.79.0"} | |
| {"level":"debug","ts":1679740371.865991,"logger":"client.conn.mtproto","caller":"mtproto/conn.go:198","msg":"Run: start","v":"v0.79.0","conn_id":0,"dc_id":2} | |
| {"level":"info","ts":1679740371.9107969,"logger":"client.conn.mtproto","caller":"mtproto/connect.go:32","msg":"Generating new auth key","v":"v0.79.0","conn_id":0,"dc_id":2} | |
| {"level":"debug","ts":1679740371.9108443,"logger":"client.conn.mtproto","caller":"mtproto/connect.go:65","msg":"Initializing new key exchange","v":"v0.79.0","conn_id":0,"dc_id":2,"timeout":60,"context_deadline":1679740406.8660336} | |
| {"level":"debug","ts":1679740371.9108987,"logger":"client.conn.mtproto.exchange","caller":"exchange/client_flow.go:26","msg":"Sending ReqPqMult |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| VERSION=$1 | |
| grep -rl cilium/tetragon --exclude-dir=vendor --exclude-dir=.git --exclude vendor.sh | xargs sed -i 's|cilium/tetragon|go-faster/tetragon|g' | |
| sed -i 's|quay.io|ghcr.io|g' install/kubernetes/values.yaml | |
| sed -i 's|-t "go-faster|-t "ghcr.io/go-faster|g' Makefile | |
| sed -i 's|push go-faster|push ghcr.io/go-faster|g' Makefile | |
| grep -rl v0.0.0-00010101000000-000000000000 --exclude-dir=vendor --exclude-dir=.git --exclude vendor.sh | xargs sed -i "s|v0.0.0-00010101000000-000000000000|$1|g" | |
| sed -i "s|0.8.3|${VERSION:1}|g" install/kubernetes/Chart.yaml | |
| sed -i "s|v0.8.3|$1|g" install/kubernetes/values.yaml |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "$schema": "http://json-schema.org/draft-04/schema#", | |
| "$ref": "#/definitions/Entry", | |
| "title": "OpenTelemetry Log Data Model", | |
| "description": "https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/logs/data-model.md", | |
| "definitions": { | |
| "Map": { | |
| "patternProperties": { | |
| ".*": { | |
| "$schema": "http://json-schema.org/draft-04/schema#", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "flag" | |
| "fmt" | |
| "log" | |
| "os" | |
| "sort" | |
| "strconv" | |
| "strings" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Forward TCP 3389 on enp4s0 to 192.168.122.119 | |
| iptables -A PREROUTING -t nat -i enp4s0 -p tcp --dport 3389 -j DNAT --to 192.168.122.119:3389 | |
| iptables -I FORWARD 1 -d 192.168.122.119/32 -p tcp -m tcp --dport 3389 -j ACCEPT |
NewerOlder