I hereby claim:
- I am tylertreat on github.
- I am tylertreat (https://keybase.io/tylertreat) on keybase.
- I have a public key whose fingerprint is FA5C 8B53 190C D672 5BDD EFA6 1484 FBC8 4FF0 4832
To claim this, I am signing this object:
| private String getSignedJwt() { | |
| long now = System.currentTimeMillis(); | |
| RSAPrivateKey privateKey = (RSAPrivateKey) credentials.getPrivateKey(); | |
| Algorithm algorithm = Algorithm.RSA256(null, privateKey); | |
| return JWT.create() | |
| .withKeyId(credentials.getPrivateKeyId()) | |
| .withIssuer(credentials.getClientEmail()) | |
| .withSubject(credentials.getClientEmail()) | |
| .withAudience(OAUTH_TOKEN_URI) | |
| .withIssuedAt(new Date(now)) |
| package com.realkinetic.gcp.spring.oidc; | |
| import com.auth0.jwt.JWT; | |
| import com.auth0.jwt.algorithms.Algorithm; | |
| import com.auth0.jwt.interfaces.DecodedJWT; | |
| import com.google.api.client.http.*; | |
| import com.google.api.client.http.javanet.NetHttpTransport; | |
| import com.google.api.client.json.JsonObjectParser; | |
| import com.google.api.client.json.jackson2.JacksonFactory; | |
| import com.google.api.client.util.GenericData; |
| global: | |
| scrape_interval: 15s # Set the scrape interval to every 15 seconds. Default is every 1 minute. | |
| evaluation_interval: 15s # Evaluate rules every 15 seconds. The default is every 1 minute. | |
| # scrape_timeout is set to the global default (10s). | |
| scrape_configs: | |
| # The job name is added as a label `job=<job_name>` to any timeseries scraped from this config. | |
| - job_name: 'pushgateway' | |
| # metrics_path defaults to '/metrics' |
| import json | |
| import sys | |
| def main(): | |
| graphson_file = sys.argv[1] | |
| _to_dot_graph(graphson_file) | |
| def _to_dot_graph(graphson_file): |
I hereby claim:
To claim this, I am signing this object:
| type RingBuffer struct { | |
| queue uint64 | |
| dequeue uint64 | |
| mask, disposed uint64 | |
| nodes nodes | |
| } |
| func findHelloWorld(filename string) error { | |
| file, err := os.Open(filename) | |
| if err != nil { | |
| return err | |
| } | |
| defer file.Close() | |
| scanner := bufio.NewScanner(file) | |
| for scanner.Scan() { | |
| if scanner.Text() == "hello, world!" { |
| package main | |
| import ( | |
| "flag" | |
| "fmt" | |
| "os" | |
| "time" | |
| "github.com/tylertreat/bench" | |
| "github.com/tylertreat/bench/requester" |
| package main | |
| import ( | |
| "flag" | |
| "fmt" | |
| "os" | |
| "time" | |
| "github.com/gocql/gocql" | |
| "github.com/nats-io/nats" |
| func isInt64InSlice(i int64, slice []int64) bool { | |
| for _, j := range slice { | |
| if j == i { | |
| return true | |
| } | |
| } | |
| return false | |
| } |