Skip to content

Instantly share code, notes, and snippets.

mario zupzup

Block or report user

Report or block zupzup

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
@zupzup
zupzup / main.go
Created Sep 15, 2018
Log deletion script for ELK-stack logs written in Go
View main.go
package main
import (
"context"
"flag"
log "github.com/sirupsen/logrus"
"gopkg.in/olivere/elastic.v6"
"os"
"strings"
"time"
@zupzup
zupzup / main.go
Last active Nov 15, 2019
ElasticSearch to Prometheus Exporter in Go
View main.go
package main
import (
"context"
"github.com/go-chi/chi"
"github.com/go-chi/render"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promhttp"
log "github.com/sirupsen/logrus"
"gopkg.in/olivere/elastic.v6"
View contract.go
// This file is an automatically generated Go binding. Do not modify as any
// change will likely be lost upon the next re-generation!
package main
import (
"math/big"
"strings"
"github.com/ethereum/go-ethereum/accounts/abi"
@zupzup
zupzup / main.go
Created Jul 14, 2017
Example for Basic AST Traversal in Go
View main.go
package main
import (
"fmt"
"go/ast"
"go/parser"
"go/printer"
"go/token"
"log"
"os"
@zupzup
zupzup / main.go
Created Mar 20, 2017
Go TCP Proxy / Port Forwarding Example (https://zupzup.org/go-port-forwarding/)
View main.go
package main
import (
"flag"
"fmt"
"io"
"log"
"net"
"os"
"os/signal"
You can’t perform that action at this time.