Skip to content

Instantly share code, notes, and snippets.

package consumer
import (
"context"
"fmt"
"github.com/aws/aws-sdk-go/aws/awserr"
"github.com/aws/aws-sdk-go/service/kinesis"
"github.com/pkg/errors"
"sync"
"time"
kubectl delete all --all --namespace=ns
kubectl delete --all ingress --namespace=ns
@tpoxa
tpoxa / libnsl-dev-ubuntu.sh
Created March 28, 2020 15:40
Install libnsl dev on ubuntu 19.04
apt-get install libtool autoconf gettext unzip -y
mkdir -p /opt && cd /opt && \
wget https://github.com/thkukuk/libnsl/archive/v1.2.0.zip && \
unzip v1.2.0.zip && rm v1.2.0.zip && \
cd /opt/libnsl-1.2.0 && \
./autogen.sh && ./configure && cmake && make install
@tpoxa
tpoxa / gcs_resumable_uploads.go
Last active March 29, 2020 14:12
This code helps to upload/download Google Cloud Objects of large size without dealing actually with object's bytes in Go
package main
import (
"bytes"
"cloud.google.com/go/storage"
"context"
"fmt"
"github.com/motemen/go-loghttp"
"github.com/pkg/errors"
"github.com/spf13/viper"