Skip to content

Instantly share code, notes, and snippets.

View ctalladen78's full-sized avatar

Cy Talladen ctalladen78

  • OstinatoRigore
View GitHub Profile
@ctalladen78
ctalladen78 / README.md
Created December 27, 2019 04:53 — forked from alsmola/README.md
Using session policies to limit IAM role access

Session Policy Example

First, upload test files to an S3 bucket you control (replace YOUR_BUCKET_NAME) in two directories representing isolated namespaces (123 and 124).

echo "123" > test.txt
aws s3 cp test.txt s3://YOUR_BUCKET_NAME/123/test.txt
echo "124" > test.txt
aws s3 cp test.txt s3://YOUR_BUCKET_NAME/124/test.txt
# serverless.yml
service:
name: myService
awsKmsKeyArn: arn:aws:kms:us-east-1:XXXXXX:key/some-hash # Optional KMS key arn which will be used for encryption for all functions
frameworkVersion: ">=1.0.0 <2.0.0"
provider:
name: aws
@ctalladen78
ctalladen78 / microVC.csv
Created December 13, 2019 03:20 — forked from ZeccaLehn/microVC.csv
Micro VC CSV
Firm Name Investment Sector Location (City) Investment Stage URL
1776 Technology, Health, Transportation, Energy, Education Washington, D.C. Early Stage Venture, Seed https://www.1776.vc/
11.2 Capital Healthcare, Security, Finance San Francisco, CA Early Stage, Seed http://www.112capital.com/
122 West Ventures Information Technology, Telecoms, Media, and Communications San Francisco, CA Early Stage 122west.vc/
1517 Fund Clean Technology, Consumer Discretionary, Healthcare, Industrials, Information Technology, Telecoms, Media, and Communications San Francisco, CA Early Stage: Seed, Early Stage: Start-up www.1517fund.com
1confirmation Financial Services San Francisco, CA Early Stage Venture, Seed www.1confirmation.com
3Rodeo Business Services, Information Technology, Telecoms, Media, and Communications Los Angeles, CA Early Stage, Early Stage: Seed www.3rodeo.com
4490 Ventures Technology, Financial Services, Agriculture, Education Madison, WI Early Stage Venture, Seed http:
@ctalladen78
ctalladen78 / jwt_golang_example.go
Created August 4, 2019 06:59 — forked from thealexcons/jwt_golang_example.go
JSON Web Tokens in Go
package main
import (
"io/ioutil"
"log"
"strings"
"net/http"
"encoding/json"
"fmt"
"time"
@ctalladen78
ctalladen78 / Google Spreadsheet.js
Created August 13, 2018 02:36 — forked from iaincollins/Google Spreadsheet.js
Example Node.js code to append to a Google Spreadsheet every hour
/**
* Append data to a Google Spreadsheet
*
* You will need a file called '.env' with the following values:
*
* - GOOGLE_ID (Google oAuth Client ID)
* - GOOGLE_SECRET (Google oAuth Client Secret)
* - GOOGLE_REFRESH_TOKEN (Google oAuth Refresh Token)
* - GOOGLE_SPREADSHEET_ID (Google Spreadsheet ID)
*
@ctalladen78
ctalladen78 / gist:c0ed5ac376a0420105c33d726a6c5dff
Created August 8, 2018 09:27 — forked from aodin/gist:9493190
Parsing JSON in a request body with Go
package main
import (
"encoding/json"
"io/ioutil"
"log"
"net/http"
)
type Message struct {