Skip to content

Instantly share code, notes, and snippets.

View ctalladen78's full-sized avatar

Cy Talladen ctalladen78

  • OstinatoRigore
View GitHub Profile
@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 {
@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 / 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 / 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:
# 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 / 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
@ctalladen78
ctalladen78 / README.md
Created February 7, 2020 06:24 — forked from crypticmind/README.md
Setup lambda + API Gateway using localstack
@ctalladen78
ctalladen78 / asymmetric.go
Created February 13, 2020 03:49 — forked from cryptix/LICENSE
example of using JWT for http authentication in go
package main
// using asymmetric crypto/RSA keys
import (
"crypto/rsa"
"fmt"
"io/ioutil"
"log"
"net/http"
@ctalladen78
ctalladen78 / average-geolocation.js
Created March 20, 2020 12:05 — forked from tlhunter/average-geolocation.js
Calculate the center/average of multiple GeoLocation coordinates
/**
* Calculate the center/average of multiple GeoLocation coordinates
* Expects an array of objects with .latitude and .longitude properties
*
* @url http://stackoverflow.com/a/14231286/538646
*/
function averageGeolocation(coords) {
if (coords.length === 1) {
return coords[0];
}

Contributing

When contributing to this repository, please first discuss the change you wish to make via issue, email, or any other method with the owners of this repository before making a change.

Please note we have a code of conduct, please follow it in all your interactions with the project.

Pull Request Process

  1. Ensure any install or build dependencies are removed before the end of the layer when doing a