Acknowledgement
- https://support.mozilla.org/en-US/questions/1297983#answer-1381308
- https://twitter.com/dosyara/status/1428701970571878403
Honorable mention
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 | |
) |
Run delve in headless mode, logging rpc calls to the delve.out
file
= ./go/bin/dlv core adjust_server core.250387 --headless --listen 178.162.216.107:40233 --api-version=2 --log --log-output rpc 2> delve.out
Get list of running goroutines:
= dlv connect 178.162.216.107:40233
goroutines