Skip to content

Instantly share code, notes, and snippets.

View vomnes's full-sized avatar
🔥

Valentin Omnes vomnes

🔥
View GitHub Profile
@vomnes
vomnes / a-server.go
Last active March 24, 2024 19:35
Minimalist TCP server/client in Go using only syscalls - Select() to handle file descriptors
package main
import (
"fmt"
"log"
"golang.org/x/sys/unix"
)
// https://www.gnu.org/software/libc/manual/html_node/Sockets.html#Sockets
@vomnes
vomnes / print-data-url.go
Created April 8, 2018 14:38
Read the data from the body of a HTTP response
package main
import (
"errors"
"fmt"
"io/ioutil"
"net/http"
"os"
)
@vomnes
vomnes / aws-list-files-inside-directory.go
Created April 8, 2018 14:32
AWS - S3 - Bypass the 1000 files limit - Golang
package main
import (
"fmt"
"os"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/credentials"
"github.com/aws/aws-sdk-go/aws/session"
"github.com/aws/aws-sdk-go/service/s3"