Skip to content

Instantly share code, notes, and snippets.

View jrockway's full-sized avatar

June Rockway jrockway

View GitHub Profile
@jrockway
jrockway / README.md
Created February 25, 2020 06:17
Envoy debugging from Slack

Looks like there was a problem with a react app's reloading websocket thingie. So I decided to test.

Here is a random react app that I decied to try: https://github.com/ahfarmer/calculator

$ npm start

Without an upgrade config:

[2020-02-25 01:13:26.243][4407][debug][http] [source/common/http/conn_manager_impl.cc:731] [C8][S17729359102081406356] request headers complete (end_stream=false):

@jrockway
jrockway / jsondiff.go
Created February 27, 2021 06:57
Diff JSON files
package main
import (
"encoding/json"
"fmt"
"log"
"os"
"github.com/google/go-cmp/cmp"
)
@jrockway
jrockway / main.go
Created March 29, 2021 18:53
Make a bunch of files
package main
import (
"flag"
"fmt"
"io"
"log"
"os"
"path/filepath"
)
@jrockway
jrockway / main.go
Last active October 13, 2021 23:53
Write bytes forever
package main
import (
"fmt"
"os"
"sync"
"time"
)
func main() {
module walk-file-example
go 1.20
require github.com/pachyderm/pachyderm/v2 v2.4.5
require (
github.com/Azure/azure-pipeline-go v0.2.3 // indirect
github.com/Azure/azure-storage-blob-go v0.14.0 // indirect github.com/apache/arrow/go/arrow v0.0.0-20211112161151-bc219186db40 // indirect
github.com/aws/aws-sdk-go v1.44.68 // indirect
@jrockway
jrockway / main.go
Created April 4, 2023 03:53
URL safe base64 without padding
package main
import (
"encoding/base64"
"io"
"log"
"os"
)
func main() {