Skip to content

Instantly share code, notes, and snippets.

View arpit-saxena's full-sized avatar

Arpit Saxena arpit-saxena

View GitHub Profile
@arpit-saxena
arpit-saxena / main.go
Created January 12, 2026 11:41
Repro: Client executes Bind on a server which has prep stmt of another client
package main
import (
"context"
"fmt"
"log"
"os"
"github.com/jackc/pgx/v5/pgconn"
"github.com/jackc/pgx/v5/pgproto3"
@arpit-saxena
arpit-saxena / README.md
Last active December 30, 2025 11:10
Demonstrate two signal handling mechanisms for testing with gdb

signal_handling.c demonstrates 2 (of many) methods of handling signals in Linux: signalfd and signal(). We want to demonstrate that these 2 work differently with GDB.

Compile the program with -g flag then run under GDB. To run with signalfd:

(gdb) r signalfd

Try pressing Ctrl+C. This will stop GDB and also terminate the program as it receives a SIGINT.

@arpit-saxena
arpit-saxena / keybase.md
Created April 11, 2025 05:30
keybase.md

Keybase proof

I hereby claim:

  • I am arpit-saxena on github.
  • I am arpit_saxena (https://keybase.io/arpit_saxena) on keybase.
  • I have a public key ASDh6apZ4YVcb22OTtA3AqCKiNwLo1RTN7d5LwDS0z4iYAo

To claim this, I am signing this object:

@arpit-saxena
arpit-saxena / wt_wflow.md
Last active May 28, 2019 10:30
Workflow for the WebTorrent part of FileSend

Workflow

Note

  • Socket emits are shown with the path in bold in the beginning
  • Name is after that
  • Sub points contain the payload

Pre requisites (Assumptions)

  • Two users are connected.