stateDiagram-v2
[*] --> new : launch_new_connection()
new --> idle : login/auth completed
new --> active : restored from takeover (already linked to client)
idle --> active : assigned to waiting client
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
| // Usage: go run main.go MYSQL_HOST[:PORT] | |
| // | |
| // For example: | |
| // $ go run main.go 127.0.0.1 | |
| // Address: 127.0.0.1: | |
| // | |
| // Packet: | |
| // sequence: 0 | |
| // payload_length: 74 | |
| // |
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
| test.crt | |
| test.key |
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
| module gist.github.com/spraints/42b3ec473655ce665f8c215bf6dcfe5e | |
| go 1.22.2 | |
| require ( | |
| github.com/vishvananda/netlink v1.3.0 // indirect | |
| github.com/vishvananda/netns v0.0.4 // indirect | |
| golang.org/x/sys v0.10.0 // indirect | |
| ) |
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
| #/ Usage: ruby run.rb [--resume] runlist.txt outdir | |
| #/ | |
| #/ --resume picks up after a gracefully shut down previous attempt. | |
| #/ | |
| #/ outdir must not exist, but be a path where we can create a directory. | |
| #/ | |
| #/ runlist.txt must be a list of the inputs we're going to process, once per line. | |
| require "fileutils" |
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
| sigset-die | |
| sigset-live |
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
| #/ Usage: ruby recent-growth.rb [OPTIONS] | |
| #/ --git-dir <git_dir> | |
| #/ --since <date> | |
| #/ --until <date> | |
| #/ --max-count <count> | |
| #/ --per tree|extension | |
| #/ --list-all (in the summary, show all trees / extensions, not just the top 10) | |
| #/ --all | --branches | --tags | --remotes | <commit> | |
| #/ | |
| #/ Example: |
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
| /* | |
| goos: darwin | |
| goarch: amd64 | |
| pkg: github.com/github/gitrpcd/spraints/mutexvsatomic | |
| cpu: Intel(R) Core(TM) i9-9980HK CPU @ 2.40GHz | |
| BenchmarkMutex-16 2182556 544.1 ns/op | |
| --- BENCH: BenchmarkMutex-16 | |
| compare_test.go:71: maxes: [2 2 2 2 2 2 2 2 2 2] | |
| compare_test.go:71: maxes: [2 2 2 2 2 2 2 2 2 2] |
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
| int red = 11; | |
| int green = 10; | |
| int blue = 9; | |
| long spectrum[] = { | |
| 0xff0000, // 0 red | |
| 0xffa500, // 1 orange | |
| 0xffff00, // 2 yellow | |
| 0x00ff00, // 3 green | |
| 0x0000ff, // 4 blue |
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
| *.o | |
| show-maxrss | |
| bloat-fe |
NewerOlder