Skip to content

Instantly share code, notes, and snippets.

View poy's full-sized avatar

Andrew Poydence poy

View GitHub Profile
go build -gcflags '-m' ./main.go
@poy
poy / chatbot.go
Created November 14, 2018 18:29
bot initiated message
package main
import (
"context"
"io/ioutil"
"log"
"net/http"
"os"
"golang.org/x/oauth2"
@poy
poy / push.sh
Created February 8, 2019 17:19
Push source code to GCS bucket and have knative build and deploy it
#!/bin/bash
# Copyright 2019 Google LLC.
# SPDX-License-Identifier: Apache-2.0
if [[ $# -ne 2 ]]; then
echo "Usage: $0 <Service Name> <Path>"
exit 1
fi
service_name=$1
@poy
poy / kf-points.go
Created September 10, 2019 16:18
This will tell you how many points are in a milestone for github.com/google/kf
package main
import (
"context"
"flag"
"fmt"
"os"
"strconv"
"github.com/google/go-github/github"