Skip to content

Instantly share code, notes, and snippets.

@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() {
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
Last active October 13, 2021 23:53
Write bytes forever
package main
import (
"fmt"
"os"
"sync"
"time"
)
func main() {
@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 / 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 / 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):

Keybase proof

I hereby claim:

  • I am jrockway on github.
  • I am jrockway (https://keybase.io/jrockway) on keybase.
  • I have a public key ASA8G2c4-xSAc7iQtrfm5NgCF4vmTT9M8vwzyr4YQto4tgo

To claim this, I am signing this object:

@jrockway
jrockway / diffstat
Created May 11, 2014 10:09
openbsd 5.4 to 5.5 upgrade
root/etc/boot.conf | 2 +-
root/etc/ddclient/ddclient.conf | 191 +++++++++++++++++++++++++++++++++++
root/etc/dhclient.conf | 3 +-
root/etc/dhcpd.conf | 43 ++++----
root/etc/hostname.em0 | 4 +-
root/etc/hostname.gif0 | 3 +
root/etc/hostname.tun0 | 2 +
root/etc/hostname.vr0 | 1 +
root/etc/myname | 2 +-
root/etc/openvpn/blinky.jrock.us.crt | 92 +++++++++++++++++
backend = "glx";
glx-no-stencil = true;
refresh-rate = 60;
vsync = "opengl-swc";
paint-on-overlay = true;
sw-opti = false;
unredir-if-possible = false;