Skip to content

Instantly share code, notes, and snippets.

View neverping's full-sized avatar

Willian Braga da Silva neverping

View GitHub Profile
@neverping
neverping / Dockerfile
Last active February 7, 2022 18:01
My suggestion
################################
# STEP 1 build executable binary
################################
FROM golang:1.16-alpine as builder
RUN apk update && \
apk add --update bash && \
apk add --no-cache tzdata curl ca-certificates
# Create appuser.
ENV MY_USER=appuser
@neverping
neverping / aws_s3_policy_list_put_but_dont_delete_objects.json
Created January 12, 2019 22:17
To be used with WhizLabs. Will be deleted in a couple of weeks.
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "GetBucketsOrListThem",
"Effect": "Allow",
"Action": [
"s3:ListBucket",
"s3:ListAllMyBuckets",
"s3:GetBucketLocation"