Skip to content

Instantly share code, notes, and snippets.

View tcbyrd's full-sized avatar
👋

Tommy Byrd tcbyrd

👋
View GitHub Profile
@tcbyrd
tcbyrd / README.md
Created September 22, 2016 21:09
Route53 CNAME Update

AWS CLI command to update CNAME

When you have a set of application servers running in EC2 in an active/passive configuration, the easiest way to failover is to simply update the DNS to point to the second server as soon as it's available to serve requests. If you are using Route 53 to manage your DNS configuration, with the AWS CLI you can make this change in a single command.

Initial Setup

The CLI expects the change to be submitted via a JSON-formatted configuration file. I've inclu

@tcbyrd
tcbyrd / SCIM-SAML-Identities.graphql
Last active April 30, 2021 16:42
SCIM and SAML identities for all members in an Organization
# Pass the URL for an Organization into the query
# to get a list of members in a specific Organization.
# Example: { "url": "https://github.com/:organization" }
query getResource($url: URI!) {
resource(url: $url) {
... on Organization {
samlIdentityProvider {
externalIdentities(first:10) {
nodes {
scimIdentity {
@tcbyrd
tcbyrd / README.md
Created December 5, 2017 23:35
Example Terraform Configuration for setting up GitHub Enterprise
  1. Upload the license and set initial password once the image is accessible via IP (API Reference)
# Setup license and management console password
curl -X POST "https://${GHE_IP}:8443/setup/api/start" -k -F license=@./github-enterprise.ghl -F "password=${GHE_PWD}"
  1. Apply settings through the Management Console API using a settings.json file (API Reference)
curl -L -X PUT "https://api_key:${GHE_PWD}@${GHE_IP}:8443/setup/api/settings" --data-urlencode "settings=`cat ./settings.json`" -k
@tcbyrd
tcbyrd / turtle.png
Last active March 27, 2019 22:17
image
turtle.png
@tcbyrd
tcbyrd / now.json
Last active December 26, 2018 12:36
Probot on Now.sh v2
{
"version": 2,
"builds": [
{ "src": "probot.js", "use": "@now/node" }
],
"env": {
"GITHUB_TOKEN": "@github-token",
"APP_ID": "@app-id",
"PRIVATE_KEY": "@private-key-base64"
},
@tcbyrd
tcbyrd / pinnedIssues.graphql
Created December 13, 2018 22:10
Get pinned issues from repository id
{
node(id: $nodeId) {
... on Repository {
pinnedIssues(first: 10) {
nodes {
issue {
title
body
}
}
@tcbyrd
tcbyrd / pending-invites.js
Last active May 14, 2018 21:56
Get all pending repo invitations
const octokit = require('@octokit/rest')()
const token = process.env.OCTOKIT_TOKEN
octokit.authenticate({ type: 'token', token })
async function getInvitations (org) {
try {
let result = await octokit.repos.getForOrg({org, per_page: 100})
let repos = result.data
@tcbyrd
tcbyrd / pg-videos.md
Last active April 12, 2017 08:47
Professional Guides Videos

GitHub Professional Guides

This is a series of videos produced by Hubbers. They cover several important practices in modern software development and the features on GitHub that enable professional developers. With one exception (pre-receive hooks), features are available to all users on both GitHub.com and GitHub Enterprise

Videos

Video Title Description
Organizing for Successful Collaboration Defining Organizations and Teams on GitHub
Continuous Integration & Continous Delivery Define these terms, why they're used, and the tools on GitHub to support them
Finding Things The tools that exist on GitHub that help you find what you're looking for
Getting Insight into Work A quick walkthrough of the various analysis tools on GitHub to help manage branches, commits and works in progress
@tcbyrd
tcbyrd / keybase.md
Created April 11, 2017 12:18
Keybase Proof

Keybase proof

I hereby claim:

  • I am tcbyrd on github.
  • I am tcbyrd (https://keybase.io/tcbyrd) on keybase.
  • I have a public key whose fingerprint is D8F0 EC79 927A AF55 FE71 46EC 9EDE 6D18 B63F 55D8

To claim this, I am signing this object: