Skip to content

Instantly share code, notes, and snippets.

Jon Lundy JonLundy

  • Utah, USA
Block or report user

Report or block JonLundy

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gqlgen.yml
schema: schema.graphql
exec:
filename: internal/graph/generated.go
package: graph
model:
filename: pkg/model/generated.go
package: model
models:
ID:
model: sour.is/x/example/pkg/model.Uint
View NullTime.go
package model
import (
"bytes"
"database/sql/driver"
"fmt"
"io"
"strings"
"time"
)
@JonLundy
JonLundy / generated interfaces
Last active Jul 20, 2018
mutation resolvers
View generated interfaces
type Resolvers interface {
CollectionOps_Section(ctx context.Context, obj *CollectionOps, id string) (*SectionOps, error)
CollectionOps_addSection(ctx context.Context, obj *CollectionOps, name string) (*Section, error)
CollectionOps_removeSection(ctx context.Context, obj *CollectionOps, id string) (*bool, error)
Mutation_Collection(ctx context.Context, id string) (*CollectionOps, error)
Query_Collection(ctx context.Context, id string) (*Collection, error)
SectionOps_addTag(ctx context.Context, obj *SectionOps, value string) (*Tag, error)
SectionOps_removeTag(ctx context.Context, obj *SectionOps, value string) (*bool, error)
}
View example.graphql
type Foo {
id: ID!
name: String!
}
type Query {
foo(id: ID!): Foo!
}
@JonLundy
JonLundy / openpgp.txt
Created Dec 23, 2016
OpenKeychain Linked Identity
View openpgp.txt
This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account.
Token for proof:
[Verifying my OpenPGP key: openpgp4fpr:20ae2f310a74ea7cec3ae69f8b3b0604f164e04f]
View keybase.md

Keybase proof

I hereby claim:

  • I am jonlundy on github.
  • I am xuu (https://keybase.io/xuu) on keybase.
  • I have a public key whose fingerprint is 8049 CC70 162B BE19 D5B5 180A E24B 23DE 8837 DD3D

To claim this, I am signing this object:

View conv.py
#!/usr/bin/python
import sys,json,base64,binascii
with open(sys.argv[1]) as fp:
pkey=json.load(fp)
def enc(data):
missing_padding = 4 - len(data) % 4
if missing_padding:
data += b'='* missing_padding
View keybase.md

Keybase proof

I hereby claim:

  • I am jonlundy on github.
  • I am xuu (https://keybase.io/xuu) on keybase.
  • I have a public key whose fingerprint is 4F59 E877 055C 6348 A21F 8582 D838 118B BD41 ED87

To claim this, I am signing this object:

View generate.sh
#!/bin/bash
[ $# -ge 6 ] || {
echo "Usage: $0 <NICK> <MAIL> <GPG> <AS> <ENDPOINT> <IPV4> [PORT]" >&2
exit 1
}
# You may want to change variables below and check if "/etc/bird/bird-dn42.conf"
# is included in your bird-config (same for bird6 with bird6-dn42.conf)
You can’t perform that action at this time.