Creează un cont pentru a te abona la acest blog și a-i urmări articolele pe pagina Lectură.
-
BCC - Tools for BPF-based Linux IO analysis, networking, monitoring, and more https://github.com/iovisor/bcc $ kubectl debug node/default-pool-3mrgkk --image debian -it --profile=sysadmin --share-processes=true -- bash apt update apt install bpfcc-tools/…
-
How is this possible??
-
ERROR: logical replication target relation "public.t1" is missing replicated column: "b" DDL breaks logical replication because they are not replicated and apply workers start to fail.
-
After setting up the logical replica, any DDL on the primary is going to break the replication.
-
shell !
-
package main import "fmt" type Bar struct { Bar string } type Bars []Bar type Foo struct { Bars Bars } func main() { f := Foo{Bars: []Bar{{Bar: "ege"}}} fmt.Printf("Foo: %+v\n", f) for _, e := range f.Bars { e.Bar = "gule" } fmt.Printf(…
-
Graceful shutdown server := &http.Server{Addr: ":8080", Handler: handler} go func() { if err := server.ListenAndServe(); err !
-
package main import ( "fmt" ) // binarySearch performs binary search on a sorted slice. // It returns the index of target if present, or -1 if not found. func binarySearch(slice []int, target int) int { low := 0 high := len(slice) - 1 f…
-
Simple ticker := time.NewTicker(5 * time.Second) for range ticker.C { log.Println("Hey!")
-
Direct Initialization vs Pre-allocated Buffer First Approach: w := bytes.Buffer{} w.WriteString(itemType) w.WriteRune(':') w.WriteString(clientId) Second Approach: l := len(itemType) + len(clientId) + len(id) + 2 buf := make([]byte, 0, l) w := bytes.NewBu…