Skip to content

Instantly share code, notes, and snippets.

View whatupfoo's full-sized avatar
🐵

Rowena Foo whatupfoo

🐵
  • Shopify
  • Chicago, IL
View GitHub Profile
@whatupfoo
whatupfoo / 1-orgs-archetype.md
Last active March 12, 2024 06:58
Orgs and Teams Best Practices

Organization archetypes

The intention of this document is to provide some guidance and suggestions to customers who are wondering how they should structure organizations and teams in their GitHub Enterprise environment. The idea isn't to give hard and fast rules on which approach is better than the other, but to give examples of when one approach might be preferable to another depending on the use case.

1. A single organization with direct organization membership for repository access (not teams)

          ________________
          |     Org      |
          |    ______    |
          |   |      |\  |

| | Repo | \ |

#!/usr/bin/env ruby
# frozen_string_literal: true
require "csv"
require "jwt"
require "octokit"
require "optparse"
require "spreadsheet"
require "yaml"
@whatupfoo
whatupfoo / aws-elb-proxy.md
Created July 28, 2020 14:18
Configure AWS LB X-forward-for to Proxy

aws elb describe-load-balancers --load-balancer-name [elb-name]

aws elb create-load-balancer-policy --load-balancer-name [elb-name] --policy-name my-ProxyProtocol-policy --policy-type-name ProxyProtocolPolicyType --policy-attributes AttributeName=ProxyProtocol,AttributeValue=true

aws elb set-load-balancer-policies-for-backend-server --load-balancer-name [elb-name] --instance-port 23 --policy-names my-ProxyProtocol-policy

aws elb set-load-balancer-policies-for-backend-server --load-balancer-name [elb-name] --instance-port 81 --policy-names my-ProxyProtocol-policy

aws elb set-load-balancer-policies-for-backend-server --load-balancer-name [elb-name] --instance-port 444 --policy-names my-ProxyProtocol-policy