This file contains hidden or 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
[ | |
{ | |
"email": "[email protected]", | |
"method": [ | |
"io.k8s.apps.v1.deployments.create", | |
"io.k8s.extensions.v1beta1.deployments.create" | |
] | |
}, | |
{ | |
"email": "system:unsecured", |
This file contains hidden or 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
description: instance_ssh | |
includedPermissions: | |
- compute.instances.get | |
- compute.instances.setMetadata | |
- compute.projects.get | |
- compute.zones.list | |
stage: ALPHA |
This file contains hidden or 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
#!/bin/bash | |
# Prerequisites | |
: "${PROJECT:?Expects PROJECT to be non-empty}" | |
: "${CONTEXT:?Expects CONTEXT to be non-empty}" | |
: "${NAMESPACE:?Expects NAMESPACE to be non-empty}" | |
NODE=$(\ | |
kubectl get nodes \ | |
--context=${CONTEXT} \ |
This file contains hidden or 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
--- | |
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
annotations: | |
labels: | |
app: hellohenry | |
name: hellohenry | |
spec: | |
replicas: 1 |
This file contains hidden or 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 as build | |
WORKDIR /go/src/app | |
COPY . . | |
RUN go get -d -v ./... | |
RUN go install -v ./... | |
FROM gcr.io/distroless/base |
This file contains hidden or 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 ( | |
"flag" | |
"fmt" | |
"log" | |
"os" | |
"path/filepath" | |
"sync" |
This file contains hidden or 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 useful | |
type Node struct { | |
Left *Node | |
Right *Node | |
Value int32 | |
} | |
// Permits us to have an empty tree | |
type Tree struct { |
This file contains hidden or 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 ( | |
"flag" | |
"fmt" | |
"log" | |
"os" | |
"path/filepath" | |
"sort" | |
"sync" |
This file contains hidden or 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
{ | |
"name": "gcs-exploder", | |
"version": "0.0.2", | |
"description": "Unzip zipped files stored to GCS", | |
"scripts": { | |
"start": "node app.js" | |
}, | |
"author": "Your Name <[email protected]>", | |
"dependencies": { | |
"@google-cloud/storage": "1.7.0", |
This file contains hidden or 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
/* globals exports, require */ | |
/* jshint node: true */ | |
/* jshint strict: false */ | |
/* jshint esversion: 6 */ | |
"use strict"; | |
const crc32 = require("fast-crc32c"); | |
const gcs = require('@google-cloud/storage')(); | |
const stream = require("stream"); | |
const unzipper = require("unzipper"); |