Skip to content

Instantly share code, notes, and snippets.

View go.mod
module otel-ping
go 1.15
require (
github.com/census-instrumentation/opencensus-proto v0.2.1
github.com/gogo/protobuf v1.3.2 // indirect
github.com/grpc-ecosystem/grpc-gateway v1.16.0 // indirect
go.opentelemetry.io/otel v0.19.0
go.opentelemetry.io/otel/exporters/otlp v0.19.0
View dump_notes.py
#!/usr/bin/env python
import hashlib
import binascii
import os
from evernote.api.client import EvernoteClient
from evernote.edam.notestore.ttypes import NoteFilter, NotesMetadataResultSpec
auth_token = ""
View gcal.go
// List or summarize upcoming calendar events
// auth handling from https://developers.google.com/calendar/quickstart/go
package main
import (
"encoding/json"
"flag"
"fmt"
"io/ioutil"
"log"
View traceparent.go
package main
import (
cryptorand "crypto/rand"
"encoding/binary"
"fmt"
"log"
"math/rand"
"time"
)
View cgs.go
package main
import (
"log"
"os"
"path"
"strconv"
"github.com/davecgh/go-spew/spew"
"github.com/elastic/gosigar"
View load.go
package main
import (
"bytes"
"compress/zlib"
"context"
cryptorand "crypto/rand"
"encoding/binary"
"flag"
"fmt"
View ClientWithResponseHandler.java
/*
* ====================================================================
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
@graphaelli
graphaelli / zube.go
Created Dec 5, 2019
Zube API Client
View zube.go
package main
import (
"crypto/rsa"
"encoding/json"
"fmt"
"io"
"io/ioutil"
"log"
"net/http"
View setup.txt
DELETE block_ip
PUT block_ip
{
"mappings": {
"properties": {
"source": {
"properties": {
"ip": {
"type": "ip"
}
View update-ilm-policies-apm.py
#!/usr/bin/env ipython
import json
import urllib
import requests
policy = {
"policy": {