Skip to content

Instantly share code, notes, and snippets.

View rlmartin's full-sized avatar

Ryan Martin rlmartin

View GitHub Profile
@rlmartin
rlmartin / list-forks.js
Last active April 10, 2019 13:44
This will list all forks of any repo in a given Github organization
const Promise = require("bluebird")
const Octokit = require('@octokit/rest')
const octokit = new Octokit({auth: 'YOUR_TOKEN_HERE'})
const per_page = 25
const repos = {}
const your_org = 'YOUR_ORG_HERE'
function forRepos(processor, page = 1) {
return octokit.repos.listForOrg({
org: your_org,
@rlmartin
rlmartin / custom-resource-function.yml
Created June 4, 2018 02:26
CloudFormation resource for AWS SecretsManager
AWSTemplateFormatVersion: 2010-09-09
Description: Manages AWS SecretsManager for CloudFormation
Resources:
Role:
Type: AWS::IAM::Role
Properties:
AssumeRolePolicyDocument:
Version: 2012-10-17
Statement:
- Effect: Allow
@rlmartin
rlmartin / lambda-pipeline.yml
Last active April 7, 2018 22:47
CloudFormation template to create a CodePipeline deployment for a Lambda API deployed via SAM
AWSTemplateFormatVersion: 2010-09-09
Description: Lambda Pipeline for CI/CD
Parameters:
GitHubRepo:
Description: The GitHub repo where the code is hosted.
Type: String
GitHubRepoOwner:
Description: The owning account name for GitHub repo where the code is hosted.
Type: String
GitHubToken:

Keybase proof

I hereby claim:

  • I am rlmartin on github.
  • I am rlmartin (https://keybase.io/rlmartin) on keybase.
  • I have a public key whose fingerprint is BEDC E62B 21AB ED70 D5CB 77F0 B6AD F3FB 2CE0 9C2F

To claim this, I am signing this object: