This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SEEK_BEG = 0 | |
SEEK_SET = 1 | |
SEEK_END = 2 | |
BLOCK_SIZE = 10 | |
FILE_NAME = "console.log" | |
def get_console_output(length, offset, origin=SEEK_END): | |
if origin == SEEK_END: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.5' | |
services: | |
auth: | |
build: './cmd/auth_service' | |
expose: | |
- 9090 | |
ports: | |
- 9090:9090 | |
images: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM golang:1.10 | |
WORKDIR /go/src/github.com/stgleb/imager/cmd/auth_service | |
COPY Gopkg.lock . | |
COPY Gopkg.toml . | |
RUN go get -u github.com/golang/dep/cmd/dep | |
COPY main.go . | |
RUN dep ensure | |
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o auth_service . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Copyright 2017 Google LLC | |
// | |
// Licensed 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 | |
// | |
// http://www.apache.org/licenses/LICENSE-2.0 | |
// | |
// Unless required by applicable law or agreed to in writing, software | |
// distributed under the License is distributed on an "AS IS" BASIS, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCpJTpadNp+c8MMQ/cyiWMjio5WxsFklDxG4RCuP6tgUEWqnANelNxT/lkIO5hUCfCS8a4wGPiOWIJpYMmmQRz7lysqm3hGGLVSv1H8m9XY//t/Xd+On7M/FZtr1AB/WV/11YBU8jW0TWk/pgPHjUUYnbbPAK1iilQS1ULx/Wen6EmjzVqD8XDLl82/cQgfT6UF1ZVQd+7qPmdeK4her+Otg/rTwIqjQI7DObhThpn7ZHehclTULw0jtAGw7/3Bek/DAuKSG3yQ+hMg+0xqO1t6zo12kYlRwpGTiCW2zLAuVw7PW7nz3SGvOTAjXAzKYcVdCn9rSs6UqufP4FV2BlbW3ZoQJY2KoEuDFbgmyhP8Z/+A6EXVkQBY/jHHsJGWIZS1QGpSAbYEGubb/lKryw0k1nr4X+bmFeymuOSWdipYOv/b4nXUrI+qIAZIza7heSM5BuRqkvVO/SSqyNbrypWHmL8x+EVb0WiSLQqFh/VZKiW0cgZ2gWL+qYyHuKlTPXCa+vO3SpPVFyIKV6WlblrSeCpwC6dj94RSkQejOojXvUJ1eT504dU8zyDYgE5nAgxeJecnM5+5Kowb/Zi5ByIjAmRE8e7ST4C9g73sue3t5foJ6IItJtlVgIoP5W3GLbRJ8p8T5SQY7fIVR6BiUmWU9BR2XdWVi2sH/x1IW9meoQ== [email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# SOURCE: https://install.portworx.com/?mc=false&kbver=1.14.8&b=true&c=px-cluster-ef900bc3-4cd3-4f2d-aa7e-173cf076ce00&stork=true&lh=true&st=k8s&e=REGISTRY_USER%3Dpwxbuild%2CREGISTRY_PASS%3Dfridaydemos | |
--- | |
kind: Service | |
apiVersion: v1 | |
metadata: | |
name: portworx-service | |
namespace: kube-system | |
labels: | |
name: portworx | |
spec: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# SOURCE: https://install.portworx.com/?mc=false&kbver=1.14.2&b=true&c=px-cluster-4726c8d7-3d3e-4be8-8a23-470a02a988b9&stork=true&lh=true&st=k8s&e=REGISTRY_PASS%3Dfridaydemos%2CREGISTRY_USER%3Dpwxbuild | |
--- | |
kind: Service | |
apiVersion: v1 | |
metadata: | |
name: portworx-service | |
namespace: kube-system | |
labels: | |
name: portworx | |
spec: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# SOURCE: https://install.portworx.com/?mc=false&kbver=1.14.2&b=true&c=px-cluster-4726c8d7-3d3e-4be8-8a23-470a02a988b9&stork=true&lh=true&st=k8s&e=REGISTRY_PASS%3Dfridaydemos%2CREGISTRY_USER%3Dpwxbuild | |
--- | |
kind: Service | |
apiVersion: v1 | |
metadata: | |
name: portworx-service | |
namespace: kube-system | |
labels: | |
name: portworx | |
spec: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"encoding/csv" | |
"fmt" | |
"io" | |
"log" | |
"os" | |
"sort" | |
"strconv" |