Skip to content

Instantly share code, notes, and snippets.

James Hartig fastest963

Block or report user

Report or block fastest963

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
@fastest963
fastest963 / debug.log
Created Jul 27, 2019
Consul TTL Issue
View debug.log
2019/07/27 13:38:09 [DEBUG] agent: Check "agreement-api-debug-10.128.15.247-24465-ttl-alive" in sync
2019/07/27 13:38:09 [DEBUG] agent: Check "agreement-api-debug-10.128.15.247-20721-ttl-alive" in sync
2019/07/27 13:38:09 [DEBUG] agent: Check "agreement-api-services-10.128.15.247-22584-ttl-alive" in sync
2019/07/27 13:38:09 [DEBUG] agent: Check "service:agreement-api-services-10.128.15.247-22584:2" in sync
2019/07/27 13:38:09 [DEBUG] agent: Check "agreement-api-services-10.128.15.247-22584-ttl-alive" status is now passing
2019/07/27 13:38:09 [DEBUG] agent: Service "agreement-api-services-10.128.15.247-22584" in sync
2019/07/27 13:38:09 [DEBUG] agent: Service "agreement-api-debug-10.128.15.247-20721" in sync
2019/07/27 13:38:09 [DEBUG] agent: Service "agreement-api-debug-10.128.15.247-24465" in sync
2019/07/27 13:38:09 [DEBUG] agent: Check "agreement-api-services-10.128.15.247-22584-ttl-alive" in sync
2019/07/27 13:38:09 [DEBUG] agent: Check "service:agreement-api-services-10.128.15.247-22584:2" in sync
@fastest963
fastest963 / main.go
Last active Jul 10, 2019
Reproduction for #1485
View main.go
package main
import (
"context"
"flag"
"math/rand"
"net/http"
_ "net/http/pprof"
"os"
"os/signal"
View clusterSlots.go
var c radix.Client
var raw resp2.RawMessage
err = conn.Do(radix.Cmd(&raw, "CLUSTER", "SLOTS"))
if err == nil {
var ct radix.ClusterTopo
var rerr resp2.Error
if ct.UnmarshalRESP(bufio.NewReaderSize(bytes.NewReader(raw), len(raw))) == nil {
c, err = radix.NewCluster([]string{ar.Addr},
radix.ClusterPoolFunc(df),
)
@fastest963
fastest963 / main.go
Last active Dec 11, 2018
Reproduction for #1247
View main.go
package main
import (
"context"
"flag"
"math/rand"
"net/http"
_ "net/http/pprof"
"os"
"os/signal"
@fastest963
fastest963 / main.go
Last active Oct 16, 2018
Reproduction for #1177
View main.go
package main
import (
"context"
"flag"
"math/rand"
"net/http"
_ "net/http/pprof"
"os"
"os/signal"
View main.go
package main
import (
"flag"
"io"
"log"
"net"
"runtime"
"sync/atomic"
"time"
@fastest963
fastest963 / main.go
Created Feb 1, 2018
Pubsub 15 minute delayed acks
View main.go
package main
import (
"context"
"time"
"github.com/levenlabs/go-llog"
"cloud.google.com/go/pubsub"
"google.golang.org/grpc/codes"
View metrics.go
package corednslmetric
import (
"fmt"
"log"
"net"
"net/http"
"bitbucket.org/levenlabs/llib/lmetric"
"github.com/coredns/coredns/plugin/metrics"
"github.com/gogo/protobuf/proto"
"github.com/prometheus/client_golang/prometheus"
View gist:5100d5d873424a117044e61d2390080b
Verifying my Blockstack ID is secured with the address 1LgXPpkHy3tNUpLPRhnC7xSPEEy2ygEtJq https://explorer.blockstack.org/address/1LgXPpkHy3tNUpLPRhnC7xSPEEy2ygEtJq
View quiet_servers.yml
---
- name: quiet_servers
interval: "*/5 * * * *"
search_index: logstash-{{.Format "2006.01.02"}},logstash-{{(.AddDate 0 0 -1).Format "2006.01.02"}}
search_type: logs
search: {
"size":0,
"query":{
"filtered":{
"query":{
You can’t perform that action at this time.