← Înapoi la Urmăritori

Cel mai recent articol

Ultima verificare

Urmăritori 0 urmăritori
Articole: 10
  1. 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/…

  2. How is this possible??

  3. 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.

  4. After setting up the logical replica, any DDL on the primary is going to break the replication.

  5. shell !

  6. 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(…

  7. http.Server

    Graceful shutdown server := &http.Server{Addr: ":8080", Handler: handler} go func() { if err := server.ListenAndServe(); err !

  8. Binary Search

    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…

  9. time.Ticker

    Simple ticker := time.NewTicker(5 * time.Second) for range ticker.C { log.Println("Hey!")

  10. bytes.Buffer

    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…