Skip to content

Instantly share code, notes, and snippets.

View RuNpiXelruN's full-sized avatar

Justin Davidson RuNpiXelruN

  • Sydney, Australia
View GitHub Profile
@quiver
quiver / iam-policy.json
Last active April 23, 2024 07:02
How to connect to Amazon RDS PostgreSQL with IAM credentials
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"rds-db:connect"
],
"Resource": [
"arn:aws:rds-db:region:account-id:dbuser:dbi-resource-id/database-user-name"
@paked
paked / goth_auth.go
Last active October 25, 2017 04:31
Basic OAuth with goth in golang.
package main
import (
"flag"
"fmt"
"net/http"
"github.com/gorilla/mux"
"github.com/markbates/goth"
"github.com/markbates/goth/gothic"