Acknowledgement
- https://support.mozilla.org/en-US/questions/1297983#answer-1381308
- https://twitter.com/dosyara/status/1428701970571878403
Honorable mention
| // TestOOOCompactionAddsDeadSymbols verifies that compacting the OOO head | |
| // produces a block whose symbol table contains symbols from in-order-only | |
| // series that have no postings in the block. | |
| func TestOOOCompactionAddsDeadSymbols(t *testing.T) { | |
| ctx := t.Context() | |
| opts := DefaultOptions() | |
| opts.OutOfOrderCapMax = 30 | |
| opts.OutOfOrderTimeWindow = 300 * time.Minute.Milliseconds() | |
| db := newTestDB(t, withOpts(opts)) |
Acknowledgement
Honorable mention
| # cloud-config | |
| hostname: pi-4 | |
| manage_etc_hosts: true | |
| write_files: | |
| - content: | | |
| network: | |
| ethernets: | |
| eth0: |
| package main | |
| import ( | |
| "context" | |
| "flag" | |
| "log" | |
| "os" | |
| "os/signal" | |
| "syscall" | |
| ) |
| // pkg/svc | |
| type SettingsService struct { | |
| db DB // DB is an interface | |
| } | |
| func (svc *SettingsService) IsProCustomer(token Token) bool { | |
| v := svc.db.GetProCustomer(makeProPKFromToken(token)) | |
| return v == "1" | |
| } |
See https://github.com/narqo/aerospike-server/tree/make-arm64v8
sudo mkdir -p /opt/aerospike
sudo tar -C /opt/aerospike/ --strip-components=1 -xvf aerospike-server-community-4.5.3.14-6.aarch64.tar.gz
sudo mkdir -p /var/lib/aerospike/{data,smd,udf/lua}
| package main | |
| import ( | |
| "net" | |
| "net/http" | |
| ) | |
| const addr = ":8080" | |
| func main() { |
| package main | |
| import ( | |
| "sync" | |
| ) | |
| type oneValueK struct { | |
| k1, k2, k3 string | |
| } |
| package id | |
| type IdType int | |
| const ( | |
| IdTypeUnknown IdType = -1 | |
| IdType1 IdType = iota | |
| IdType2 | |
| ) |