Skip to content

Instantly share code, notes, and snippets.

View liampulles's full-sized avatar

Liam Pulles liampulles

View GitHub Profile
@OseasSon
OseasSon / gist:fc4f1ee3e5e861575440f154ce8ef89e
Created July 28, 2023 11:29
Example payload from content_stat.survey
{
"type": "notification_event",
"app_id": "d90xxx0b",
"data": {
"type": "notification_event_data",
"item": {
"type": "content_stat.survey",
"created_at": 1690543628,
"content_stat": {
"id": "contentStatId123",
@PurpleBooth
PurpleBooth / Dockerfile
Last active March 21, 2024 09:33
Create a static binary in go and put it in a from scratch docker container
FROM golang:1.9
WORKDIR /go/src/github.com/purplebooth/example
COPY . .
RUN go build -ldflags "-linkmode external -extldflags -static" -a main.go
FROM scratch
COPY --from=0 /go/src/github.com/purplebooth/example/main /main
CMD ["/main"]