Skip to content

Instantly share code, notes, and snippets.

View jrockway's full-sized avatar
🌒
Eclipse viewing

Jonathan Rockway jrockway

🌒
Eclipse viewing
View GitHub Profile
@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 / xorg.conf
Created December 5, 2013 10:11
xorg.conf for a custom EDID for my TV, making my card not send null audio over the DVI link. See also: http://analogbit.com/hdmi_dvi_audio
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0" 0 0
Screen 1 "Screen1" RightOf "Screen0"
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
Option "Xinerama" "0"
EndSection
Section "Files"
@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 / foo.pl
Created September 22, 2012 08:25
make a dot file out of lsmod's output
#!/usr/bin/perl -n
BEGIN { print "digraph modules {\n" }
if(/^([^[:space:]]+).*\s([^[:space:]]+)$/) {
print "# $1 -> $2\n";
for (split /,/,$2) {
print " $1 -> $_;\n";
}
}
END { print "}" }