Skip to content

Instantly share code, notes, and snippets.

💻
package main

Alex Pliutau plutov

Block or report user

Report or block plutov

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
View init.yaml
initContainers:
- name: migrations
image: migrate/migrate:latest
command: ['/migrate']
args: ['-source', 'gcs://bucket/migrations', '-database', 'mongodb://mongo-0.mongo.default.svc.cluster.local:27017/db', 'up']
View gdrive.filter
from:(docs.google.com OR drive-shares-noreply@google.com)
@plutov
plutov / cleanup.sh
Last active Jan 22, 2019
cleanup.sh
View cleanup.sh
gcloud functions delete api
gcloud functions delete consumer
gcloud pubsub topics delete randomNumbers
@plutov
plutov / logs.sh
Last active Jan 22, 2019
logs.sh
View logs.sh
gcloud functions logs read consumer
@plutov
plutov / consumerdeploy.sh
Last active Jan 22, 2019
consumerdeploy.sh
View consumerdeploy.sh
gcloud functions deploy consumer --entry-point Receive --runtime go111 --trigger-topic=randomNumbers
View consumer.go
package consumer
import (
"context"
"log"
)
type event struct {
Data []byte
}
View api.out
availableMemoryMb: 256
entryPoint: Send
environmentVariables:
PROJECT_ID: projectname-227718
httpsTrigger:
url: https://us-central1-projectname-227718.cloudfunctions.net/api
View apideploy.sh
gcloud functions deploy api --entry-point Send --runtime go111 --trigger-http --set-env-vars PROJECT_ID=projectname-227718
View gomod.sh
export GO111MODULE=on
go mod init
go mod tidy
You can’t perform that action at this time.